tmux-plugins/tmux-copycat

Multiple searches while in copy-mode

mMontu opened this issue · 1 comments

First of all, thank you for sharing this great plugin!

I'm used to make several searches after entering copy-mode. For instance (without the plugin):

  1. <prefix>[ -- enter copy-mode
  2. ?foo<CR> -- regular search for 'foo'
  3. ?<BS><BS><BS>bar<CR> -- regular search for 'bar'

With copycat the second search above uses the default search mechanism. The following bind allows to replace the default search:

bind / run-shell /home/mmontu/.tmux/plugins/tmux-copycat/scripts/copycat_search.sh

But I try to use copycat to do the second search it seems that it ignore the second input and repeat the first search (even without the bind):

  1. <prefix>/foo<CR> -- search for 'foo'
  2. <prefix>/bar<CR> -- search for second occurrence of 'foo' instead of 'bar'

Can confirm this, it can be fixed by calling scripts/copycat_mode_quit.sh before scripts/copycat_mode_start.sh and scripts/copycat_search.sh in copycat.tmux