mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +00:00
4627b5db0b
Partially solves #37
12 lines
250 B
Bash
12 lines
250 B
Bash
_navi_path=$(dirname $0:A)
|
|
|
|
_call_navi() {
|
|
local buff="$BUFFER"
|
|
zle kill-whole-line
|
|
local cmd="$(NAVI_USE_FZF_ALL_INPUTS=true "${_navi_path}/navi" --print <> /dev/tty)"
|
|
zle -U "${buff}${cmd}"
|
|
}
|
|
|
|
zle -N _call_navi
|
|
|
|
bindkey '^g' _call_navi
|