5

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?

0

1 Answer 1

5

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
2
  • how was I suppose to know I needed select-pane? Commented Jul 7, 2014 at 20:48
  • @Pinocchio Well, it is in the man page, but it is quite a lengthy manual and there are a lot of options covered...
    – jasonwryan
    Commented Jul 7, 2014 at 21:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .