m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 00:53:42 -05:00

Tweak bonus points to word boundaries

Close https://github.com/junegunn/fzf.vim/issues/1004

  # jobs/latency.js is favored over job_latency.js
  printf 'job_latency.js\njobs/latency.js' | fzf -qlatency
This commit is contained in:
Junegunn Choi
2022-07-30 22:11:21 +09:00
parent bbbcd780c9
commit c3a7a24eea
3 changed files with 91 additions and 40 deletions

View File

@@ -1,6 +1,23 @@
CHANGELOG
=========
0.32.0
------
- Updated the scoring algorithm
- Different bonus points to different categories of word boundaries
(listed higher to lower bonus point)
- Word after whitespace characters or beginning of the string
- Word after common delimiter characters (`/,:;|`)
- Word after other non-word characters
````sh
# foo/bar.sh` is preferred over `foo-bar.sh` on `bar`
fzf --query bar --height 4 << EOF
foo-bar.sh
foo/bar.sh
EOF
```
- Bug fixes and improvements
0.31.0
------
- Added support for an alternative preview window layout that is activated