(feat): add osc52 support

This commit is contained in:
bumpsoo 2025-04-17 04:26:25 +00:00
parent ff50325ade
commit e08ef74fa4
4 changed files with 43 additions and 1 deletions

View file

@ -3,5 +3,9 @@ setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
set -s copy-command 'wl-copy'
set-option -s set-clipboard on
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "tmux save-buffer - | tmux load-buffer - && tmux show-buffer | osc52_copy"
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "tmux save-buffer - | tmux load-buffer - && tmux show-buffer | osc52_copy"