tmux: use OSC 133 to jump to previous/next prompt in history
This commit is contained in:
parent
12ce3d85d1
commit
a2660c38c0
2 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,7 @@ version: 2
|
|||
final_space: true
|
||||
pwd: osc7
|
||||
disable_cursor_positioning: true
|
||||
shell_integration: true
|
||||
blocks:
|
||||
- type: prompt
|
||||
alignment: left
|
||||
|
|
|
@ -31,8 +31,12 @@ bind -n M-h select-pane -L
|
|||
bind -n M-l select-pane -R
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
bind -n M-j select-pane -U
|
||||
bind -n M-k select-pane -D
|
||||
# bind -n M-j select-pane -U
|
||||
# bind -n M-k select-pane -D
|
||||
bind -T copy-mode-vi M-k send-keys -X cursor-up \; send-keys -X previous-prompt -o \; send-keys -X cursor-up
|
||||
bind -T copy-mode-vi M-j send-keys -X cursor-down \; send-keys -X next-prompt -o \; send-keys -X cursor-up
|
||||
bind -n M-k copy-mode \; send-keys -X previous-prompt -o \; send-keys -X cursor-up
|
||||
bind -n M-j copy-mode \; send-keys -X previous-prompt -o \; send-keys -X cursor-up
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
bind -n M-1 select-window -t nvim
|
||||
|
|
Loading…
Reference in a new issue