11#! /usr/bin/env bash
22
3- CURRENT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
3+ CURRENT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
44SCRIPTS_DIR=" ${CURRENT_DIR} /scripts"
55HELPERS_DIR=" ${CURRENT_DIR} /scripts"
66
@@ -18,10 +18,10 @@ set_error_bindings() {
1818 for key in $key_bindings ; do
1919 if tmux_is_at_least 2.4; then
2020 tmux bind-key -t copy-mode-vi " $key " send-keys -X copy-pipe-and-cancel " tmux display-message 'Error! tmux-yank dependencies not installed!'"
21- tmux bind-key -t copy-mode " $key " send-keys -X copy-pipe-and-cancel " tmux display-message 'Error! tmux-yank dependencies not installed!'"
21+ tmux bind-key -t copy-mode " $key " send-keys -X copy-pipe-and-cancel " tmux display-message 'Error! tmux-yank dependencies not installed!'"
2222 else
23- tmux bind-key -t vi-copy " $key " copy-pipe " tmux display-message 'Error! tmux-yank dependencies not installed!'"
24- tmux bind-key -t emacs-copy " $key " copy-pipe " tmux display-message 'Error! tmux-yank dependencies not installed!'"
23+ tmux bind-key -t vi-copy " $key " copy-pipe " tmux display-message 'Error! tmux-yank dependencies not installed!'"
24+ tmux bind-key -t emacs-copy " $key " copy-pipe " tmux display-message 'Error! tmux-yank dependencies not installed!'"
2525 fi
2626 done
2727}
@@ -41,25 +41,25 @@ 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 " $( yank_key) " send-keys -X " $( yank_action) " " $copy_command "
45- tmux bind-key -T copy-mode-vi " $( put_key) " send-keys -X copy-pipe-and-cancel " tmux paste-buffer"
46- tmux bind-key -T copy-mode-vi " $( yank_put_key) " send-keys -X copy-pipe-and-cancel " $copy_command ; tmux paste-buffer"
47- tmux bind-key -T copy-mode-vi " $( yank_wo_newline_key) " send-keys -X " $( yank_action) " " $copy_wo_newline_command "
44+ tmux bind-key -T copy-mode-vi " $( yank_key) " send-keys -X " $( yank_action) " " $copy_command "
45+ tmux bind-key -T copy-mode-vi " $( put_key) " send-keys -X copy-pipe-and-cancel " tmux paste-buffer"
46+ tmux bind-key -T copy-mode-vi " $( yank_put_key) " send-keys -X copy-pipe-and-cancel " $copy_command ; tmux paste-buffer"
47+ tmux bind-key -T copy-mode-vi " $( yank_wo_newline_key) " send-keys -X " $( yank_action) " " $copy_wo_newline_command "
4848
49- tmux bind-key -T copy-mode " $( yank_key) " send-keys -X " $( yank_action) " " $copy_command "
50- tmux bind-key -T copy-mode " $( put_key) " send-keys -X copy-pipe-and-cancel " tmux paste-buffer"
51- tmux bind-key -T copy-mode " $( yank_put_key) " send-keys -X copy-pipe-and-cancel " $copy_command ; tmux paste-buffer"
52- tmux bind-key -T copy-mode " $( yank_wo_newline_key) " send-keys -X " $( yank_action) " " $copy_wo_newline_command "
49+ tmux bind-key -T copy-mode " $( yank_key) " send-keys -X " $( yank_action) " " $copy_command "
50+ tmux bind-key -T copy-mode " $( put_key) " send-keys -X copy-pipe-and-cancel " tmux paste-buffer"
51+ tmux bind-key -T copy-mode " $( yank_put_key) " send-keys -X copy-pipe-and-cancel " $copy_command ; tmux paste-buffer"
52+ tmux bind-key -T copy-mode " $( yank_wo_newline_key) " send-keys -X " $( yank_action) " " $copy_wo_newline_command "
5353 else
54- tmux bind-key -t vi-copy " $( yank_key) " copy-pipe " $copy_command "
55- tmux bind-key -t vi-copy " $( put_key) " copy-pipe " tmux paste-buffer"
56- tmux bind-key -t vi-copy " $( yank_put_key) " copy-pipe " $copy_command ; tmux paste-buffer"
57- tmux bind-key -t vi-copy " $( yank_wo_newline_key) " copy-pipe " $copy_wo_newline_command "
54+ tmux bind-key -t vi-copy " $( yank_key) " copy-pipe " $copy_command "
55+ tmux bind-key -t vi-copy " $( put_key) " copy-pipe " tmux paste-buffer"
56+ tmux bind-key -t vi-copy " $( yank_put_key) " copy-pipe " $copy_command ; tmux paste-buffer"
57+ tmux bind-key -t vi-copy " $( yank_wo_newline_key) " copy-pipe " $copy_wo_newline_command "
5858
59- tmux bind-key -t emacs-copy " $( yank_key) " copy-pipe " $copy_command "
60- tmux bind-key -t emacs-copy " $( put_key) " copy-pipe " tmux paste-buffer"
61- tmux bind-key -t emacs-copy " $( yank_put_key) " copy-pipe " $copy_command ; tmux paste-buffer"
62- tmux bind-key -t emacs-copy " $( yank_wo_newline_key) " copy-pipe " $copy_wo_newline_command "
59+ tmux bind-key -t emacs-copy " $( yank_key) " copy-pipe " $copy_command "
60+ tmux bind-key -t emacs-copy " $( put_key) " copy-pipe " tmux paste-buffer"
61+ tmux bind-key -t emacs-copy " $( yank_put_key) " copy-pipe " $copy_command ; tmux paste-buffer"
62+ tmux bind-key -t emacs-copy " $( yank_wo_newline_key) " copy-pipe " $copy_wo_newline_command "
6363 fi
6464}
6565
0 commit comments