tmux-plugins / tmux-copycat

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

Way to disable a predefined searches. #149

Open roachsinai opened 4 years ago

roachsinai commented 4 years ago

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

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.

bruno- commented 4 years ago

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

Yes, I think this should do the trick.

roachsinai commented 4 years ago

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?

roachsinai commented 4 years ago

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.

https://github.com/tmux/tmux/issues/2282

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