How to re-map the changing pane keys in tmux

keyboard shortcutstmux

I want Prefix + Up,Down,Left,Right to be mapped to Prefix + Ctrlh, Ctrlj, Ctrlk,Ctrll.

I tried:

bind-key C-h Left
bind-key C-j Down
bind-key C-k Up
bind-key C-l Right

But it didn't really work: it said "Unknown Command: Right". How do I specify this correctly?

I went to man tmux to see the command under KEY BINDINGS and it did say Up, Down, Left, Right were the correct command for it. I am confused why the official tmux manual would say those commands when they don't actually exist like that, or what am I doing wrong?

Best Answer

You want select-pane:

bind C-l select-pane -L
bind C-h select-pane -R
bind C-k select-pane -U
bind C-j select-pane -D
Related Question