Skip to content

Commit

Permalink
feat: Add oh-my-zsh plugin compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbl committed Sep 30, 2019
1 parent 0c960fc commit 32b1b42
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions navi.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local _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 accept-line
}

zle -N _call_navi

bindkey '\eg' _call_navi

0 comments on commit 32b1b42

Please sign in to comment.