check percol
This commit is contained in:
parent
6a63586207
commit
2a650d5de1
@ -9,9 +9,8 @@ if which percol &> /dev/null; then
|
||||
|
||||
zle -N 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() {
|
||||
BUFFER=$(marks | percol --query "$LBUFFER" | awk '{print $3}')
|
||||
CURSOR=$#BUFFER # move cursor
|
||||
@ -19,4 +18,5 @@ if which marks &> /dev/null; then
|
||||
}
|
||||
zle -N percol_select_marks
|
||||
bindkey '^B' percol_select_marks
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user