From f9c152688ada79592a79918c376dbb15d314aced Mon Sep 17 00:00:00 2001 From: Cookiez Date: Thu, 19 Feb 2026 11:55:37 +0100 Subject: [PATCH] Add key bindings for left and right cursor navigation in Zsh autocomplete selection, as it caused issues --- modules/zsh.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/zsh.nix b/modules/zsh.nix index 6cd4186..7a51f6d 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -21,6 +21,10 @@ promptInit = '' source ${pkgs.zsh-autocomplete}/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme + + # Make ← and → move the cursor on the command line, even when in the menu + bindkey -M menuselect '^[[D' .backward-char '^[OD' .backward-char + bindkey -M menuselect '^[[C' .forward-char '^[OC' .forward-char ''; };