module

Adamantine::KeyConfig

Constants

DEFAULT_KEY_MAP = {"app.open_file_tree" => ["ctrl+o"], "app.next_tab" => ["ctrl+tab"], "app.previous_tab" => ["ctrl+shift+tab"], "app.goto_tab_1" => ["alt+1"], "app.goto_tab_2" => ["alt+2"], "app.goto_tab_3" => ["alt+3"], "app.goto_tab_4" => ["alt+4"], "app.goto_tab_5" => ["alt+5"], "app.goto_tab_6" => ["alt+6"], "app.goto_tab_7" => ["alt+7"], "app.goto_tab_8" => ["alt+8"], "app.goto_tab_9" => ["alt+9"], "app.quick_actions" => ["shift+enter", "shift+return"], "lsp.goto_definition" => ["f12"], "lsp.hover" => ["f6"], "lsp.references" => ["f7"], "lsp.signature" => ["f8"], "lsp.context_menu" => ["f9"], "app.save" => ["ctrl+s"], "app.undo" => ["ctrl+z"], "app.redo" => ["ctrl+shift+z", "ctrl+y"], "app.find" => ["ctrl+f"], "app.find_in_project" => ["alt+f", "option+f", "ctrl+shift+f"], "app.close_tab" => ["ctrl+w"], "lsp.status" => ["ctrl+l"], "lsp.toggle_fold" => ["alt+/", "ctrl+shift+["], "app.focus_tree" => ["f2"], "app.focus_editor" => ["f3"], "app.refresh_tree" => ["f4"], "app.help" => ["f5"], "app.command_palette" => ["ctrl+shift+p"], "app.quit" => ["ctrl+q"], "app.settings" => ["f10"], "app.reload_theme" => ["f11"], "app.jump_back" => ["ctrl+[", "alt+["], "app.jump_forward" => ["ctrl+]", "alt+]"], "app.menu_up" => ["up", "k"], "app.menu_down" => ["down", "j"], "app.menu_select" => ["enter", "return"], "app.menu_close" => ["escape"], "app.menu_first" => ["home"], "app.menu_last" => ["end"], "lsp.popup_close" => ["escape", "enter", "return"], "lsp.menu_definition" => ["f12"], "lsp.menu_declaration" => ["d"], "lsp.menu_type_definition" => ["t"], "lsp.menu_implementation" => ["i"], "lsp.menu_hover" => ["h"], "lsp.menu_references" => ["r"], "lsp.menu_signature" => ["s"], "lsp.menu_completion" => ["c"], "lsp.menu_diagnostics" => ["x"], "lsp.menu_code_actions" => ["a"]}
MAX_KEYMAP_FILE_BYTES = 1048576

Class methods

default_save_path
Source
defaults
Source
duplicate_binding_warnings(bindings : ActionMap) : Array(String)
Source
find_action_for_binding(bindings : ActionMap, binding : String) : Action | Nil
Source
load(path : String | Nil, on_warning : Proc(String, Nil) | Nil = nil) : ActionMap
Source
normalize_binding(raw : String) : String
Source
normalize_bindings(bindings : Array(KeyBinding)) : Array(KeyBinding)
Source
resolve_default_path
Source
save(path : String, bindings : ActionMap) : Nil
Source
serializable_payload(bindings : ActionMap) : String
Source

Nested types