My Problem
tmux
key bindings require two separate key hits to enter a command. The first is called a prefix, and set to control+a. The second key performs the actual command, for example:
- c create window
- w list windows
- n next window
- w previous window
- f find window
- , name window
- & kill window
The problem is that two consecutive key combinations are cumbersome and slow. Most other tabbed UIs – from Chrome to Vim – enable tab switching with a single combination.
What Have I Tried
- STFW
- Played with
bind-key
andsend-keys
, for examplebind-key C-c send-keys C-a n
My Question
How can I run specific tmux commands, like "next window" or "create window", with a single key combination?
Best Answer
Solution
I have something like this in my
~/.tmux.conf
file:Maps
<Ctrl>-h
to select pane on the left.Manual reference for the
-n
argument