-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add commands for everything that's currently hardcoded. #9571
Comments
Those |
Why does Helix treat minor mode bindings any differently? For example, if the user added this to their config... [keys.normal.space]
l = "debug"
g = "no_op" ... couldn't the Space Mode be updated to remove It's not the end of the world, but it keeps coming up (I can't rebind the dot or colon, and have limits with minor modes). I just wondered if there was a reason to not support it (or if it just hadn't been implemented). |
Minor modes are really just groups of keybinds. For example helix/helix-term/src/keymap/default.rs Lines 227 to 269 in a1272bd
If you want to remap entire modes you need to move the commands in that mode: [keys.normal.space]
g = "no_op"
[keys.normal.space.l]
l = "dap_launch"
r = "dap_restart"
# ... etc ... I've reopened #5734 which talks about finding a convenient way to remap those.
Colon isn't special-cased as far as I'm aware. You can rebind the |
Thanks for taking the time.
I didn't know that. I just assumed, based on the docs.
Thank you. Much appreciated. |
There're a bunch of items in the Keymap doc that have
N/A
as their documented command. As a result, users can only customize a subset of their bindings.For example, there's currently no way to assign a new keybinding for debugging. We must use
g
inside Space Mode. As my debugger is usually LLDB, I'd prefer to usel
(inside Space Mode), but there's nodebug
command to bind to.The text was updated successfully, but these errors were encountered: