zsh: add secondary, unfiltered, prefix search
This commit is contained in:
parent
54ad214a5b
commit
b135975253
1 changed files with 7 additions and 1 deletions
|
@ -18,7 +18,13 @@ function my-history-prefix-search() {
|
||||||
--limit 1 \
|
--limit 1 \
|
||||||
--offset $offset \
|
--offset $offset \
|
||||||
--format '{command}' \
|
--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
|
if [[ -n "$result" ]]; then
|
||||||
BUFFER=$result
|
BUFFER=$result
|
||||||
|
|
Loading…
Reference in a new issue