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

feature: keymap aliasing #1215

Closed
MattSturgeon opened this issue Mar 6, 2024 · 3 comments
Closed

feature: keymap aliasing #1215

MattSturgeon opened this issue Mar 6, 2024 · 3 comments

Comments

@MattSturgeon
Copy link
Member

Currently if you wish to have multiple keymaps that do the same thing, you must either duplicate your definition for each alias or map a list of alias strings into a list of keymap attribute sets.

It may be handy to provide an aliases option accepting null, str or listOf str. If used, the keymap will be created for key as well as each alias.

If this is considered unnecessary feature bloat, perhaps document an example somewhere (README, Wiki, or docs) demonstrating how map can be used to produce duplicate keymaps?

@MattSturgeon
Copy link
Member Author

@traxys this is probably wontfix for the same reason as #1214?

I guess, at most, the scope of this issue could be reduced to documenting an example of mapping a list of string-keys into multiple keybinds.

If you think such an example adds more value than confusion...

@traxys
Copy link
Member

traxys commented Mar 12, 2024

Yeah I think like #1214 this is a bit out of the scope of nixvim.

@traxys
Copy link
Member

traxys commented Mar 12, 2024

But we could add a section Tips & Tricks to the user guide were we could add Nix snippets to do stuff like this (and maybe to simulate something like #1214)

MattSturgeon added a commit to MattSturgeon/nixvim that referenced this issue Mar 22, 2024
@traxys traxys closed this as completed in 7a952a4 Mar 22, 2024
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

No branches or pull requests

2 participants