zsh: add secondary, unfiltered, prefix search

This commit is contained in:
Daniel Lundin 2024-03-25 19:29:27 +01:00
parent 54ad214a5b
commit b135975253

View file

@ -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