SHA256
1
0
forked from pool/fzf

Accepting request 992624 from home:mcepl:branches:utilities

- Update to 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
      # foo/bar.sh` is preferred over `foo-bar.sh` on `bar`
      fzf --query=bar --height=4 << EOF
      foo-bar.sh
      foo/bar.sh
      EOF
  - Added a new tiebreak chunk
    - Favors the line with shorter matched chunk. A chunk is a
      set of consecutive non-whitespace characters.
    - Unlike the default length, this scheme works well with
      tabular input
        # length prefers item #1, because the whole line is shorter,
        # chunk prefers item #2, because the matched chunk ("foo") is shorter
        fzf --height=6 --header-lines=2 --tiebreak=chunk --reverse --query=fo << "EOF"
        N | Field1 | Field2 | Field3
        - | ------ | ------ | ------
        1 | hello  | foobar | baz
        2 | world  | foo    | bazbaz
        EOF
     - If the input does not contain any spaces, chunk is
       equivalent to length. But we're not going to set it as the
       default because it is computationally more expensive.
  - Bug fixes and improvements

OBS-URL: https://build.opensuse.org/request/show/992624
OBS-URL: https://build.opensuse.org/package/show/utilities/fzf?expand=0&rev=54
This commit is contained in:
Matej Cepl 2022-08-06 15:21:15 +00:00 committed by Git OBS Bridge
parent 6533958ef7
commit 755ba727c8
6 changed files with 41 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:df4edee32cb214018ed40160ced968d4cc3b63bba5b0571487011ee7099faa76
size 210779

3
fzf-0.32.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3502c15faeb0a6d553c68ab1a7f472af08afed94a1d016427a8ab053ef149a8f
size 212066

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Wed Aug 3 14:31:08 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to 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
# foo/bar.sh` is preferred over `foo-bar.sh` on `bar`
fzf --query=bar --height=4 << EOF
foo-bar.sh
foo/bar.sh
EOF
- Added a new tiebreak chunk
- Favors the line with shorter matched chunk. A chunk is a
set of consecutive non-whitespace characters.
- Unlike the default length, this scheme works well with
tabular input
# length prefers item #1, because the whole line is shorter,
# chunk prefers item #2, because the matched chunk ("foo") is shorter
fzf --height=6 --header-lines=2 --tiebreak=chunk --reverse --query=fo << "EOF"
N | Field1 | Field2 | Field3
- | ------ | ------ | ------
1 | hello | foobar | baz
2 | world | foo | bazbaz
EOF
- If the input does not contain any spaces, chunk is
equivalent to length. But we're not going to set it as the
default because it is computationally more expensive.
- Bug fixes and improvements
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 21 16:17:24 UTC 2022 - Matej Cepl <mcepl@suse.com> Thu Jul 21 16:17:24 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@ -17,14 +17,14 @@
Name: fzf Name: fzf
Version: 0.31.0 Version: 0.32.0
Release: 0 Release: 0
Summary: A command-line fuzzy finder Summary: A command-line fuzzy finder
License: MIT License: MIT
Group: Productivity/File utilities Group: Productivity/File utilities
URL: https://github.com/junegunn/fzf URL: https://github.com/junegunn/fzf
Source0: https://github.com/junegunn/fzf/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/junegunn/fzf/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz Source1: vendor.tar.xz
BuildRequires: golang(API) = 1.18 BuildRequires: golang(API) = 1.18
%description %description

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23c06e9e68baf8774cfe96b58d66811684fe7b6352ae610e41ef48c269827ad1
size 2590604

3
vendor.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f72530ac494d377196fff4446ab8a1b033f2b078b21594248dceea1cdd2940f4
size 1307584