mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
check percol
This commit is contained in:
parent
6a63586207
commit
2a650d5de1
1 changed files with 9 additions and 9 deletions
|
|
@ -9,14 +9,14 @@ if which percol &> /dev/null; then
|
||||||
|
|
||||||
zle -N percol_select_history
|
zle -N percol_select_history
|
||||||
bindkey '^R' percol_select_history
|
bindkey '^R' percol_select_history
|
||||||
fi
|
|
||||||
|
|
||||||
if which marks &> /dev/null; then
|
if which marks &> /dev/null; then
|
||||||
function percol_select_marks() {
|
function percol_select_marks() {
|
||||||
BUFFER=$(marks | percol --query "$LBUFFER" | awk '{print $3}')
|
BUFFER=$(marks | percol --query "$LBUFFER" | awk '{print $3}')
|
||||||
CURSOR=$#BUFFER # move cursor
|
CURSOR=$#BUFFER # move cursor
|
||||||
zle -R -c # refresh
|
zle -R -c # refresh
|
||||||
}
|
}
|
||||||
zle -N percol_select_marks
|
zle -N percol_select_marks
|
||||||
bindkey '^B' percol_select_marks
|
bindkey '^B' percol_select_marks
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue