Commit Graph

64 Commits

Author SHA1 Message Date
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
Junegunn Choi
ecc418ba77
0.31.0 2022-07-21 23:04:57 +09:00
Junegunn Choi
d56f605b63
Add rebind action for restoring bindings after unbind
Fix #2752
Close #2564
2022-04-04 21:54:22 +09:00
Junegunn Choi
ef67a45702
Add --ellipsis=.. option
Close #2432

Also see
- #1769
- https://github.com/junegunn/fzf/pull/1844#issuecomment-586663660
2022-03-29 21:35:36 +09:00
Junegunn Choi
dc975e8974
0.29.0 2021-12-25 01:46:01 +09:00
Junegunn Choi
e4c3ecc57e
0.28.0 2021-11-04 01:05:07 +09:00
Junegunn Choi
4138333f5c
0.27.3 2021-10-15 23:59:56 +09:00
Junegunn Choi
e086f0b3fe
0.27.2 2021-06-01 17:00:24 +09:00
Junegunn Choi
0818dbc36a
0.27.1 2021-05-22 13:19:57 +09:00
Junegunn Choi
19759ed36e
0.27.0 2021-04-06 22:53:59 +09:00
Junegunn Choi
1b08f43f82
Advanced preview scroll offset expression to better support fixed header 2021-03-13 02:26:41 +09:00
Junegunn Choi
f55c990e86
Add close action
Close #2331
2021-02-02 00:11:05 +09:00
Junegunn Choi
8c533e34ea
0.25.0 2021-01-03 00:56:11 +09:00
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
2021-01-03 00:15:00 +09:00
Junegunn Choi
00a3610331
0.24.4 2020-12-05 23:24:55 +09:00
Junegunn Choi
6d647e13ff
Add change-prompt action
Close #2270
2020-12-04 20:34:41 +09:00
Junegunn Choi
f6269f0193
Add --padding option
Close #2241
2020-11-09 20:37:17 +09:00
Junegunn Choi
e3e76fa8c5
0.24.2 2020-11-03 23:32:24 +09:00
Junegunn Choi
d4c9db0a27
0.24.1 2020-10-29 01:45:55 +09:00
Junegunn Choi
552414978e
0.24.0-rc1 2020-10-27 11:07:27 +09:00
Junegunn Choi
fc7630a66d
0.23.1 2020-10-11 02:04:07 +09:00
Junegunn Choi
dba14d2630
0.23.0 2020-10-07 19:18:50 +09:00
Junegunn Choi
e2ae1b249c
0.22.0 2020-08-02 15:56:02 +09:00
Junegunn Choi
6dec42a33a
Update version numbers in man pages 2020-06-29 22:07:48 +09:00
Junegunn Choi
334a4fa159
0.21.1 2020-04-03 17:33:29 +09:00
Junegunn Choi
bf65e8cd12 [fzf-tmux] Add option to start fzf in tmux popup window
Requires latest tmux built from source (e.g. brew install tmux --HEAD)

Examples:

  # 50%/50% width and height on the center of the screen
  fzf-tmux -p

  # 80%/80%
  fzf-tmux -p80%

  # 80%/40%
  fzf-tmux -p80%,40%

  # Separate -w and -h
  fzf-tmux -w80% -h40%

  # 80%/40% at position (0, 0)
  fzf-tmux -w80% -h40% -x0 -y0

You can configure key bindings and fuzzy completion to open in tmux
popup window like so:

  FZF_TMUX_OPTS='-p 80%'
2020-04-03 13:23:15 +09:00
Junegunn Choi
b0673c3563
0.21.0 2020-03-12 13:15:45 +09:00
Shun Sakai
3918c45ced Update copyright year (#1832)
Update copyright year to 2020 and change to multi-year format.
2020-01-25 01:41:55 +09:00
Junegunn Choi
3db6b88d82
Add preview-fg and preview-bg for --color
Close #1776
2019-12-12 23:03:17 +09:00
Junegunn Choi
23a06d63ac
Update CHANGELOG and man pages 2019-11-13 01:27:39 +09:00
Junegunn Choi
ff951341c9
0.18.0 2019-03-31 11:22:38 +09:00
Junegunn Choi
b46227dcb6
0.17.5 2018-10-07 01:46:29 +09:00
Junegunn Choi
f0fe79dd3b
0.17.4 2018-06-10 10:35:52 +09:00
Junegunn Choi
390b49653b
0.17.3 2017-12-03 23:55:24 +09:00
Junegunn Choi
04aa2992e7
Revert "0.17.2"
This reverts commit 2f1edeff78.
2017-12-03 23:42:38 +09:00
Junegunn Choi
2f1edeff78
0.17.2 2017-12-03 23:34:37 +09:00
Junegunn Choi
0b33dc6ce1
0.17.1 2017-10-16 01:58:57 +09:00
Junegunn Choi
e89eebb7ba
0.17.0 2017-08-27 03:32:21 +09:00
Junegunn Choi
ecb6b234cc
0.16.11 2017-08-02 02:50:28 +09:00
Junegunn Choi
6dbc108da2
0.16.10 2017-07-21 18:41:11 +09:00
Junegunn Choi
18a1aeaa91
0.16.9 2017-07-21 00:08:55 +09:00
Junegunn Choi
b49f22cdf9
0.16.8 2017-06-05 23:21:50 +09:00
Junegunn Choi
2d61691bb2
0.16.7 2017-04-30 11:54:40 +09:00
Junegunn Choi
e03e91477b
0.16.6 2017-03-05 03:05:06 +09:00
Junegunn Choi
e87a85a179
0.16.5 2017-02-19 01:40:25 +09:00
Junegunn Choi
ee5aeb80a4
0.16.4 2017-02-05 16:17:54 +09:00
Junegunn Choi
7763fdf6ba
Update man pages 2017-01-30 01:27:12 +09:00
Junegunn Choi
ff248d566d
Drop ncurses dependency
Close #818
2017-01-22 14:13:37 +09:00
Junegunn Choi
62ab8ece5e
0.16.1 2017-01-16 12:27:40 +09:00
Junegunn Choi
a30999a785
Prepare for 0.16.0 release 2017-01-08 02:09:56 +09:00