How can you tell which pane in Tmux is focused?

前端 未结 5 1390
予麋鹿
予麋鹿 2020-12-22 21:02

I\'m starting to use tmux (I\'m thinking of switching from screen), but I\'m having a hard time telling which pane is focused when I split a window into multiple panes. Is t

5条回答
  •  攒了一身酷
    2020-12-22 21:19

    One Solution that works for me is to add a display-pane at the end of the hotkey for a pane switch. This displays all the pane numbers, with the current pane in a different color. You can also use + q to display pane numbers.

    I use alt+h/j/k/l to switch between panes, and I use the following binding.

    bind -n M-j select-pane -D \; display-pane                                                                                                                                                                                                               
    bind -n M-k select-pane -U \; display-pane                                                                                                                                                                                                               
    bind -n M-h select-pane -L \; display-pane                                                                                                                                                                                                               
    bind -n M-l select-pane -R \; display-pane  
    

提交回复
热议问题