CTRL+Arrow keys don't work with Git Bash for Windows?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I'm trying to set up some navigation shortcuts I have become accustomed to
using in Windows environments, as well as KDE Konsole.  I would like to bind
CTRL+Left to "backward-word" and CTRL+Right to "forward-word" (there are
more, but this is a start).  I can enable this behavior by adding something
like "\e[D": forward-word to my ./inputrc file, but this also overwrites the
"forward-char" sequence that comes from a "Right Arrow" press without the
CTRL key.  For some reason, when I use the Git Bash shell the key sequence
for "CTRL+Right" and "Right" (\e[C) are the same -- same with "CTRL+Left"
and "Left" (\e[D).

Most of the solutions I have come across only address adding things to the
".inputrc" file, but in this case that is not the problem.  The problem is
that the CTRL+Arrow keys are not sending any unique sequences.  These
sequences are distinct and can be bound as I am describing when using the
"mintty.exe" xterm terminal emulator.  So why are they not working when I
start up Git Bash (which I believe has no emulator, it just uses windows
cmd.exe?).  I also see this problem when I use the "bash.exe --login -l"
that was installed with MinGW/MSys.

Thanks for any suggestions on how to enable this behavior.

Kevin

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]