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

Custom name for keybinds #3669

Closed
4164696f73 opened this issue Sep 3, 2022 · 1 comment
Closed

Custom name for keybinds #3669

4164696f73 opened this issue Sep 3, 2022 · 1 comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@4164696f73
Copy link

I haven't found any way of achieving that, so hence I posted this suggestion.

When you assign multiple commands to one keybind (e.g. D -> d, D -> e etc, see screenshot), the command chain displays "[Multiple commands]", even if the key chains are different. Would be cool to be able to adjust that for our keys, for example like D = { d[Custom Name] = ["extend_line", "delete_selection" ..., so that we actually know what the command does, or if someone would use our config.

image

I don't really have a good implementation idea for it, but I think the most readable way would be adding a new section in the config where you specify the commands just like above, but instead of assigning commands, you assign names, for example:
[commands.rename]
D = { d = "Empty current line", e = "Kill to line end, yank", s = "Kill to line start, yank" }

@4164696f73 4164696f73 added the C-enhancement Category: Improvements label Sep 3, 2022
@helix-editor helix-editor deleted a comment from oauthtest11 Sep 3, 2022
@the-mikedavis
Copy link
Member

Duplicate of #3130

@the-mikedavis the-mikedavis marked this as a duplicate of #3130 Sep 16, 2022
@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2022
@the-mikedavis the-mikedavis added the R-duplicate Duplicated issue: please refer to the linked issue label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants