107 lines
3.6 KiB
JSON
107 lines
3.6 KiB
JSON
{
|
|
"project": {
|
|
"press": [
|
|
["ctrl+0", "reset_fontsize"],
|
|
["ctrl+=", "adjust_fontsize", 1.0],
|
|
["ctrl+-", "adjust_fontsize", -1.0]
|
|
]
|
|
},
|
|
"normal": {
|
|
"press": [
|
|
["ctrl+g", "cancel"],
|
|
["ctrl+_", "undo"],
|
|
["ctrl+k", ["select_end"], ["cut"]],
|
|
["ctrl+w", "cut"],
|
|
|
|
["ctrl+p", "move_up"],
|
|
["ctrl+n", "move_down"],
|
|
["ctrl+b", "move_left"],
|
|
["ctrl+f", "move_right"],
|
|
["alt+b", "move_word_left"],
|
|
["alt+f", "move_word_right"],
|
|
["ctrl+a", "move_begin"],
|
|
["ctrl+e", "move_end"],
|
|
["alt+<", "move_buffer_begin"],
|
|
["alt+>", "move_buffer_end"],
|
|
["alt+v", "move_page_up"],
|
|
["ctrl+v", "move_page_down"],
|
|
|
|
["ctrl+s", "find"],
|
|
["ctrl+d", "delete_forward"],
|
|
["alt+d", ["select_word_right"], ["cut"]],
|
|
["ctrl+y", "system_paste"],
|
|
["ctrl+x ctrl+f", "open_file"],
|
|
["ctrl+x k", "close_file"],
|
|
["ctrl+x ctrl+c", "quit"],
|
|
["ctrl+x ctrl+s", "save_file"],
|
|
["ctrl+x ctrl+c", "quit"],
|
|
["ctrl+x b", "switch_buffers"],
|
|
["ctrl+x ctrl+r", "open_recent"],
|
|
["alt+x", "open_command_palette"],
|
|
["ctrl+space", "enter_mode", "select"],
|
|
|
|
["ctrl+c l = =", "format"],
|
|
["ctrl+c l = r", "format"],
|
|
["ctrl+c l g g", "goto_definition"],
|
|
["ctrl+c l g i", "goto_implementation"],
|
|
["ctrl+c l g d", "goto_declaration"],
|
|
["ctrl+c l g r", "references"],
|
|
["ctrl+c l h h", "hover"],
|
|
["ctrl+c l r r", "rename_symbol"],
|
|
|
|
["super+l = =", "format"],
|
|
["super+l = r", "format"],
|
|
["super+l g g", "goto_definition"],
|
|
["super+l g i", "goto_implementation"],
|
|
["super+l g d", "goto_declaration"],
|
|
["super+l g r", "references"],
|
|
["super+l h h", "hover"],
|
|
["super+l r r", "rename_symbol"]
|
|
]
|
|
},
|
|
"select": {
|
|
"name": "SELECT",
|
|
"inherit": "normal",
|
|
"press": [
|
|
["ctrl+space", ["enter_mode", "normal"], ["cancel"]],
|
|
["ctrl+g", ["enter_mode", "normal"], ["cancel"]],
|
|
["ctrl+w", ["cut"], ["enter_mode", "normal"], ["cancel"]],
|
|
["alt+w", ["copy"], ["enter_mode", "normal"], ["cancel"]],
|
|
|
|
["ctrl+p", "select_up"],
|
|
["ctrl+n", "select_down"],
|
|
["ctrl+b", "select_left"],
|
|
["ctrl+f", "select_right"],
|
|
["alt+b", "select_word_left"],
|
|
["alt+f", "select_word_right"],
|
|
["ctrl+a", "select_begin"],
|
|
["ctrl+e", "select_end"],
|
|
["alt+<", "select_buffer_begin"],
|
|
["alt+>", "select_buffer_end"],
|
|
["alt+v", "select_page_up"],
|
|
["ctrl+v", "select_page_down"]
|
|
]
|
|
},
|
|
"overlay/palette": {
|
|
"press": [
|
|
["ctrl+a", "palette_menu_top"],
|
|
["ctrl+f", "palette_menu_down"]
|
|
]
|
|
},
|
|
"mini/file_browser": {
|
|
"press": [
|
|
["alt+backspace", "mini_mode_delete_to_previous_path_segment"]
|
|
]
|
|
},
|
|
"home": {
|
|
"on_match_failure": "ignore",
|
|
"press": [
|
|
["ctrl+h ctrl+a", "open_help"],
|
|
["ctrl+x ctrl+f", "open_file"],
|
|
["ctrl+x b", "open_recent"],
|
|
["alt+x", "open_command_palette"],
|
|
["f", "change_fontface"],
|
|
["ctrl+x ctrl+c", "quit"]
|
|
]
|
|
}
|
|
}
|