From 8064b4346ac6ddf804ad3582d087920e6ad1781a Mon Sep 17 00:00:00 2001 From: Damien Dart Date: Mon, 1 Jul 2024 22:52:05 +0100 Subject: [PATCH] Do some fuzzy finder tweakin'. --- .vim/plugin/fuzzy-files.vim | 1 + .vim/plugin/fuzzy-grep.vim | 1 + bin/fuzzy-snippets | 1 + 3 files changed, 3 insertions(+) diff --git a/.vim/plugin/fuzzy-files.vim b/.vim/plugin/fuzzy-files.vim index 4ede719..f164634 100644 --- a/.vim/plugin/fuzzy-files.vim +++ b/.vim/plugin/fuzzy-files.vim @@ -38,6 +38,7 @@ function! s:FuzzyFiles(abandon, ...) abort \ { \ 'options': [ \ '--bind', 'ctrl-a:select-all,ctrl-d:deselect-all,ctrl-z:abort', + \ '--bind', 'backward-eof:abort', \ '--border-label', 'Press F1 for help', \ '--border-label-pos', '-3:bottom', \ '--expect', 'ctrl-t,ctrl-v,ctrl-x,ctrl-y,f1', diff --git a/.vim/plugin/fuzzy-grep.vim b/.vim/plugin/fuzzy-grep.vim index 60f1c58..d6a5a8f 100644 --- a/.vim/plugin/fuzzy-grep.vim +++ b/.vim/plugin/fuzzy-grep.vim @@ -32,6 +32,7 @@ function! s:FuzzyGrep(abandon, options, prompt_embellishment, ...) abort \ 'options': [ \ '--ansi', \ '--bind', 'ctrl-a:select-all,ctrl-d:deselect-all,ctrl-z:abort', + \ '--bind', 'backward-eof:abort', \ '--bind', 'change:reload:sleep 0.05;' . printf(g:fuzzy_grep_source_command, a:options, '{q}'), \ '--border-label', 'Press F1 for help', \ '--border-label-pos', '-3:bottom', diff --git a/bin/fuzzy-snippets b/bin/fuzzy-snippets index 0cb4471..f921c31 100755 --- a/bin/fuzzy-snippets +++ b/bin/fuzzy-snippets @@ -145,6 +145,7 @@ fi FZF_OUTPUT=$(\ echo "$SNIPPET_FILES" | sort | fzf \ --bind='ctrl-z:ignore' \ + --bind='backward-eof:abort' \ --border-label="$FZF_LABEL" \ --border-label-pos='-3:bottom' \ --delimiter='/' \