lapce/defaults/keymaps-nonmacos.toml

149 lines
2.4 KiB
TOML
Raw Normal View History

2022-03-21 13:03:37 +00:00
# --------------------------------- General --------------------------------------------
[[keymaps]]
key = "ctrl+p"
command = "palette"
[[keymaps]]
key = "Ctrl+P"
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"
# --------------------------------- Basic editing ---------------------------------------
[[keymaps]]
key = "ctrl+z"
command = "undo"
mode = "i"
[[keymaps]]
key = "ctrl+Z"
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"
[[keymaps]]
key = "ctrl+right"
command = "word_forward"
mode = "i"
[[keymaps]]
key = "ctrl+left"
command = "word_backward"
mode = "i"
[[keymaps]]
key = "ctrl+backspace"
command = "delete_word_backward"
mode = "i"
# ------------------------------------ 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"
# ----------------------------------- Editor Management -------------------------------
[[keymaps]]
key = "ctrl+w"
command = "split_close"
mode = "i"
[[keymaps]]
key = "ctrl+F4"
command = "split_close"
2022-03-21 13:19:53 +00:00
[[keymaps]]
key = "ctrl+\\"
command = "split_vertical"
2022-03-21 13:03:37 +00:00
# --------------------------------- Rich Lanaguage Editing ----------------------------
[[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"
# ------------------------------------ Navigation -------------------------------------
[[keymaps]]
key = "ctrl+O"
command = "palette.symbol"
[[keymaps]]
key = "ctrl+g"
command = "palette.line"