Skip to content

Commit 3e83ddc

Browse files
hwinechristoomey
authored andcommitted
properly shell escape backslash, fixes #180 (#181)
* properly shell escape backslash, fixes #180 * Correctly escape backslashes in examples
1 parent b93e176 commit 3e83ddc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
6464
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
6565
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
6666
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
67-
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
67+
bind-key -n C-\\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
6868
bind-key -T copy-mode-vi C-h select-pane -L
6969
bind-key -T copy-mode-vi C-j select-pane -D
7070
bind-key -T copy-mode-vi C-k select-pane -U
7171
bind-key -T copy-mode-vi C-l select-pane -R
72-
bind-key -T copy-mode-vi C-\ select-pane -l
72+
bind-key -T copy-mode-vi C-\\ select-pane -l
7373
```
7474

7575
#### TPM
@@ -196,7 +196,7 @@ bind -r C-h run "tmux select-pane -L"
196196
bind -r C-j run "tmux select-pane -D"
197197
bind -r C-k run "tmux select-pane -U"
198198
bind -r C-l run "tmux select-pane -R"
199-
bind -r C-\ run "tmux select-pane -l"
199+
bind -r C-\\ run "tmux select-pane -l"
200200
```
201201

202202
Troubleshooting

vim-tmux-navigator.tmux

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ tmux bind-key -T copy-mode-vi C-h select-pane -L
1111
tmux bind-key -T copy-mode-vi C-j select-pane -D
1212
tmux bind-key -T copy-mode-vi C-k select-pane -U
1313
tmux bind-key -T copy-mode-vi C-l select-pane -R
14-
tmux bind-key -T copy-mode-vi C-\ select-pane -l
14+
tmux bind-key -T copy-mode-vi C-\\ select-pane -l

0 commit comments

Comments
 (0)