omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
554 stars 51 forks source link

(Question) Is there a way to define the binding for the plugin without using the prefix? #85

Open 1nuno opened 2 months ago

1nuno commented 2 months ago

Currently if we want to define \<prefix>+p as a binding to call the plugin we can do this:

set -g @sessionx-bind 'p'

Is there a way to define just p as a binding without the \<prefix>?

omerxx commented 2 months ago

Technically yes, we can add an option to add a binding to the root table with -n (which is not recommended in tmux) but I think it can be done as an option.

In the meantime, you can just add -n to https://github.com/omerxx/tmux-sessionx/blob/9d1e4de54c25860f705ca2616461a3a106f909db/sessionx.tmux#L12