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 f119d63368f2598d99fa73df6f38308537504e92
parent 07a6a05e0b19606571efea9df455e75296b5f527
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Fri, 20 Oct 2017 21:43:52 -0400

add keybinds for vim in Rg mode. Disable symlink follow in fzf

Diffstat:
Mlinks/.zshrc | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -69,6 +69,14 @@ _editor_fuzzy_find() { zle -N _editor_fuzzy_find bindkey '^f' _editor_fuzzy_find +# launch vim+fzf+rg with Ctrl-g +_editor_fuzzy_grep() { + BUFFER="vim -c ':Rg'" + zle accept-line +} +zle -N _editor_fuzzy_grep +bindkey '^g' _editor_fuzzy_grep + if [[ "$ARCH" != 'Darwin' ]]; then function open() { xdg-open $1 &> /dev/null &disown; } function say() { echo "$@" | festival --tts; } @@ -343,7 +351,8 @@ if _has fzf; then # --hidden: Search hidden files and folders # --follow: Follow symlinks # --glob: Additional conditions for search (in this case ignore everything in the .git/ folder) - export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"' + #export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"' + export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --glob "!.git/*"' # use the_silver_searcher if available elif _has ag; then