navi/shell/navi.plugin.zsh
Denis Isidoro 2ac30999c2 Bump
2020-03-11 11:31:04 -03:00

12 lines
209 B
Bash

#!/usr/bin/env zsh
_call_navi() {
local -r buff="$BUFFER"
local -r r="$(printf "$(navi --print </dev/tty)")"
zle kill-whole-line
zle -U "${buff}${r}"
}
zle -N _call_navi
bindkey '^g' _call_navi