mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
tmux: fix vim copy bindings for >= v2.4
This commit is contained in:
parent
0ef2374531
commit
9f669d69e3
1 changed files with 4 additions and 3 deletions
|
@ -160,11 +160,12 @@ in {
|
|||
bind s split-window -v -c '#{pane_current_path}'
|
||||
bind v split-window -h -c '#{pane_current_path}'
|
||||
|
||||
bind -t vi-copy v begin-selection
|
||||
bind-key -T copy-mode-vi p send-keys -X copy-pipe-and-cancel "tmux paste-buffer"
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
'' + optionalString stdenv.isLinux ''
|
||||
bind -t vi-copy y copy-selection
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
'' + optionalString stdenv.isDarwin ''
|
||||
bind -t vi-copy y copy-pipe "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace pbcopy"
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace pbcopy"
|
||||
'');
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue