Terminology for actions like normal_mode
, extend_line
, move_char_left
?
#12050
-
In helix(or in vim) things like In helix, what are things like Note that "these" usually come along with key remapping. Example from documentation: # At most one section each of 'keys.normal', 'keys.insert' and 'keys.select'
[keys.normal]
C-s = ":w" # Maps Ctrl-s to the typable command :w which is an alias for :write (save file)
C-o = ":open ~/.config/helix/config.toml" # Maps Ctrl-o to opening of the helix config file
a = "move_char_left" # Maps the 'a' key to the move_char_left command
w = "move_line_up" # Maps the 'w' key move_line_up
"C-S-esc" = "extend_line" # Maps Ctrl-Shift-Escape to extend_line
g = { a = "code_action" } # Maps `ga` to show possible code actions
"ret" = ["open_below", "normal_mode"] # Maps the enter key to open_below then re-enter normal mode
[keys.insert]
"A-x" = "normal_mode" # Maps Alt-X to enter normal mode
j = { k = "normal_mode" } # Maps `jk` to exit insert mode |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I just call them functions, because that's exactly what they are e.g. |
Beta Was this translation helpful? Give feedback.
-
In the source |
Beta Was this translation helpful? Give feedback.
In the source
:wq
and others that start with:
are called "typable commands". The others that use snake_case and don't start with:
are "static commands".