tmux-plugins/tmux-copycat

Way to disable a predefined searches.

roachsinai opened this issue · 3 comments

New to this plugin, and from customizations.md found two predefined searches:

  • @copycat_hash_search (default M-h) SHA-1 hash search
  • @copycat_ip_search (default M-i) IP address search

But I use prefix M-h to select left pane, is there a way to just disable @copycat_hash_search, and then let my binding works?

Or I have to set @copycat_hash_search to other binding not M-h.

Or I have to set @copycat_hash_search to other binding not M-h.

Yes, I think this should do the trick.

Or I have to set @copycat_hash_search to other binding not M-h.

Yes, I think this should do the trick.

So no setting to cancel/forbid that bind directly right now?

Hi, I've ask help with tmux member about this. What I want is use tmux hooks to make this, specificaly use session-created, it not work as copycat may bind key after create session.

You will need to ask the plugin developers how it works, I don't know, but if session-created works with a different key binding then it must be changing it after the session is created.

tmux/tmux#2282

Seems set-hook -g session-created 'bind-key -T prefix M-h select-pane -L' should work, but it failed.