mirror of
https://github.com/joshskidmore/zsh-fzf-history-search.git
synced 2026-09-10 07:06:21 -04:00
initiate fzf search with $BUFFER (if available)
This commit is contained in:
parent
9a15d9792f
commit
d594846297
|
|
@ -1,5 +1,5 @@
|
|||
fzf_history_seach() {
|
||||
BUFFER=$(history -t '%Y-%m-%d %H:%M:%S' 0 | grep -v 1969 | fzf +s +m -x --tac -e | awk '{print substr($0, index($0, $4))}')
|
||||
BUFFER=$(history -t '%Y-%m-%d %H:%M:%S' 0 | grep -v 1969 | fzf +s +m -x --tac -e -q "$BUFFER" | awk '{print substr($0, index($0, $4))}')
|
||||
zle end-of-line
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue