Skip to content

Commit

Permalink
Tweak some fzf scoring schemes.
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendart committed Jan 31, 2024
1 parent eee8606 commit 9f6fd22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vim/plugin/fuzzy-files.vim
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function! s:FuzzyFiles(abandon, ...) abort
\ '--preview', g:fzf_preview_command,
\ '--prompt', pathshorten(l:spec.dir) . (((has('win32') || has('win64')) && !&shellslash) ? '\' : '/'),
\ '--query', l:query,
\ '--scheme', 'path',
\ ],
\ 'sink*': function('s:FuzzyFilesHandler', [a:abandon]),
\ 'source': g:fuzzy_files_source_command,
Expand Down
1 change: 1 addition & 0 deletions .vim/plugin/fuzzy-snippets.vim
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function! s:FuzzySnippets() abort
\ '--preview', g:fzf_preview_command,
\ '--header', 'CTRL+Y: yank ╱ ENTER: append',
\ '--prompt', '--8<-- ',
\ '--scheme', 'path',
\ '--with-nth', '-1',
\ ],
\ 'sink*': function('s:FuzzySnippetsHandler'),
Expand Down
1 change: 1 addition & 0 deletions bin/fuzzy-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ FZF_OUTPUT=$(\
--preview='cat {} 2>/dev/null' \
--prompt='--%<-- ' \
--query="$1" \
--scheme='path' \
)
SELECTED_ACTION=$(echo "$FZF_OUTPUT" | head -1)
SELECTED_FILE=$(echo "$FZF_OUTPUT" | tail -1)
Expand Down

0 comments on commit 9f6fd22

Please sign in to comment.