navi/shell/widget.zsh
Denis Isidoro 95fc254736
Add MVP for zsh widget (#50)
Related: #37
2019-09-23 18:14:58 -03:00

9 lines
No EOL
201 B
Bash

_call_navi() {
# zle kill-whole-line
zle -U "$(NAVI_FZF_ALL_INPUTS=true navi --print "$(echo "$CUTBUFFER" | xargs)" <> /dev/tty)"
zle accept-line
}
zle -N _call_navi
bindkey '\eg' _call_navi