Questions tagged [key-binding]
225 questions
449
votes
11 answers
Selecting columns in Visual Studio Code
Does Visual Studio Code support selecting columns of text?
I have not yet found this feature, so I am wondering if it is hidden somewhere. I am familiar with holding down Alt while selecting text, but Visual Studio Code does not behave this way.
ChiliYago
- 5,415
143
votes
13 answers
Map capslock to control in Windows 10
In Windows 8 I used to remap my capslock key to control using the registry script
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
After…
chtenb
- 1,935
- 2
- 16
- 17
45
votes
6 answers
ALT+arrow moving between words in zsh and iTerm2
I logged in on one of hosting provider servers and noticed ALT + left and ALT + right moved between words in a shell prompt in GNU Screen.
What kind of key bindings I need to configure and where to get this behavior to my local OS X zsh running in…
Mikko Ohtamaa
- 2,558
32
votes
4 answers
bash home/end/delete key is inserting a tilde, or if preceded by escape key, [1~ [3~
In bash, the home/end/delete key is inserting a tilde, or if preceded by escape key: [1~
So I type echo hellp, move cursor to hel|lp and type delete, and bam, i got ~tilde
Also, I type echo hellp, move cursor to hel|lp and type esc then delete, and…
optional
- 783
28
votes
11 answers
Dot instead of comma on numerical keyboard
Using polish language on Windows 8.1, comma is the default decimal seperator on numerical keyboard. Is there a way to change it to dot?
I wouldn't like to change it in Excel or some other program, but permanently rebind that key to dot. Can I do…
alex
- 751
23
votes
5 answers
How to prevent VScode from closing editor when pressing ctrl+w with no tabs open?
According to the comment here: https://github.com/Microsoft/vscode/issues/50671 it's possible to edit this behavior in the keybindings, but provides no instructions for how to do so.
How do I edit the VScode keybindings so that if I press CTRL+W…
Our_Benefactors
- 582
20
votes
7 answers
How to type Ctrl-^?
I'm a bit embarrassed to ask this, but how can I enter the ^ (I can't see it in my keyboard) that is part of the control sequence: CTRL-^?
The ^ character is often called caret, circumflex, or hat.
wyc
- 611
17
votes
2 answers
Is there a way of using ctrl-r after typing part of command in bash?
In bash the Ctrl+r command is very useful, I type Ctrl+r whatever and it searchs my history for commands containing the word whatever. But if I type whatever and realize that I would like search that word and hit Ctrl+r nothing happens.
Is there a…
skeept
- 305
16
votes
4 answers
I'm using Bash in "vi mode". What's the hotkey sequence to edit the current command line using an external editor?
In Bash's "Emacs mode" (set -o emacs), I can edit the current command line in my favorite external $EDITOR. All I have to do is press Ctrl+X then Ctrl+E.
But, because I have switched to Bash's "vi mode" (set -o vi), this key sequence doesn't do…
Alby
- 507
16
votes
6 answers
Can I interchange my "Home, End" keys with "PageUp, PageDown" keys on dell latitude laptop?
The Home,End keys are at the top row in my laptop, and I use them most while selecting the entire line by pressing (Shift+Home, Shift+End) - it is very inconvenient. On the other hand, "PageUp, PageDown" keys are just below the Shift Key, and I…
teenup
- 670
15
votes
3 answers
Enable Ctrl (or Alt) + arrow keys to mimic 'home' and 'end' functionality
I am a long time Mac user and I'm now using a Ubuntu machine for development, and while I'm more or less used to a lot of the keyboard shortcuts, one thing I can't get used to is using the 'Home' and 'End' keys to move around lines of text. On a Mac…
YuKagi
- 253
14
votes
5 answers
Remapping a keyboard key in windows 8.1
How can I remap keyboard keys in windows 8.1? I'm looking for a simple utility which will modify registry and would not require running at startup. I tried sharpkeys but, it does not seem to work in windows 8.1. Any other suggestions? Or a simple…
Grishma U
- 241
14
votes
1 answer
Why do `bind` and `.inputrc` behave differently?
I'm trying to do the right thing and put my key bindings into ~/.inputrc.
However, it turns out that I have to change
bind '"\e\C-j":"\e[1~quiet \e[4~\n"'
into
"\e\C-j": "\eOHquiet \eOF\n"
Now \eOH (nav-block-pos1 bound to beginning-of-line) and…
user173944
12
votes
1 answer
Looking for non-conflicting cross-platform keybinding consistency
I use Mac OS X and Arch Linux and occasionally log into FreeBSD and Debian servers by ssh. My favoured tools are zsh, ssh, tmux, git, vim and irssi. I use iTerm2 on Mac OS X and unicode-rxvt on Arch Linux, where I also use Xmonad as window…
totte
- 191
12
votes
2 answers
How to bind command key in zsh?
It is possible to bind Command Key from mac os x in zsh? I can't find any information about that.
kierzniak
- 121
- 1
- 1
- 4