Add some basic docs

pull/3958/head
Matthew Cheely 2022-10-17 20:15:27 -04:00
parent 0d307265f6
commit 4b5fa788ae
1 changed files with 7 additions and 0 deletions

View File

@ -41,6 +41,13 @@ 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 "ret" = ["open_below", "normal_mode"] # Maps the enter key to open_below then re-enter normal mode
"A-x" = "@x<A-d>" # Maps Alt-x to a macro selecting the whole line and deleting it without yanking it "A-x" = "@x<A-d>" # Maps Alt-x to a macro selecting the whole line and deleting it without yanking it
# You can create labeled sub-menus and provide friendly labels for typeable commands
[keys.normal.space.f] # Registering multiple mappings under a single entry creates a sub-menu (accesed by 'space', 'f' in this case)
label = "File" # The menu is called file and within it:
f = "file_picker" # 'f' opens the file picker
s = { label = "Save", command = ":write" } # 's' saves the current file
c = { label = "Edit Config", command = ":open ~/.config/helix/config.toml" } # 'c' opens the helix config file
[keys.insert] [keys.insert]
"A-x" = "normal_mode" # Maps Alt-X to enter normal mode "A-x" = "normal_mode" # Maps Alt-X to enter normal mode
j = { k = "normal_mode" } # Maps `jk` to exit insert mode j = { k = "normal_mode" } # Maps `jk` to exit insert mode