4 ms·
Not sure why ctrl-a and ctrl-b are such popular prefixes, I use both a lot editing readline.
by sooheon 7y ago
Not sure why ctrl-a and ctrl-b are such popular prefixes, I use both a lot editing readline.
- lahcim8 7y agoExactly! Have you found any decent replacement?
- wiennat 7y agoI use Ctrl + q
- tambourine_man 7y agoControl-Space is perfect for me
- flukus 7y agoAnd compliments vim really well if you set your leader key to space.
- simtel20 7y agoI use a backtick, but don't edit much e.g. markdown in my tmux sessions, and always use $(...) for command substitution so I don't normally feel any pain. One oddity with tmux is that to escape the control character you don't press it twice, you press the escape char then ctrl-b, so that is a lot of extra movement around the keyboard
- fwip 7y agoCould you bind prefix + ` to insert a literal backtick? I've only ever used the default ctrl-b prefix so I'm not sure.
- rabidrat 7y agoBacktick is my favorite too. Interestingly I thought it was an obscure choice, but it seems to be the 3rd most popular prefix from an analysis of tmux.conf files on github (after Ctrl+A and Ctrl+Space). I use `` (double-backtick) to escape the backtick and it's eminently reasonable.
- patrec 7y agoI like ^Z, since it's about the only keybinding that's not used by common terminal software. To actually send a program to sleep, just double up: ^Z^Z # In ~/.tmux.conf Change prefix key to Ctrl+z unbind C-b set -g prefix C-z
- pdpi 7y agoI definitely hear you on ctrl-a. No idea what ctrl-b does, though?
- u801e 7y agoIt moves the cursor back one character (which is the default readline binding). In screen's case, you can send ctrl-a to readline by pressing ctrl-a a.