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

Is it possible to remove all binds for one/all modes? #771

Open
Ben5501 opened this issue Apr 11, 2019 · 1 comment
Open

Is it possible to remove all binds for one/all modes? #771

Ben5501 opened this issue Apr 11, 2019 · 1 comment
Labels

Comments

@Ben5501
Copy link

Ben5501 commented Apr 11, 2019

Hello,

as I can see binds.lua brings a set of default binds.
I'm going to need only a very small subset of the bindings.

Is there a way to clear all bindings and add the neede again?
Is it possible to do so from rc.lua?

Thanks for helping

@aidanholm
Copy link
Member

Hi!

Yes: you can e.g. run modes.get_mode("normal").binds = {} to clear all normal mode bindings. Alternatively, you can iterate through them and selectively remove them with lua's builtin table.remove() function.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@Ben5501 @aidanholm and others