From 73abdd8bbfc4f789967b2567e325d1edf05e6b39 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 28 Mar 2025 15:00:17 -0400 Subject: [PATCH] AutoYADM commit: 2025-03-28 15:00:17 --- .config/fish/fish_variables | 2 +- ..._key_bindings-test.fish => fish_user_key_bindings.fish} | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) rename .config/fish/functions/{fish_user_key_bindings-test.fish => fish_user_key_bindings.fish} (92%) diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables index 0f84d924..24c3fbc4 100644 --- a/.config/fish/fish_variables +++ b/.config/fish/fish_variables @@ -30,7 +30,7 @@ SETUVAR fish_color_status:red SETUVAR fish_color_user:brgreen SETUVAR fish_color_valid_path:\x2d\x2dunderline SETUVAR fish_greeting: -SETUVAR fish_key_bindings:fish_helix_key_bindings +SETUVAR fish_key_bindings:fish_vi_key_bindings SETUVAR fish_pager_color_background:\x1d SETUVAR fish_pager_color_completion:normal SETUVAR fish_pager_color_description:yellow\x1e\x2d\x2ditalics diff --git a/.config/fish/functions/fish_user_key_bindings-test.fish b/.config/fish/functions/fish_user_key_bindings.fish similarity index 92% rename from .config/fish/functions/fish_user_key_bindings-test.fish rename to .config/fish/functions/fish_user_key_bindings.fish index dc417e7e..0bea8573 100644 --- a/.config/fish/functions/fish_user_key_bindings-test.fish +++ b/.config/fish/functions/fish_user_key_bindings.fish @@ -1,5 +1,10 @@ function fish_user_key_bindings fish_vi_key_bindings + + bind -M insert ctrl-b backward-word + bind -M insert ctrl-w forward-word + bind -M insert ctrl-d backward-kill-word + bind -M default m backward-char bind -M default i forward-char bind -m insert h repaint-mode @@ -10,7 +15,7 @@ function fish_user_key_bindings bind g,l end-of-buffer bind U redo - bind -m insert ctrl-r history-pager repaint-mode + bind -M insert ctrl-r history-pager repaint-mode bind e up-or-search bind n down-or-search bind l 'set fish_cursor_end_mode exclusive' forward-single-char forward-word backward-char 'set fish_cursor_end_mode inclusive'