Commit Graph

94 Commits (8689f5f230aab25012bd5521149abd32a9964dfc)

Author SHA1 Message Date
Koichi Murase 1525768094
[man] Escape hyphens to prevent conversion to Unicode hyphens (#3885)
ASCII hyphens (U+002D HYPHEN-MINUS) in the option names (e.g. -x and
--extended) and the code examples in the man pages should be escaped
as \- (e.g. \-x and \-\-extended) to prevent them being converted to
Unicode hyphens in some environments.

For example, in openSUSE Tumbleweed, the raw ASCII hyphens in the
man-page sources are configured to be the Unicode hyphen (U+2010
HYPHEN).  This makes it impossible to search the option name in the
man page by e.g. /--extended[RET].  A problem also arises in copying
and pasting option names and code examples from the man page.  It
appears to be the normal ASCII hyphens by appearance (in typical
terminal fonts) but are not recognized as the ASCII hyphens by the
`fzf` command.
4 months ago
Junegunn Choi c4a9ccd6af
0.53.0 4 months ago
Junegunn Choi 83b6033906 Add --tmux option to replace fzf-tmux script 5 months ago
Junegunn Choi 6432f00f0d
0.52.1 5 months ago
Junegunn Choi bcda25a513
0.52.0 5 months ago
Junegunn Choi 260a65b0fb
0.51.0 6 months ago
Junegunn Choi f97d275413
0.50.0 6 months ago
Junegunn Choi 62963dcefd
0.49.0 7 months ago
Junegunn Choi d579e335b5
0.48.1 7 months ago
Junegunn Choi 091b7eacba
0.48.0 7 months ago
Junegunn Choi 98ee5e651a
0.47.0 7 months ago
Junegunn Choi 3c0a630475
0.46.1 9 months ago
Junegunn Choi beb2de2dd9
0.46.0 9 months ago
Junegunn Choi 2024010119
0.45.0 10 months ago
Junegunn Choi d7d2ac3951
0.44.1 11 months ago
Junegunn Choi 7320b7df62
0.44.0 11 months ago
Junegunn Choi d3311d9f43
0.43.0 1 year ago
Junegunn Choi d471067e3f
0.42.0 1 year ago
Junegunn Choi 6eb1874c5a
0.41.1 1 year ago
Junegunn Choi 098ef4d7cf
0.41.0 1 year ago
Junegunn Choi fb76893e18
0.40.0 1 year ago
Junegunn Choi 20230402d0
0.39.0 2 years ago
Junegunn Choi 352ea07226
0.38.0 2 years ago
Junegunn Choi 2023012408
0.37.0 2 years ago
Junegunn Choi 2023011763
0.36.0 2 years ago
Junegunn Choi b55f555487
0.35.1 2 years ago
Junegunn Choi d01ae55109
0.35.0 2 years ago
Junegunn Choi 04d0b0223f
0.34.0 2 years ago
Junegunn Choi 6fb41a202a
Add --scheme=[default|path|history] option to choose scoring scheme
Close #2909
Close #2930
2 years ago
Junegunn Choi 4993d19466
0.32.1 2 years ago
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.
2 years ago
Junegunn Choi ecc418ba77
0.31.0 2 years ago
Junegunn Choi d56f605b63
Add `rebind` action for restoring bindings after `unbind`
Fix #2752
Close #2564
3 years ago
Junegunn Choi ef67a45702
Add --ellipsis=.. option
Close #2432

Also see
- #1769
- https://github.com/junegunn/fzf/pull/1844#issuecomment-586663660
3 years ago
Junegunn Choi dc975e8974
0.29.0 3 years ago
Junegunn Choi e4c3ecc57e
0.28.0 3 years ago
Junegunn Choi 4138333f5c
0.27.3 3 years ago
Junegunn Choi e086f0b3fe
0.27.2 3 years ago
Junegunn Choi 0818dbc36a
0.27.1 3 years ago
Junegunn Choi 19759ed36e
0.27.0 4 years ago
Junegunn Choi 1b08f43f82
Advanced preview scroll offset expression to better support fixed header 4 years ago
Junegunn Choi f55c990e86
Add `close` action
Close #2331
4 years ago
Junegunn Choi 8c533e34ea
0.25.0 4 years ago
Junegunn Choi d779ff7e6d
Make search toggleable
- `--phony` renamed to `--disabled` for consistency
    - `--no-phony` is now `--enabled`
- Added `enable-search`, `disable-search`, and `toggle-search` actions
  for `--bind`
- Added `--color` options: `query` and `disabled`

Close #2303
4 years ago
Junegunn Choi 00a3610331
0.24.4 4 years ago
Junegunn Choi 6d647e13ff
Add change-prompt action
Close #2270
4 years ago
Junegunn Choi f6269f0193
Add --padding option
Close #2241
4 years ago
Junegunn Choi e3e76fa8c5
0.24.2 4 years ago
Junegunn Choi d4c9db0a27
0.24.1 4 years ago
Junegunn Choi 552414978e
0.24.0-rc1 4 years ago