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

Allow launching plugins with Alt + plugin's key #569

Merged
merged 2 commits into from
May 13, 2020

Conversation

leovilok
Copy link
Collaborator

In terminals Alt+key is 2 characters : '\033' (or Esc, or ^[) and the key.
Just setting '\033' as a binding for the plugin key makes all plugins available on Alt+plugin's key.

In filter mode: run the associated plugin.
In prompt mode: just throw out the Alt+key input.
src/nnn.c Show resolved Hide resolved
src/nnn.c Show resolved Hide resolved
@jarun jarun merged commit c9b598b into jarun:master May 13, 2020
@jarun
Copy link
Owner

jarun commented May 13, 2020

Thank you!

@jarun
Copy link
Owner

jarun commented May 13, 2020

This breaks nav-as-you-type.

nnn -n
Press Esc (prompt no longer removed)

jarun pushed a commit that referenced this pull request May 13, 2020
* Allow launching plugins with Alt + plugin's key

* Fix Alt key in filter/prompts modes

* Fix handling Alt key in nextsel()

In filter mode: run the associated plugin.
In prompt mode: just throw out the Alt+key input.
In nextsel(): differentiate Alt+key and Esc
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants