Files
fzf/src
Junegunn Choi f0bfeba733 Add 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 new 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.

Close #2285
Close #2537
- Not the exact solution to --tiebreak=length not taking --nth into account,
  but this should work. And the added benefit is that it works well even
  when --nth is not provided.
- Adding a bonus point to the last character of a word didn't turn out great.
  The order of the result suddenly changes when you type in the last
  character in the word producing a jarring effect.
2022-08-02 21:48:19 +09:00
..
2022-03-29 21:23:45 +09:00
2022-07-29 15:42:44 +09:00
2022-03-29 21:35:36 +09:00
2021-04-06 00:51:39 +09:00
2021-02-28 18:28:21 +09:00
2017-07-18 03:14:33 +09:00
2021-03-07 11:30:26 +09:00
2021-01-13 19:10:24 +09:00
2019-07-19 13:22:35 +09:00
2017-08-15 01:10:41 +09:00
2021-01-03 00:56:11 +09:00
2021-02-17 10:28:43 +09:00
2022-08-02 21:48:19 +09:00
2021-02-28 18:28:21 +09:00
2021-02-28 18:28:21 +09:00
2022-03-29 21:23:45 +09:00
2022-08-02 21:48:19 +09:00
2022-03-29 21:23:45 +09:00
2022-08-02 21:48:19 +09:00
2022-03-29 21:23:45 +09:00
2022-03-29 21:23:45 +09:00
2022-07-20 12:29:45 +09:00