dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 95dabaab0712c65c478a56ef25dda1add4741921
parent 82b46c582ccee0aee7d91cedf23b649607f8ef27
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 30 May 2018 15:27:31 -0400

Hide fzf preview window for pass completion

Diffstat:
Mlinks/.zshrc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -42,7 +42,7 @@ bindkey '^N' down-line-or-search bindkey '^ ' autosuggest-accept # accept suggestion with ctrl+space # use Ctrl-Z as fg -_fzf_foreground() { +_foreground() { if [[ $#BUFFER -eq 0 ]]; then BUFFER="fg" zle accept-line @@ -51,8 +51,8 @@ _fzf_foreground() { zle clear-screen fi } -zle -N _fzf_foreground -bindkey '^Z' _fzf_foreground +zle -N _foreground +bindkey '^Z' _foreground # launch $EDITOR with Ctrl-e _editor() { @@ -207,7 +207,7 @@ fi > /dev/null 2>&1 # pass **<tab> _fzf_complete_pass() { - _fzf_complete '+m' "$@" < <( + _fzf_complete "--no-multi --preview-window=right:hidden" "$@" < <( pwdir=${PASSWORD_STORE_DIR-~/.password-store/} stringsize="${#pwdir}" find "$pwdir" -name "*.gpg" -print |