From 2b7367618c82f0bdad5230d51c6fb44cffb4f4f4 Mon Sep 17 00:00:00 2001 From: "Billy.Zheng" Date: Thu, 16 Nov 2023 01:28:17 +0800 Subject: [PATCH] Add Alt-backspace config into example/emacs.yml (#369) * Add Alt-backspace config into example/emacs.yml * Add C-M-Space config into examples/emacs.yml * Fix C-s to use C-f fo example/config. Check #369 --- example/emacs.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/example/emacs.yml b/example/emacs.yml index 2a4201e..a5007dd 100644 --- a/example/emacs.yml +++ b/example/emacs.yml @@ -1,6 +1,8 @@ # Credit: https://github.com/mooz/xkeysnail/blob/bf3c93b4fe6efd42893db4e6588e5ef1c4909cfb/example/config.py#L62-L125 keymap: - name: Emacs + application: + not: [Emacs] remap: # Cursor C-b: { with_mark: left } @@ -32,13 +34,17 @@ keymap: M-d: [C-delete, { set_mark: false }] # Kill line C-k: [Shift-end, C-x, { set_mark: false }] + # Kill word backward + Alt-backspace: [C-backspace, {set_mark: false}] + # set mark next word continuously. + C-M-space: [C-Shift-right, {set_mark: true}] # Undo C-slash: [C-z, { set_mark: false }] C-Shift-ro: C-z # Mark C-space: { set_mark: true } # Search - C-s: F3 + C-s: C-f C-r: Shift-F3 M-Shift-5: C-h # Cancel