I managed to be able to resize panes in tmux thanks to this answer.
But now I press CTRL-b and then e each time I want to resize the pane (e.g. make larger to the left).
How could I bind the CTRL-b as well so I only press a single key e.g. just e and resize the pane (instead of pressing CTRL-b and then e)?
1 Answer
It does not really make sense to bind the command prefix to another key in such a way that it goes away (changing the prefix, however, is common; many people prefer C-a). The whole point of the prefix is to let tmux know the next key sequence you enter is intended for tmux and not the program open in the tmux pane.
So if you were able to bind C-b e to the e key, you would then not be able to type e when providing normal input to whatever programs are open in your tmux panes.
- So the fastest pace I can do this is:
CTRL-band thene?Jim– Jim2013-07-07 21:09:19 +00:00Commented Jul 7, 2013 at 21:09 -
C-aI assume you meanSHIFT-c a. Why not justcinstead ofShift-c?Jim– Jim2013-07-07 21:17:54 +00:00Commented Jul 7, 2013 at 21:17 - No, the big C refers to the Ctrl key. It is a command shorthand. For me, I prefer
C-afor my command prefix. Feels faster. You can change it to control a using this commandset-option -g prefix C-aMatthew Mellott– Matthew Mellott2013-07-07 21:19:39 +00:00Commented Jul 7, 2013 at 21:19 - The shorthand is explained here: cs.vassar.edu/sysnews/emacs_tips#emacs_command_shorthandMatthew Mellott– Matthew Mellott2013-07-07 21:21:30 +00:00Commented Jul 7, 2013 at 21:21