From 8e7ccbda59d44dee2bb862630cf9a0781ca2551e Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 17 Mar 2025 23:30:59 -0400 Subject: [PATCH] use ctrl-f to accept autosuggestions --- .../modules/nmasur/presets/programs/fish.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/fish.nix b/platforms/home-manager/modules/nmasur/presets/programs/fish.nix index 68e1244..c5aa4b2 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/fish.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/fish.nix @@ -24,9 +24,12 @@ in nmasur.presets.programs.fish.fish_user_key_bindings = # fish '' - # Shift-Enter (defined by terminal) - bind -M insert \x1F accept-autosuggestion - bind -M default \x1F accept-autosuggestion + for mode in insert default visual + # Shift-Enter (defined by terminal) + bind -M $mode \x1F accept-autosuggestion + # Ctrl-f to accept auto-suggestions + bind -M $mode \cf forward-char + end ''; programs.fish = {