From 0369e0384f68e48238f5f05ec3a7f4fc69159a51 Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Tue, 24 May 2016 21:10:32 -0700 Subject: [PATCH 1/2] Add more commands that exit copy mode --- scripts/helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers.sh b/scripts/helpers.sh index da52f42..d039dab 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -150,7 +150,7 @@ copycat_prev_key() { # function expected output: 'C-c Enter q' copycat_quit_copy_mode_keys() { - local commands_that_quit_copy_mode="cancel\|copy-selection\|copy-pipe" + local commands_that_quit_copy_mode="cancel\|copy-selection\|copy-pipe\|append-selection\|copy-end-of-line" local copy_mode="$(tmux_copy_mode)-copy" tmux list-keys -t "$copy_mode" | \grep "$commands_that_quit_copy_mode" | From bb163d7ff5669224c8f1c74b173aac65cd7437f2 Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Tue, 24 May 2016 21:11:37 -0700 Subject: [PATCH 2/2] Check copycat counter regardless of mode --- scripts/copycat_mode_quit.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/copycat_mode_quit.sh b/scripts/copycat_mode_quit.sh index 38c29f6..0bf1913 100755 --- a/scripts/copycat_mode_quit.sh +++ b/scripts/copycat_mode_quit.sh @@ -27,10 +27,10 @@ main() { reset_copycat_position unset_copycat_mode copycat_decrease_counter - # removing all bindings only if no panes are in copycat mode - if copycat_counter_zero; then - unbind_all_bindings - fi + fi + # removing all bindings only if no panes are in copycat mode + if copycat_counter_zero; then + unbind_all_bindings fi } main