Skip to content

Selectively enable Ctrl+Shift shortcuts #705

Closed

Description

I enabled Ctrl+Shift shortcuts to use Ctrl+Shift+C and Ctrl+Shift+V, but the shortcut Ctrl+Shift+R, which resets the terminal, conflicts with bash/zsh reverse history search, so I'd like to disable or remap it. (I know I could remap the shell's one, but I'd rather not.)

Activity

  1. mintty commented on Oct 31, 2017

    @mintty
    Owner

    You could use option CtrlExchangeShift to assign copy/paste to unshifted Ctrl+C/V, but that may not be what you want, also it would reassign Ctrl+R, too (but not Ctrl+Shift+R in that case).
    You could also support issue #645 if that's what you want.

  2. jnachtigall commented on Jan 11, 2018

    @jnachtigall

    I enabled Ctrl+Shift shortcuts to use Ctrl+Shift+C and Ctrl+Shift+V

    @nyuszika7h Don't want to derail the issue, but how did you do this? I am looking for using Ctrl+Shift+C and Ctrl+Shift+V in Git bash for Windows - instead of the default Ctrl+Ins, but despite looking/searching for it some time now I cannot find any settings for this.

  3. mintty commented on Jan 11, 2018

    @mintty
    Owner

    Options...

    ├─Keys
                 ☑ Ctrl+Shift+letter shortcuts
    
  4. added a commit that references this issue on Sep 2, 2018
  5. added a commit that references this issue on Sep 19, 2018
  6. mintty commented on Sep 20, 2018

    @mintty
    Owner

    Released 2.9.1.

  7. williford commented on Nov 21, 2019

    @williford

    To achieve what the OP wanted, it looks like we can now add "KeyFunctions=c:copy;v:paste" to the config and it will work without enabling the terminal reset key. This is a great feature! (Edited comment, when I found out how to do it).

  8. johannish commented on Jul 13, 2021

    @johannish

    Thanks for KeyFunctions=c:copy;v:paste! That's what I was after.

    The man page doesn't make it clear to me why that shouldn't be KeyFunctions=CSc:copy;CSv:paste (CS to specify "ctrl+shift"), but I tested that and it didn't work for the paste. Can anyone shed some light here why c:copy works and not CSc:copy?

  9. mintty commented on Jul 13, 2021

    @mintty
    Owner

    It's CS+c to separate the modifier from the key, or C+S+c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions