feat: add shortcut of swith pane
This commit is contained in:
+5
-3
@@ -20,8 +20,8 @@ set-option -g mouse on
|
|||||||
# 绑定hjkl键为面板切换的上下左右键
|
# 绑定hjkl键为面板切换的上下左右键
|
||||||
bind k select-pane -U # 绑定k为↑
|
bind k select-pane -U # 绑定k为↑
|
||||||
bind j select-pane -D # 绑定j为↓
|
bind j select-pane -D # 绑定j为↓
|
||||||
bind h select-pane -L # 绑定h为←
|
#bind h select-pane -L # 绑定h为←
|
||||||
bind l select-pane -R # 绑定l为→
|
#bind l select-pane -R # 绑定l为→
|
||||||
|
|
||||||
# 绑定Ctrl+hjkl键为面板上下左右调整边缘的快捷指令
|
# 绑定Ctrl+hjkl键为面板上下左右调整边缘的快捷指令
|
||||||
bind -r K resizep -U 10 # 绑定Ctrl+k为往↑调整面板边缘10个单元格
|
bind -r K resizep -U 10 # 绑定Ctrl+k为往↑调整面板边缘10个单元格
|
||||||
@@ -29,11 +29,13 @@ bind -r J resizep -D 10 # 绑定Ctrl+j为往↓调整面板边缘10个单元格
|
|||||||
bind -r H resizep -L 10 # 绑定Ctrl+h为往←调整面板边缘10个单元格
|
bind -r H resizep -L 10 # 绑定Ctrl+h为往←调整面板边缘10个单元格
|
||||||
bind -r L resizep -R 10 # 绑定Ctrl+l为往→调整面板边缘10个单元格
|
bind -r L resizep -R 10 # 绑定Ctrl+l为往→调整面板边缘10个单元格
|
||||||
|
|
||||||
|
bind -r j select-pane -t .+1 \; resize-pane -Z # prefix + j to switch pane in current window
|
||||||
|
|
||||||
# 设置tmux的延迟,文档说当有干扰的时候可以设置这个参数,比如影响vim编辑的时候
|
# 设置tmux的延迟,文档说当有干扰的时候可以设置这个参数,比如影响vim编辑的时候
|
||||||
set -s escape-time 1
|
set -s escape-time 1
|
||||||
|
|
||||||
# 返回上一个窗口
|
# 返回上一个窗口
|
||||||
bind g last-window
|
bind L switch-client -l
|
||||||
|
|
||||||
# 设置窗口名为当前目录名
|
# 设置窗口名为当前目录名
|
||||||
set-option -g status-interval 10
|
set-option -g status-interval 10
|
||||||
|
|||||||
Reference in New Issue
Block a user