From ec75b5ca6a877a988341b7d1b65cf1aa0fd7035f Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 2 Dec 2024 21:23:21 +0100 Subject: [PATCH] fix: emacs mode --- src/keybind/builtin/emacs.json | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/keybind/builtin/emacs.json b/src/keybind/builtin/emacs.json index ce4821a..27043f0 100644 --- a/src/keybind/builtin/emacs.json +++ b/src/keybind/builtin/emacs.json @@ -1,17 +1,16 @@ { - "base": { - "syntax": "vim", + "normal": { "press": [ - ["", "cursor_line_start"], - ["", "cursor_line_end"], - ["", "cursor_left"], - ["", "cursor_right"], - ["", "cursor_up"], - ["", "cursor_down"], - ["", "save"], - ["", "quit"], - ["b", "open_recent_files"], - ["", "open_command_palette"] + ["ctrl+a", "smart_move_begin"], + ["ctrl+e", "move_end"], + ["ctrl+b", "move_left"], + ["ctrl+f", "move_right"], + ["ctrl+p", "move_up"], + ["ctrl+n", "move_down"], + ["ctrl+x>ctrl+s", "save"], + ["ctrl+x>ctrl+c", "quit"], + ["ctrl+x>b", "open_recent"], + ["alt+x", "open_command_palette"] ] } }