fix(tmux): do not cancel on visual mode copy

This commit is contained in:
Barrett Ruth 2026-02-15 12:24:10 -05:00
parent 969d094776
commit e1a584ecc9
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -53,7 +53,9 @@ unbind /; bind / if -F '#{pane_in_mode}' { send-keys -X cancel } { copy-mode ; c
unbind ?; bind ? if -F '#{pane_in_mode}' { send-keys -X cancel } { copy-mode ; command-prompt -p '?' { send -X search-backward -- '%%' } }
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
bind -T copy-mode-vi y send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
bind -T copy-mode-vi TripleClick1Pane select-pane \; send-keys -X select-line \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
unbind b; bind b set status\; refresh -S
unbind m; bind m set -g mouse\; run-shell 'mux bar'\; refresh -S