X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fpercol%2Fpercol.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fpercol%2Fpercol.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=b78383eee2191ead1fb8b5675cb81b1a7c4faf63;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/percol/percol.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/percol/percol.plugin.zsh deleted file mode 100644 index b78383e..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/percol/percol.plugin.zsh +++ /dev/null @@ -1,25 +0,0 @@ -(( ${+commands[percol]} )) || return - -function percol_select_history() { - # print history in reverse order (from -1 (latest) to 1 (oldest)) - BUFFER=$(fc -l -n -1 1 | percol --query "$LBUFFER") - CURSOR=$#BUFFER - zle -R -c -} -zle -N percol_select_history -bindkey -M emacs '^R' percol_select_history -bindkey -M viins '^R' percol_select_history -bindkey -M vicmd '^R' percol_select_history - -if (( ${+functions[marks]} )); then - function percol_select_marks() { - # parse directory from marks output (markname -> path) and quote if necessary - BUFFER=${(q)"$(marks | percol --query "$LBUFFER")"##*-> } - CURSOR=$#BUFFER - zle -R -c - } - zle -N percol_select_marks - bindkey -M emacs '^B' percol_select_marks - bindkey -M viins '^B' percol_select_marks - bindkey -M vicmd '^B' percol_select_marks -fi