Multiple searches while in copy-mode
mMontu opened this issue · 1 comments
mMontu commented
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):
<prefix>[
-- enter copy-mode?foo<CR>
-- regular search for 'foo'?<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):
<prefix>/foo<CR>
-- search for 'foo'<prefix>/bar<CR>
-- search for second occurrence of 'foo' instead of 'bar'
javier-lopez commented
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