2022-03-21 11:35:00 +00:00
|
|
|
# --------------------------------- General --------------------------------------------
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "F1"
|
|
|
|
command = "palette.command"
|
|
|
|
|
|
|
|
# --------------------------------- Basic editing ---------------------------------------
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "alt+up"
|
|
|
|
command = "move_line_up"
|
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "alt+down"
|
|
|
|
command = "move_line_down"
|
|
|
|
mode = "i"
|
2022-03-21 13:03:37 +00:00
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "Delete"
|
|
|
|
command = "delete_forward"
|
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "backspace"
|
|
|
|
command = "delete_backward"
|
|
|
|
mode = "i"
|
2022-03-21 11:35:00 +00:00
|
|
|
|
2022-03-21 13:07:58 +00:00
|
|
|
[[keymaps]]
|
|
|
|
key = "Home"
|
|
|
|
command = "line_start_non_blank"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "End"
|
|
|
|
command = "line_end"
|
2022-03-21 13:10:02 +00:00
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "PageUp"
|
|
|
|
command = "page_up"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "PageDown"
|
|
|
|
command = "page_down"
|
2022-03-21 13:16:12 +00:00
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "Ctrl+PageUp"
|
|
|
|
command = "scroll_up"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "Ctrl+PageDown"
|
|
|
|
command = "scroll_down"
|
2022-03-21 13:07:58 +00:00
|
|
|
|
2022-03-21 11:35:00 +00:00
|
|
|
# ------------------------------------ Multi cursor -------------------------------------
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "alt+I"
|
|
|
|
command = "insert_cursor_end_of_line"
|
2022-03-21 13:03:37 +00:00
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
# --------------------------------- Rich Lanaguage Editing ----------------------------
|
|
|
|
|
2022-03-21 13:31:00 +00:00
|
|
|
[[keymaps]]
|
|
|
|
key = "F12"
|
|
|
|
command = "goto_definition"
|
|
|
|
|
2022-03-21 13:43:32 +00:00
|
|
|
# ------------------------------------ Navigation -------------------------------------
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "F8"
|
|
|
|
command = "next_error"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "shift+F8"
|
|
|
|
command = "previous_error"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+-"
|
|
|
|
command = "jump_location_backward"
|
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+_"
|
|
|
|
command = "jump_location_forward"
|
|
|
|
mode = "i"
|
|
|
|
|
2022-03-21 13:31:00 +00:00
|
|
|
# --------------------------------- Integrated Terminal ------------------------------
|
|
|
|
|
2022-03-21 13:03:37 +00:00
|
|
|
[[keymaps]]
|
2022-03-21 13:43:32 +00:00
|
|
|
key = "Ctrl+`"
|
2022-03-23 21:45:16 +00:00
|
|
|
command = "toggle_terminal_focus"
|
2022-03-21 11:35:00 +00:00
|
|
|
|
|
|
|
# ------------------------------------ ------------ -------------------------------------
|
2022-03-21 13:03:37 +00:00
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "tab"
|
|
|
|
command = "jump_to_next_snippet_placeholder"
|
|
|
|
when = "in_snippet"
|
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "shift+tab"
|
|
|
|
command = "jump_to_prev_snippet_placeholder"
|
|
|
|
when = "in_snippet"
|
|
|
|
mode = "i"
|
2022-03-21 11:35:00 +00:00
|
|
|
|
2022-03-23 21:20:43 +00:00
|
|
|
[[keymaps]]
|
|
|
|
key = "esc"
|
|
|
|
command = "clear_search"
|
|
|
|
when = "search_focus"
|
|
|
|
|
2022-03-21 11:35:00 +00:00
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+m"
|
|
|
|
command = "list.select"
|
|
|
|
when = "list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "enter"
|
|
|
|
command = "list.select"
|
|
|
|
when = "list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+p"
|
|
|
|
command = "list.previous"
|
|
|
|
when = "list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "up"
|
|
|
|
command = "list.previous"
|
|
|
|
when = "list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+n"
|
|
|
|
command = "list.next"
|
|
|
|
when = "list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "down"
|
|
|
|
command = "list.next"
|
|
|
|
when = "list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "o"
|
|
|
|
command = "list.expand"
|
|
|
|
when = "list_focus"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "/"
|
|
|
|
command = "palette.line"
|
|
|
|
mode = "n"
|
|
|
|
|
2022-03-24 05:42:25 +00:00
|
|
|
[[keymaps]]
|
|
|
|
key = "esc"
|
|
|
|
command = "modal.close"
|
2022-03-24 12:42:56 +00:00
|
|
|
when = "modal_focus"
|
2022-03-21 11:35:00 +00:00
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+b"
|
|
|
|
command = "left"
|
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+f"
|
|
|
|
command = "right"
|
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "right"
|
|
|
|
command = "right"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "left"
|
|
|
|
command = "left"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "up"
|
|
|
|
command = "up"
|
|
|
|
when = "!list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "down"
|
|
|
|
command = "down"
|
|
|
|
when = "!list_focus"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+h"
|
|
|
|
command = "delete_backward"
|
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "enter"
|
|
|
|
command = "insert_new_line"
|
|
|
|
when = "!list_focus"
|
2022-03-22 17:38:31 +00:00
|
|
|
mode = "i"
|
2022-03-21 11:35:00 +00:00
|
|
|
|
2022-03-24 13:06:27 +00:00
|
|
|
[[keymaps]]
|
|
|
|
key = "shift+enter"
|
|
|
|
command = "search_backward"
|
|
|
|
when = "search_focus"
|
|
|
|
mode = "i"
|
|
|
|
|
2022-03-21 11:35:00 +00:00
|
|
|
[[keymaps]]
|
|
|
|
key = "tab"
|
|
|
|
command = "insert_tab"
|
2022-03-22 17:38:31 +00:00
|
|
|
when = "!in_snippet"
|
2022-03-21 11:35:00 +00:00
|
|
|
mode = "i"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+m"
|
|
|
|
command = "insert_new_line"
|
2022-03-21 13:03:37 +00:00
|
|
|
when = "!list_focus"
|
2022-03-22 17:38:31 +00:00
|
|
|
mode = "i"
|
2022-03-21 13:03:37 +00:00
|
|
|
|
|
|
|
# ------------------------------------ Modal -----------------------------------------
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "esc"
|
|
|
|
command = "normal_mode"
|
2022-03-24 12:42:56 +00:00
|
|
|
mode = "niv"
|
2022-03-23 21:20:43 +00:00
|
|
|
when = "!search_focus"
|
2022-03-21 13:03:37 +00:00
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = ":"
|
|
|
|
command = "palette.command"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "G"
|
|
|
|
command = "go_to_line_deault_last"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "g g"
|
|
|
|
command = "go_to_line_deault_first"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "h"
|
|
|
|
command = "left"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "j"
|
|
|
|
command = "down"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "k"
|
|
|
|
command = "up"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "l"
|
|
|
|
command = "right"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "a"
|
|
|
|
command = "append"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "A"
|
|
|
|
command = "append_end_of_line"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "i"
|
|
|
|
command = "insert_mode"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "u"
|
|
|
|
command = "undo"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+r"
|
|
|
|
command = "redo"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+i"
|
|
|
|
command = "jump_location_forward"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+o"
|
|
|
|
command = "jump_location_backward"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+n"
|
|
|
|
command = "goto_definition"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "g d"
|
|
|
|
command = "goto_definition"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "p"
|
|
|
|
command = "paste"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "J"
|
|
|
|
command = "join_lines"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "y"
|
|
|
|
command = "yank"
|
|
|
|
mode = "v"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "x"
|
|
|
|
command = "delete_forward"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+p"
|
|
|
|
command = "get_references"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "s"
|
|
|
|
command = "delete_forward_and_insert"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "I"
|
|
|
|
command = "insert_first_non_blank"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "o"
|
|
|
|
command = "new_line_below"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "0"
|
|
|
|
command = "line_start"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "^"
|
|
|
|
command = "line_start_non_blank"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "$"
|
|
|
|
command = "line_end"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "w"
|
|
|
|
command = "word_forward"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "e"
|
|
|
|
command = "word_end_forward"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "b"
|
|
|
|
command = "word_backward"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "O"
|
|
|
|
command = "new_line_above"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+e"
|
|
|
|
command = "scroll_down"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+y"
|
|
|
|
command = "scroll_up"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+u"
|
|
|
|
command = "page_up"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+d"
|
|
|
|
command = "page_down"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "z z"
|
|
|
|
command = "center_of_window"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "d"
|
2022-03-24 12:42:56 +00:00
|
|
|
command = "delete_forward"
|
2022-03-21 13:03:37 +00:00
|
|
|
mode = "v"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "f"
|
|
|
|
command = "inline_find_right"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "F"
|
|
|
|
command = "inline_find_left"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = ";"
|
|
|
|
command = "repeat_last_inline_find"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
2022-03-24 12:42:56 +00:00
|
|
|
key = "d"
|
|
|
|
command = "motion_mode_delete"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = ">"
|
|
|
|
command = "motion_mode_indent"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "<"
|
|
|
|
command = "motion_mode_outdent"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "y"
|
|
|
|
command = "motion_mode_yank"
|
2022-03-21 13:03:37 +00:00
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "*"
|
|
|
|
command = "search_whole_word_forward"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "n"
|
|
|
|
command = "search_forward"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "N"
|
|
|
|
command = "search_backward"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "%"
|
|
|
|
command = "match_pairs"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "] )"
|
|
|
|
command = "next_unmatched_right_bracket"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "[ ("
|
|
|
|
command = "previous_unmatched_left_bracket"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "] }"
|
|
|
|
command = "next_unmatched_right_curly_bracket"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "[ {"
|
|
|
|
command = "previous_unmatched_left_curly_bracket"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "v"
|
|
|
|
command = "toggle_visual_mode"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "V"
|
|
|
|
command = "toggle_linewise_visual_mode"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+v"
|
|
|
|
command = "toggle_blockwise_visual_mode"
|
|
|
|
mode = "nv"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+w l"
|
|
|
|
command = "split_right"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+w h"
|
|
|
|
command = "split_left"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+w j"
|
|
|
|
command = "split_down"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+w k"
|
|
|
|
command = "split_up"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+w s"
|
|
|
|
command = "split_horizontal"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "ctrl+w v"
|
|
|
|
command = "split_vertical"
|
|
|
|
mode = "n"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "space"
|
|
|
|
command = "toggle_code_lens"
|
|
|
|
mode = "nv"
|
2022-03-22 22:04:11 +00:00
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = ">"
|
|
|
|
command = "indent_line"
|
|
|
|
mode = "v"
|
|
|
|
|
|
|
|
[[keymaps]]
|
|
|
|
key = "<"
|
|
|
|
command = "outdent_line"
|
|
|
|
mode = "v"
|