lapce/defaults/keymaps-macos.toml

246 lines
4.0 KiB
TOML
Raw Normal View History

# --------------------------------- Window ---------------------------------------------
[[keymaps]]
command = "window_close"
key = "Meta+Shift+W"
2021-09-29 11:15:41 +00:00
# --------------------------------- General --------------------------------------------
[[keymaps]]
key = "meta+p"
command = "palette"
[[keymaps]]
key = "meta+shift+p"
2021-09-29 11:15:41 +00:00
command = "palette.command"
2021-09-28 17:08:36 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "meta+e"
command = "toggle_code_lens"
mode = "i"
2021-10-15 21:09:31 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "meta+,"
command = "open_settings"
2021-10-15 21:09:31 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "meta+k meta+s"
command = "open_keyboard_shortcuts"
2021-10-15 21:09:31 +00:00
2022-08-27 23:09:49 +00:00
# [[keymaps]]
# key = "meta+q"
# command = "quit"
2022-03-21 13:03:37 +00:00
# --------------------------------- Basic editing ---------------------------------------
2021-10-15 21:09:31 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "meta+z"
command = "undo"
2021-10-15 21:09:31 +00:00
2022-03-14 16:19:51 +00:00
[[keymaps]]
key = "meta+shift+z"
2022-03-21 13:03:37 +00:00
command = "redo"
2022-03-14 16:19:51 +00:00
2021-09-29 11:15:41 +00:00
[[keymaps]]
key = "meta+x"
2022-03-15 09:16:19 +00:00
command = "clipboard_cut"
2021-09-29 11:15:41 +00:00
2022-03-04 13:22:36 +00:00
[[keymaps]]
key = "meta+c"
command = "clipboard_copy"
[[keymaps]]
key = "meta+v"
command = "clipboard_paste"
2022-03-21 13:03:37 +00:00
2022-03-23 17:44:34 +00:00
[[keymaps]]
key = "meta+f"
command = "search"
2022-03-21 13:03:37 +00:00
[[keymaps]]
key = "alt+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 = "alt+left"
2022-03-21 13:03:37 +00:00
command = "word_backward"
mode = "i"
2022-05-20 12:16:09 +00:00
[[keymaps]]
key = "meta+left"
command = "line_start_non_blank"
mode = "i"
[[keymaps]]
key = "meta+right"
command = "line_end"
mode = "i"
[[keymaps]]
key = "alt+backspace"
command = "delete_word_backward"
2022-03-21 13:03:37 +00:00
mode = "i"
2022-03-04 13:22:36 +00:00
[[keymaps]]
key = "meta+backspace"
command = "delete_to_beginning_of_line"
2022-05-12 20:43:11 +00:00
mode = "i"
[[keymaps]]
key = "alt+delete"
command = "delete_word_forward"
2022-03-21 13:53:16 +00:00
mode = "i"
[[keymaps]]
key = "meta+|"
command = "match_pairs"
2022-03-21 13:23:19 +00:00
mode = "i"
[[keymaps]]
key = "meta+/"
command = "toggle_line_comment"
2022-03-22 13:39:47 +00:00
[[keymaps]]
key = "meta+]"
command = "indent_line"
2022-03-22 22:04:11 +00:00
[[keymaps]]
key = "meta+["
command = "outdent_line"
2022-03-22 22:04:11 +00:00
[[keymaps]]
key = "meta+a"
command = "select_all"
[[keymaps]]
2022-03-24 15:41:28 +00:00
key = "meta+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 = "meta+shift+enter"
command = "new_line_above"
mode = "i"
2022-03-24 15:41:28 +00:00
2021-09-29 11:15:41 +00:00
# ------------------------------------ Multi cursor -------------------------------------
[[keymaps]]
key = "alt+meta+up"
command = "insert_cursor_above"
mode = "i"
2022-03-15 13:03:08 +00:00
[[keymaps]]
key = "alt+meta+down"
command = "insert_cursor_below"
mode = "i"
2021-09-29 11:15:41 +00:00
2022-03-15 13:03:08 +00:00
[[keymaps]]
key = "meta+l"
command = "select_current_line"
mode = "i"
2021-09-29 11:15:41 +00:00
2022-03-15 15:18:17 +00:00
[[keymaps]]
key = "meta+shift+l"
2022-03-15 15:18:17 +00:00
command = "select_all_current"
mode = "i"
[[keymaps]]
key = "meta+u"
command = "select_undo"
mode = "i"
[[keymaps]]
key = "meta+d"
command = "select_next_current"
mode = "i"
[[keymaps]]
key = "meta+k meta+d"
command = "select_skip_current"
mode = "i"
2022-03-21 13:03:37 +00:00
# ------------------------------------ File Management --------------------------------
2021-09-28 17:08:36 +00:00
[[keymaps]]
key = "meta+s"
command = "save"
2022-03-21 14:15:02 +00:00
[[keymaps]]
key = "meta+o"
command = "open_file"
2022-05-11 20:14:35 +00:00
[[keymaps]]
key = "meta+n"
command = "new_file"
2022-03-21 13:03:37 +00:00
# ----------------------------------- Editor Management -------------------------------
2021-09-28 17:08:36 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "meta+w"
command = "split_close"
2021-09-28 17:08:36 +00:00
2022-03-21 14:15:02 +00:00
[[keymaps]]
key = "meta+k f"
command = "close_folder"
2022-03-21 13:19:53 +00:00
[[keymaps]]
key = "meta+\\"
command = "split_vertical"
# --------------------------------- Rich Language Editing ----------------------------
2021-09-28 17:08:36 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "ctrl+space"
command = "get_completion"
2021-09-28 17:08:36 +00:00
mode = "i"
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "meta+i"
command = "get_completion"
2022-03-18 16:14:43 +00:00
mode = "i"
2021-09-28 17:08:36 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "meta+."
command = "show_code_actions"
2022-02-07 20:54:20 +00:00
2022-03-21 13:31:00 +00:00
# --------------------------------- Display -------------------------------------------
[[keymaps]]
key = "meta+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 = "meta+shift+f"
2022-03-23 21:45:16 +00:00
command = "toggle_search_focus"
2022-03-21 13:31:00 +00:00
[[keymaps]]
key = "meta+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 = "meta+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 -------------------------------------
2021-09-28 17:08:36 +00:00
[[keymaps]]
key = "meta+up"
command = "document_start"
[[keymaps]]
key = "meta+down"
command = "document_end"
2021-09-28 17:08:36 +00:00
[[keymaps]]
key = "meta+shift+o"
2022-03-21 13:03:37 +00:00
command = "palette.symbol"
2021-09-28 17:08:36 +00:00
[[keymaps]]
key = "meta+t"
command = "palette.workspace_symbol"
2021-09-28 17:08:36 +00:00
[[keymaps]]
2022-03-21 13:03:37 +00:00
key = "ctrl+g"
command = "palette.line"