Skip to content

Commit aef5fa0

Browse files
authored
Merge pull request #29 from kaykayehnn/repeatable-pane-navigation
Make pane navigation bindings repeatable
2 parents 7316676 + a60b32b commit aef5fa0

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Notice most of the bindings emulate vim cursor movements.
2727
- `prefix + l` and `prefix + C-l`<br/>
2828
select pane on the right
2929

30+
These mappings are `repeatable`.
31+
3032
<br/>
3133

3234
**Note**: This overrides tmux's default binding for toggling between last

pain_control.tmux

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ get_tmux_option() {
1616
}
1717

1818
pane_navigation_bindings() {
19-
tmux bind-key h select-pane -L
20-
tmux bind-key C-h select-pane -L
21-
tmux bind-key j select-pane -D
22-
tmux bind-key C-j select-pane -D
23-
tmux bind-key k select-pane -U
24-
tmux bind-key C-k select-pane -U
25-
tmux bind-key l select-pane -R
26-
tmux bind-key C-l select-pane -R
19+
tmux bind-key -r h select-pane -L
20+
tmux bind-key -r C-h select-pane -L
21+
tmux bind-key -r j select-pane -D
22+
tmux bind-key -r C-j select-pane -D
23+
tmux bind-key -r k select-pane -U
24+
tmux bind-key -r C-k select-pane -U
25+
tmux bind-key -r l select-pane -R
26+
tmux bind-key -r C-l select-pane -R
2727
}
2828

2929
window_move_bindings() {

0 commit comments

Comments
 (0)