lapce/defaults/keymaps-nonmacos.toml

249 lines
4.0 KiB
TOML
Raw Normal View History

# --------------------------------- Window ---------------------------------------------
[[keymaps]]
command = "close_window"
key = "Alt+F4"
2022-03-21 13:03:37 +00:00
# --------------------------------- General --------------------------------------------
[[keymaps]]
key = "ctrl+p"
command = "palette"
[[keymaps]]
key = "ctrl+shift+p"
2022-03-21 13:03:37 +00:00
command = "palette.command"
[[keymaps]]
key = "ctrl+e"
command = "toggle_code_lens"
mode = "i"
[[keymaps]]
key = "ctrl+,"
command = "open_settings"
[[keymaps]]
key = "ctrl+k ctrl+s"
command = "open_keyboard_shortcuts"
# --------------------------------- Terminal copy/paste ---------------------------------
[[keymaps]]
key = "ctrl+shift+c"
command = "clipboard_copy"
mode = "t"
[[keymaps]]
key = "ctrl+shift+v"
command = "clipboard_paste"
mode = "t"
2022-03-21 13:03:37 +00:00
# --------------------------------- Basic editing ---------------------------------------
[[keymaps]]
key = "ctrl+z"
command = "undo"
mode = "i"
[[keymaps]]
key = "ctrl+shift+z"
2022-03-21 13:03:37 +00:00
command = "redo"
mode = "i"
[[keymaps]]
key = "ctrl+x"
command = "clipboard_cut"
mode = "i"
[[keymaps]]
key = "ctrl+c"
command = "clipboard_copy"
mode = "i"
[[keymaps]]
key = "ctrl+v"
command = "clipboard_paste"
mode = "i"
2022-03-23 17:44:34 +00:00
[[keymaps]]
key = "ctrl+f"
command = "search"
2022-03-21 13:03:37 +00:00
[[keymaps]]
key = "ctrl+right"
2022-06-10 19:49:42 +00:00
command = "word_end_forward"
2022-03-21 13:03:37 +00:00
mode = "i"
[[keymaps]]
key = "ctrl+left"
command = "word_backward"
mode = "i"
[[keymaps]]
key = "ctrl+backspace"
command = "delete_word_backward"
2022-03-21 13:03:37 +00:00
mode = "i"
[[keymaps]]
key = "ctrl+delete"
command = "delete_word_forward"
2022-03-21 13:53:16 +00:00
mode = "i"
[[keymaps]]
key = "ctrl+|"
command = "match_pairs"
2022-03-21 13:23:19 +00:00
mode = "i"
[[keymaps]]
key = "ctrl+/"
command = "toggle_line_comment"
2022-03-22 13:39:47 +00:00
[[keymaps]]
key = "ctrl+]"
command = "indent_line"
2022-03-22 22:04:11 +00:00
[[keymaps]]
key = "ctrl+["
command = "outdent_line"
2022-03-22 22:04:11 +00:00
[[keymaps]]
key = "ctrl+a"
command = "select_all"
[[keymaps]]
2022-03-24 15:41:28 +00:00
key = "ctrl+enter"
command = "new_line_below"
mode = "i"
2022-03-24 15:41:28 +00:00
[[keymaps]]
2022-03-24 15:41:28 +00:00
key = "ctrl+shift+enter"
command = "new_line_above"
mode = "i"
2022-03-24 15:41:28 +00:00
2022-03-21 13:03:37 +00:00
# ------------------------------------ Multi cursor -------------------------------------
[[keymaps]]
key = "alt+ctrl+up"
command = "insert_cursor_above"
mode = "i"
[[keymaps]]
key = "alt+ctrl+down"
command = "insert_cursor_below"
mode = "i"
[[keymaps]]
key = "ctrl+l"
command = "select_current_line"
mode = "i"
[[keymaps]]
key = "ctrl+L"
command = "select_all_current"
mode = "i"
[[keymaps]]
key = "ctrl+u"
command = "select_undo"
mode = "i"
[[keymaps]]
key = "ctrl+d"
command = "select_next_current"
mode = "i"
[[keymaps]]
key = "ctrl+k ctrl+d"
command = "select_skip_current"
mode = "i"
# ------------------------------------ File Management --------------------------------
[[keymaps]]
key = "ctrl+s"
command = "save"
2022-03-21 14:15:02 +00:00
[[keymaps]]
key = "ctrl+o"
command = "open_file"
2022-05-11 20:14:35 +00:00
[[keymaps]]
key = "ctrl+n"
command = "new_file"
2022-03-21 13:03:37 +00:00
# ----------------------------------- Editor Management -------------------------------
[[keymaps]]
key = "ctrl+w"
command = "split_close"
mode = "i"
2022-03-21 14:15:02 +00:00
[[keymaps]]
key = "ctrl+k f"
command = "close_folder"
2022-03-21 13:03:37 +00:00
[[keymaps]]
key = "ctrl+F4"
command = "split_close"
2022-03-21 13:19:53 +00:00
[[keymaps]]
key = "ctrl+\\"
command = "split_vertical"
# --------------------------------- Rich Language Editing ----------------------------
2022-03-21 13:03:37 +00:00
[[keymaps]]
key = "ctrl+space"
command = "get_completion"
mode = "i"
[[keymaps]]
key = "ctrl+i"
command = "get_completion"
mode = "i"
[[keymaps]]
key = "ctrl+."
command = "show_code_actions"
2022-03-21 13:31:00 +00:00
# --------------------------------- Display -------------------------------------------
[[keymaps]]
key = "ctrl+shift+e"
2022-03-23 21:45:16 +00:00
command = "toggle_file_explorer_focus"
2022-03-21 13:31:00 +00:00
[[keymaps]]
key = "ctrl+shift+f"
2022-03-23 21:45:16 +00:00
command = "toggle_search_focus"
2022-03-21 13:31:00 +00:00
[[keymaps]]
key = "ctrl+shift+x"
2022-03-23 21:45:16 +00:00
command = "toggle_plugin_focus"
2022-03-21 13:31:00 +00:00
2022-03-21 13:43:32 +00:00
[[keymaps]]
key = "ctrl+shift+m"
2022-03-23 21:45:16 +00:00
command = "toggle_problem_focus"
2022-03-21 13:43:32 +00:00
2022-03-21 13:03:37 +00:00
# ------------------------------------ Navigation -------------------------------------
[[keymaps]]
key = "Ctrl+Home"
command = "document_start"
[[keymaps]]
key = "Ctrl+End"
command = "document_end"
2022-03-21 13:03:37 +00:00
[[keymaps]]
key = "ctrl+shift+o"
2022-03-21 13:03:37 +00:00
command = "palette.symbol"
[[keymaps]]
key = "ctrl+t"
command = "palette.workspace_symbol"
2022-03-21 13:03:37 +00:00
[[keymaps]]
key = "ctrl+g"
command = "palette.line"