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 removing a keybind #223

Merged
merged 1 commit into from
Jul 29, 2023
Merged

Conversation

Kuba314
Copy link
Contributor

@Kuba314 Kuba314 commented Jul 26, 2023

This is done by introducing a new Command::None, which does nothing and also doesn't appear in the help menu.

To remove a default or any previously defined keybind, simply set its command like this:

[[keymaps]]
command = "None"
key_sequence = "q"

@Kuba314
Copy link
Contributor Author

Kuba314 commented Jul 28, 2023

Just fixed the formatting error causing the pipeline to fail.

@aome510
Copy link
Owner

aome510 commented Jul 29, 2023

@Kuba314 now the CI linter clippy failed.

This is done by introducing a new `Command::None`, which does nothing
and also doesn't appear in the help menu.

To remove a default or any previously defined keybind, simply set its
command like this:
```toml
[[keymaps]]
command = "None"
key_sequence = "q"
```
@Kuba314
Copy link
Contributor Author

Kuba314 commented Jul 29, 2023

Oof, sorry about that. Fixed.

@aome510 aome510 merged commit eab0359 into aome510:master Jul 29, 2023
3 checks passed
@Kuba314 Kuba314 deleted the allow-keybind-removal branch July 30, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants