We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0bd580 + 297cd43 commit a38b278Copy full SHA for a38b278
sources/history.zsh
@@ -3,12 +3,15 @@ zmodload zsh/parameter
3
function zaw-src-history() {
4
if zstyle -t ':filter-select' hist-find-no-dups ; then
5
candidates=(${(@vu)history})
6
+ options=("-m" "-s" "${BUFFER}")
7
else
8
cands_assoc=("${(@kv)history}")
9
+ # have filter-select reverse the order (back to latest command first).
10
+ # somehow, `cands_assoc` gets reversed while `candidates` doesn't.
11
+ options=("-r" "-m" "-s" "${BUFFER}")
12
fi
13
actions=("zaw-callback-execute" "zaw-callback-replace-buffer" "zaw-callback-append-to-buffer")
14
act_descriptions=("execute" "replace edit buffer" "append to edit buffer")
- options=("-r" "-m" "-s" "${BUFFER}")
15
16
if (( $+functions[zaw-bookmark-add] )); then
17
# zaw-src-bookmark is available
0 commit comments