-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
The Helix keymap lists commands for many keys.
However, there seem to be a few key sequences that do not have an associated command, for example the tree-sitter based commands from match mode.
My goal was to emulate Emacs' fill-paragraph. I put the something like the following into my config.toml:
[keys.normal]
A-q = ["???mip???", ":reflow"]
But there seems to be no command that is the equivalent of the mip-Key sequence. ("@mip" also doesn't work as Helix complains that "macro keybindings may not be used in command sequences", but this is another matter).
It is not clear to me why certain key sequences do not seem to have an associated command. If each possible action also had an associated command, Helix would be more scriptable and easier to use.
In contrast Emacs is fully self documenting. It is easy to figure out the command a certain key combination maps to (with C-h k = describe-key) and the documentation of a command also gives all key combinations that this command is assigned to. In Helix this information is much harder to find. If there is a way to learn about mappings without consulting the documentation from withing the Helix editor itself, I'm not aware of it.