mirror of
https://github.com/denisidoro/navi
synced 2024-11-13 23:37:10 +00:00
2aa07c2ce1
- fix widget - cleanup - fix dict lib
11 lines
No EOL
227 B
Bash
11 lines
No EOL
227 B
Bash
_call_navi() {
|
|
local buff="$BUFFER"
|
|
zle kill-whole-line
|
|
local cmd="$(NAVI_USE_FZF_ALL_INPUTS=true navi --print <> /dev/tty)"
|
|
zle -U "${buff}${cmd}"
|
|
# zle accept-line
|
|
}
|
|
|
|
zle -N _call_navi
|
|
|
|
bindkey '\eg' _call_navi |