Map multiple key sequences to the same callback#1442
Open
clarity20 wants to merge 2 commits intopreservim:masterfrom
Open
Map multiple key sequences to the same callback#1442clarity20 wants to merge 2 commits intopreservim:masterfrom
clarity20 wants to merge 2 commits intopreservim:masterfrom
Conversation
Member
|
Hello! First off, thank you for submitting this PR. To be honest, I'm a bit iffy about merging this. While it'd be useful and you've already taken care of the implementation, the need for multiple bindings seems a bit niche for most workflows. I personally never had the need for multiple bindings to the same functionality. Would you be able to propose a real-world scenario where this feature is required and can justify adding it to the upstream? |
Author
|
Sure! Admittedly this is not specific, but there aren't any standard key bindings across plugins for common user actions like "Help", "Delete" (both shown in the last image above), "Save", etc. and for me this idea is a nice workaround for the problem of having to use different keys in each plugin. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
Closes #1441.
The user can assign multiple key sequences to a single callback as shown in the
.vimrcbelow.These settings are reflected in the main NERDTree panel and the detailed help panel.