Added preview to FZF CTRL_T

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2020-01-18 22:24:15 +02:00
parent 6e4b373d0b
commit f754ae0e4e
No known key found for this signature in database
GPG Key ID: 911B85FBC6003FE5

View File

@ -20,6 +20,7 @@ export GOPATH=~/.bin/go
export FZF_DEFAULT_COMMAND='rg --files --hidden 2>/dev/null'
export FZF_COMPLETION_TRIGGER='**'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_CTRL_T_OPTS='--preview "/usr/bin/cat {} | nvimpager -c "'
export FZF_ALT_C_COMMAND='rg --hidden --files --null --sort path 2>/dev/null | xargs -0 dirname | uniq'
# use lesspipe with less