From fff1a39fe5ec95b213aa4b13662e1acd9fae1e85 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 5 Dec 2024 20:14:43 +0100 Subject: [PATCH] feat: add home screen bindings for emacs mode --- src/keybind/builtin/emacs.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/keybind/builtin/emacs.json b/src/keybind/builtin/emacs.json index 27043f0..31bbb5a 100644 --- a/src/keybind/builtin/emacs.json +++ b/src/keybind/builtin/emacs.json @@ -5,12 +5,24 @@ ["ctrl+e", "move_end"], ["ctrl+b", "move_left"], ["ctrl+f", "move_right"], + ["ctrl+s", "find"], ["ctrl+p", "move_up"], ["ctrl+n", "move_down"], + ["ctrl+x>ctrl+f", "open_file"], + ["ctrl+x>ctrl+c", "quit"], ["ctrl+x>ctrl+s", "save"], ["ctrl+x>ctrl+c", "quit"], ["ctrl+x>b", "open_recent"], ["alt+x", "open_command_palette"] ] + }, + "home": { + "on_match_failure": "ignore", + "press": [ + ["ctrl+h>ctrl+a", "open_help"], + ["ctrl+x>ctrl+f", "open_file"], + ["alt+x", "open_command_palette"], + ["ctrl+x>ctrl+c", "quit"] + ] } }