Skip to content

Commit ab918db

Browse files
author
Robert Przybylowicz
committed
Removed MouseDragEnd1Pane and reverted yank deafult action to copy-pipe-and-cancel
1 parent 8e99f32 commit ab918db

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

scripts/helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ yank_wo_newline_option="@copy_mode_yank_wo_newline"
2121
yank_selection_default="clipboard"
2222
yank_selection_option="@yank_selection"
2323

24-
yank_action_default="copy-pipe"
24+
yank_action_default="copy-pipe-and-cancel"
2525
yank_action_option="@yank_action"
2626

2727
shell_mode_default="emacs"

yank.tmux

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,21 @@ set_copy_mode_bindings() {
4141
local copy_wo_newline_command
4242
copy_wo_newline_command="$(clipboard_copy_without_newline_command "$copy_command")"
4343
if tmux_is_at_least 2.4; then
44-
tmux bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X "$(yank_action)" "$copy_command"
4544
tmux bind-key -T copy-mode-vi "$(yank_key)" send-keys -X "$(yank_action)" "$copy_command"
4645
tmux bind-key -T copy-mode-vi "$(put_key)" send-keys -X copy-pipe-and-cancel "tmux paste-buffer"
4746
tmux bind-key -T copy-mode-vi "$(yank_put_key)" send-keys -X copy-pipe-and-cancel "$copy_command; tmux paste-buffer"
4847
tmux bind-key -T copy-mode-vi "$(yank_wo_newline_key)" send-keys -X "$(yank_action)" "$copy_wo_newline_command"
4948

50-
tmux bind-key -T copy-mode MouseDragEnd1Pane send-keys -X "$(yank_action)" "$copy_command"
5149
tmux bind-key -T copy-mode "$(yank_key)" send-keys -X "$(yank_action)" "$copy_command"
5250
tmux bind-key -T copy-mode "$(put_key)" send-keys -X copy-pipe-and-cancel "tmux paste-buffer"
5351
tmux bind-key -T copy-mode "$(yank_put_key)" send-keys -X copy-pipe-and-cancel "$copy_command; tmux paste-buffer"
5452
tmux bind-key -T copy-mode "$(yank_wo_newline_key)" send-keys -X "$(yank_action)" "$copy_wo_newline_command"
5553
else
56-
tmux bind-key -t vi-copy MouseDragEnd1Pane copy-pipe "$copy_command"
5754
tmux bind-key -t vi-copy "$(yank_key)" copy-pipe "$copy_command"
5855
tmux bind-key -t vi-copy "$(put_key)" copy-pipe "tmux paste-buffer"
5956
tmux bind-key -t vi-copy "$(yank_put_key)" copy-pipe "$copy_command; tmux paste-buffer"
6057
tmux bind-key -t vi-copy "$(yank_wo_newline_key)" copy-pipe "$copy_wo_newline_command"
6158

62-
tmux bind-key -t emacs-copy MouseDragEnd1Pane copy-pipe "$copy_command"
6359
tmux bind-key -t emacs-copy "$(yank_key)" copy-pipe "$copy_command"
6460
tmux bind-key -t emacs-copy "$(put_key)" copy-pipe "tmux paste-buffer"
6561
tmux bind-key -t emacs-copy "$(yank_put_key)" copy-pipe "$copy_command; tmux paste-buffer"

0 commit comments

Comments
 (0)