mirror of
https://github.com/joshskidmore/zsh-fzf-history-search.git
synced 2026-09-10 07:06:21 -04:00
properly handle zle widget
This commit is contained in:
parent
78dec6460d
commit
9a15d9792f
|
|
@ -1,5 +1,6 @@
|
|||
fzf_history_seach() {
|
||||
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))}' | tr -d "\n"
|
||||
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))}')
|
||||
zle end-of-line
|
||||
}
|
||||
|
||||
autoload fzf_history_seach
|
||||
|
|
|
|||
Loading…
Reference in a new issue