Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Bind Ctrl+Left to backward-word (and Ctrl+Right to forward-word) #563
Binds some additional sequences to (emacs-)backward-word and forward-word. The problem is that terminfo doesn't know about Ctrl+ArrowKeys, so one has to resort to using raw sequences. The sequences were copied from Debian's /etc/inputrc (readline configuration), so it should be fairly portable. It works in xterm and rxvt terminals, it doesn't work on TERM=linux (virtual console) as Ctrl+Arrows send the same sequence as Arrows alone.
referenced this pull request
Feb 24, 2014
I am absolutely not in position to suggest such corrections. The current terminfo upstream is aware of the issue, this is what they have to say, and I hardly understand much of it.
Yet Debian, serving hundreds of thousands of users, sets this in their /etc/inputrc, which is the default readline configuration file, which is the default readline library for bash (et al. REPL shells), which is the default user shell by default. And it works out of the box — presto! :)
Here, nice and squashed. Whether anything else is broken — I don't know. I'm not a proficient terminal user so I don't use all the exotic keybindings (obviously, since I propose