From b135975253b6fd5b833c6dd24dcc45697e0cc5e9 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 25 Mar 2024 19:29:27 +0100 Subject: [PATCH] zsh: add secondary, unfiltered, prefix search --- .zsh/history.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zsh/history.zsh b/.zsh/history.zsh index 267af14..f0b901a 100644 --- a/.zsh/history.zsh +++ b/.zsh/history.zsh @@ -18,7 +18,13 @@ function my-history-prefix-search() { --limit 1 \ --offset $offset \ --format '{command}' \ - "$MY_HISTORY_SEARCH_PREFIX" + "$MY_HISTORY_SEARCH_PREFIX" || + atuin search \ + --search-mode prefix \ + --limit 1 \ + --offset $offset \ + --format '{command}' \ + "$MY_HISTORY_SEARCH_PREFIX" || ) if [[ -n "$result" ]]; then BUFFER=$result