Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1nuno opened this issue Apr 21, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@1nuno
Copy link

1nuno commented Apr 21, 2024

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
Copy link
Owner

omerxx commented Apr 21, 2024

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

tmux bind-key "$(tmux_option_or_fallback "@sessionx-bind" "O")" run-shell "$CURRENT_DIR/scripts/sessionx.sh"

@omerxx omerxx added enhancement New feature or request good first issue Good for newcomers labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants