fzf: Add DEFAULT_COMMAND and vim :Files mapping

Add FZF_DEFAULT_COMMAND that displays hidden files as well, but ignores
.git directories.
Add :Files mapping in vim. Because it is bound to <leader>f, the leader
key mapping had to be moved to the top of the file.
This commit is contained in:
2020-11-08 03:19:40 +01:00
parent c468af1fc2
commit 51643beddf
2 changed files with 8 additions and 2 deletions

View File

@@ -56,5 +56,9 @@ else
export LESS_TERMCAP_us=$'\e[1;4;31m'
fi
# Show also hidden files per default but ignore files in '.git' directories.
FZF_DEFAULT_COMMAND="find . -name '.git' -prune -o \( -type f -a -print \)"
export FZF_DEFAULT_COMMAND
# Automatically start X on login after boot.
[[ -n $DISPLAY || $XDG_VTNR -ne 1 ]] || exec startx