mirror of https://github.com/lapce/lapce.git
144 lines
2.4 KiB
TOML
144 lines
2.4 KiB
TOML
# --------------------------------- General --------------------------------------------
|
|
|
|
[[keymaps]]
|
|
key = "meta+p"
|
|
command = "palette"
|
|
|
|
[[keymaps]]
|
|
key = "meta+P"
|
|
command = "palette.command"
|
|
|
|
[[keymaps]]
|
|
key = "meta+e"
|
|
command = "toggle_code_lens"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+,"
|
|
command = "open_settings"
|
|
|
|
[[keymaps]]
|
|
key = "meta+k meta+s"
|
|
command = "open_keyboard_shortcuts"
|
|
|
|
# --------------------------------- Basic editing ---------------------------------------
|
|
|
|
[[keymaps]]
|
|
key = "meta+z"
|
|
command = "undo"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+Z"
|
|
command = "redo"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+x"
|
|
command = "clipboard_cut"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+c"
|
|
command = "clipboard_copy"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+v"
|
|
command = "clipboard_paste"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+right"
|
|
command = "word_forward"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+left"
|
|
command = "word_backward"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+backspace"
|
|
command = "delete_word_backward"
|
|
mode = "i"
|
|
|
|
# ------------------------------------ Multi cursor -------------------------------------
|
|
|
|
[[keymaps]]
|
|
key = "alt+meta+up"
|
|
command = "insert_cursor_above"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "alt+meta+down"
|
|
command = "insert_cursor_below"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+l"
|
|
command = "select_current_line"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+L"
|
|
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"
|
|
|
|
# ------------------------------------ File Management --------------------------------
|
|
|
|
[[keymaps]]
|
|
key = "meta+s"
|
|
command = "save"
|
|
|
|
# ----------------------------------- Editor Management -------------------------------
|
|
|
|
[[keymaps]]
|
|
key = "meta+w"
|
|
command = "split_close"
|
|
|
|
[[keymaps]]
|
|
key = "meta+\\"
|
|
command = "split_vertical"
|
|
|
|
# --------------------------------- Rich Lanaguage Editing ----------------------------
|
|
|
|
[[keymaps]]
|
|
key = "ctrl+space"
|
|
command = "get_completion"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+i"
|
|
command = "get_completion"
|
|
mode = "i"
|
|
|
|
[[keymaps]]
|
|
key = "meta+."
|
|
command = "show_code_actions"
|
|
|
|
# ------------------------------------ Navigation -------------------------------------
|
|
|
|
[[keymaps]]
|
|
key = "meta+O"
|
|
command = "palette.symbol"
|
|
|
|
[[keymaps]]
|
|
key = "ctrl+g"
|
|
command = "palette.line"
|