You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
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.
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.
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).
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?
Activity
mintty commentedon Oct 31, 2017
You could use option
CtrlExchangeShiftto 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.
jnachtigall commentedon Jan 11, 2018
@nyuszika7h Don't want to derail the issue, but how did you do this? I am looking for using
Ctrl+Shift+CandCtrl+Shift+Vin Git bash for Windows - instead of the defaultCtrl+Ins, but despite looking/searching for it some time now I cannot find any settings for this.mintty commentedon Jan 11, 2018
Options...
user-defined shortcuts and function keys (#705, #602, #645, #399, #252,…
user-defined special keys (#705, #602, #645, #399, #252, ~#726, ~#524, ~
user-defined keypad keys (#705, #602, #645, #399, #252, ~#726, ~#524, ~…
mintty commentedon Sep 20, 2018
Released 2.9.1.
williford commentedon Nov 21, 2019
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).
johannish commentedon Jul 13, 2021
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(CSto specify "ctrl+shift"), but I tested that and it didn't work for the paste. Can anyone shed some light here whyc:copyworks and notCSc:copy?mintty commentedon Jul 13, 2021
It's CS+c to separate the modifier from the key, or C+S+c.