From 6fbc165cabe4af172e6069fe84e8edf455dd6690 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Thu, 19 Dec 2024 00:28:35 +0100 Subject: [PATCH] fix: zsh history substring search --- SwarselSystems.org | 6 +++++- profiles/common/home/zsh.nix | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index 5e40b2d..1162b3e 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -8664,7 +8664,11 @@ Here we set some aliases (some of them should be shellApplications instead) as w save = 10000; size = 10000; }; - historySubstringSearch.enable = true; + historySubstringSearch = { + enable = true; + searchDownKey = "^[OB"; + searchUpKey = "^[OA"; + }; plugins = [ { name = "fzf-tab"; diff --git a/profiles/common/home/zsh.nix b/profiles/common/home/zsh.nix index 47bc28d..6b4a7e7 100644 --- a/profiles/common/home/zsh.nix +++ b/profiles/common/home/zsh.nix @@ -45,7 +45,11 @@ save = 10000; size = 10000; }; - historySubstringSearch.enable = true; + historySubstringSearch = { + enable = true; + searchDownKey = "^[OB"; + searchUpKey = "^[OA"; + }; plugins = [ { name = "fzf-tab";