tmux-plugins / tmux-copycat

A plugin that enhances tmux search
MIT License
1.1k stars 63 forks source link

Multiple searches while in copy-mode #76

Open mMontu opened 9 years ago

mMontu commented 9 years ago

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'
javier-lopez commented 9 years ago

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