Commit Graph

345 Commits (master)

Author SHA1 Message Date
Junegunn Choi 168453da71
More key chords for --bind
Close #1752
5 years ago
Junegunn Choi 23a06d63ac
Update CHANGELOG and man pages 5 years ago
Junegunn Choi ff951341c9
0.18.0 5 years ago
Junegunn Choi 75972d59a8
Add --no-unicode option to draw borders in ASCII characters
Close ##1533
5 years ago
Junegunn Choi 2157f4f193
Add color option for gutter
fzf --color gutter:-1

Close #1529
Close #1468
5 years ago
Junegunn Choi 8dc1377efb
Export FZF_PREVIEW_LINES and FZF_PREVIEW_COLUMNS to preview process
fzf will still override LINES and COLUMNS as before but they may not
hold the correct values depending on the default shell.

Close #1314
5 years ago
Junegunn Choi 6c32148f90
Add placeholder expression for zero-based item index: {n} and {+n}
Close #1482
5 years ago
Junegunn Choi b46227dcb6
0.17.5 6 years ago
Junegunn Choi 0e06e298d4
[man] Document that FZF_DEFAULT_COMMAND should be POSIX-compliant
Close #1379
6 years ago
Junegunn Choi f0fe79dd3b
0.17.4 6 years ago
Akinori MUSHA daa1958f86 Provide an option to reverse items only (#1267) 6 years ago
Junegunn Choi 2c26f02f5c
Improve preview window update events
- Update preview window even if there is no match for the query string
  if any of the placeholder expressions evaluates to a non-empty string.
- Also, if the command template contains {q}, preview window will be
  updated if the query string changes even though the focus remains on
  the same item.

An example:

    git log --oneline --color=always |
       fzf --reverse --ansi --preview \
       '[ -n {1} ] && git show --color=always {1} || git show --color=always {q}'

Close #1307
6 years ago
Junegunn Choi 7dbbbef51a
Add support for alt-{up,down,left,right} keys
Close #1234
6 years ago
ZDNoFYVe 43345fb642 Implement flag for preserving whitespace around field (#1242) 6 years ago
xalexalex 9ff33814ea Fix typo in README (#1243) 6 years ago
Junegunn Choi 417bca03df
Add shift-up and shift-down
For now, they are respectively bound to preview-up and preview-down
by default (TBD).

Not available on tcell build.

Close #1201
6 years ago
Junegunn Choi 390b49653b
0.17.3 7 years ago
Junegunn Choi 04aa2992e7
Revert "0.17.2"
This reverts commit 2f1edeff78.
7 years ago
Junegunn Choi 2f1edeff78
0.17.2 7 years ago
Junegunn Choi 5a7b41a2cf
Add accept-non-empty action
'accept-non-empty' is similar to 'accept' (which is bound to 'enter' and
'double-click' by default) but it prevents fzf from exiting without any
selection.

Close #1162
7 years ago
Junegunn Choi 338a73d764
[man] Describe 'cancel' action 7 years ago
Junegunn Choi c20954f020
Add replace-query action
replace-query action replaces the query string with the current
selection. If the selection is too long, it will be truncated.

If the line contains meta-characters of fzf search syntax, it is
possible that the line is no longer included in the updated result.

e.g.

  echo '!hello' | fzf --bind ctrl-v:replace-query

Close #1137
7 years ago
Junegunn Choi f6b1962056
Inject $LINES and $COLUMNS when running preview command
Close #1168
7 years ago
Junegunn Choi b3b101a89c
Support binding of left-click and right-click
left-click and right-click are respectively bound to "ignore" and
"toggle" (after implicitly moving the cursor) by default.

Close #1130
7 years ago
Junegunn Choi 0b33dc6ce1
0.17.1 7 years ago
Junegunn Choi e89eebb7ba
0.17.0 7 years ago
Junegunn Choi fee404399a
Make --expect additive
Similarly to --bind or --color.

--expect used to replace the previously specified keys, and
fzf#wrap({'options': '--expect=f1'}) wouldn't work as expected. It
forced us to come up with some ugly hacks like the following:

13b27c45c8/autoload/fzf/vim.vim (L1086)
7 years ago
Junegunn Choi ecb6b234cc
0.16.11 7 years ago
Junegunn Choi 3e28403978
[man] Add note on `--no-` convention
Close #1003
7 years ago
Junegunn Choi 6dbc108da2
0.16.10 7 years ago
Junegunn Choi 18a1aeaa91
0.16.9 7 years ago
Junegunn Choi bf92862459
Update man page: missing name "border" for --color 7 years ago
Junegunn Choi b49f22cdf9
0.16.8 7 years ago
Junegunn Choi e1e3339770
Implement bindable "change" event and "top" action
# Move cursor to the top result whenever the query string is changed
    fzf --bind change:top

Close #925
7 years ago
Junegunn Choi 2d61691bb2
0.16.7 7 years ago
Junegunn Choi 6b592137b9
Add support for ctrl-alt-[a-z] key chords
Close #906
7 years ago
Junegunn Choi 9078197446
Add --version to --help output and man page
Close #888
Close #894
7 years ago
Junegunn Choi e03e91477b
0.16.6 7 years ago
Junegunn Choi 53348feb89
Add --no-clear option 7 years ago
Junegunn Choi e87a85a179
0.16.5 7 years ago
Junegunn Choi c82fb3c9b9
Add toggle-preview-wrap action 7 years ago
Junegunn Choi ee5aeb80a4
0.16.4 7 years ago
Junegunn Choi 4b700192c1
Add --border option to draw horizontal lines above and below the finder
Goes well with --height
7 years ago
Junegunn Choi 7763fdf6ba
Update man pages 7 years ago
Junegunn Choi 36dceecd58
Add support for ctrl-space key
Close #825
7 years ago
Junegunn Choi 421b9b271a
Add execute-silent action
Close #823
7 years ago
Junegunn Choi ed57dcb924
Extend placeholder expression for multiple selections
Close #788
7 years ago
Junegunn Choi 95c77bfb98
Use --bind instead of --toggle-sort
Related #822
7 years ago
Junegunn Choi da2c28d5c2
Add --read0 and --print0 to --help output
Close #822
7 years ago
Junegunn Choi 6a75e30941
Allow invisible preview window (--preview-window 0)
Close #820
7 years ago
Junegunn Choi c4baa6a10c
Update man page: 24-bit color 7 years ago
Junegunn Choi ff248d566d
Drop ncurses dependency
Close #818
7 years ago
Junegunn Choi 131aa5dd15
Composable actions in --bind
Close #816
7 years ago
Junegunn Choi 62ab8ece5e
0.16.1 7 years ago
Amos Bird 11015df52f Add half-page-{up,down} actions (#784) 7 years ago
Junegunn Choi 4bece04207
0.16.0 7 years ago
Junegunn Choi e0036b5ad2
Add --filepath-word option
Close #802
7 years ago
Junegunn Choi 4ecb7f3a16
Replace --normalize with --literal and enable normalization by default
Ref #790
7 years ago
Junegunn Choi ae274158de
Add experimental support for 24-bit colors 7 years ago
Junegunn Choi 340af463cd
Add --min-height option for percent --height 7 years ago
Junegunn Choi 45793d75c2
Add --normalize option to normalize latin script characters
Close #790
7 years ago
Junegunn Choi a30999a785
Prepare for 0.16.0 release 7 years ago
Junegunn Choi 1448d631a7
Add --height option 7 years ago
Junegunn Choi a71c471405
0.15.9 8 years ago
Junegunn Choi 6a65006f55
0.15.8 8 years ago
Junegunn Choi a2beb159f1
0.15.7 8 years ago
Junegunn Choi a221c672fb
0.15.6 8 years ago
Junegunn Choi 9f30ca2923
0.15.5 8 years ago
Junegunn Choi 3222d62ddf
0.15.4 8 years ago
Junegunn Choi 8b0d0342d4
0.15.3 8 years ago
Junegunn Choi 1acd2adce2
Update man page: missing actions 8 years ago
Junegunn Choi 1bc223d4b3
0.15.2 8 years ago
Junegunn Choi 7fa5e6c861
0.15.1 8 years ago
Junegunn Choi 37f43fbb35
Add --print0 option
Related: #660
8 years ago
Junegunn Choi 2fc7c18747
Revise ranking algorithm 8 years ago
Junegunn Choi b86838c2b0
0.13.5 8 years ago
Junegunn Choi c4c92142a6
0.13.4 8 years ago
Junegunn Choi fccc93176b
0.13.3 8 years ago
Junegunn Choi 049bc9ec68
[fzf-tmux] Add man page 8 years ago
Junegunn Choi 5759d50d4a
0.13.2 8 years ago
Junegunn Choi 8a90f26c8a
0.13.1 8 years ago
Junegunn Choi 3e1d6a7bcf
0.13.0 8 years ago
Junegunn Choi 2f364c62f4
0.12.2 8 years ago
Junegunn Choi 35a9aff8e1 0.12.1 8 years ago
Junegunn Choi 879ead210f 0.11.2 8 years ago
Junegunn Choi 2ccdf21a1f Add --hscroll-off=COL option
Close #513
8 years ago
Junegunn Choi 1d6f05f974 [man] Fix invalid exit status in man page
Close #511
8 years ago
Anmol Sethi 6354dbbbdf Removed the useless `.R` macros
If you do `man fzf > /dev/null`, you'll get the following output

`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.

Removing these `.R` macros with a newline seems to have no effect on the
page but gets rid of the error.
8 years ago
Junegunn Choi 40d934e378 0.11.3 8 years ago
Junegunn Choi f6c6e59a50 Add toggle-in and toggle-out for --bind
Related: #452

When `--multi` is set, tab key will bring your cursor down, and
shift-tab up. But since fzf by default draws the screen in bottom-up
fashion, one may feel that the opposite of the behavior is more
desirable and choose to customize the key bindings as follows.

    export FZF_DEFAULT_OPTS="--bind tab:toggle-up,shift-tab:toggle-down"

This configuration, however, becomes no longer straightforward when
`--reverse` is set and fzf switches to top-down layout. To address the
requirement, this commit adds `toggle-in` and `toggle-out` option which
switch direction depending on `--reverse`-ness.

    export FZF_DEFAULT_OPTS="--bind tab:toggle-out,shift-tab:toggle-in"
8 years ago
Junegunn Choi 1d2d32c847 Accept comma-separated list of sort criteria 8 years ago
Junegunn Choi d635b3fd3c Update license: 2016 8 years ago
Junegunn Choi 248320fa55 0.11.1 9 years ago
Junegunn Choi df468fc482 0.11.0 9 years ago
Junegunn Choi e7e86b68f4 Add OR operator
Close #412
9 years ago
Junegunn Choi a89d8995c3 Add execute-multi action
Close #413
9 years ago
Junegunn Choi 81a88693c1 Make --extended default
Close #400
9 years ago
Junegunn Choi 68541e66b7 [man] double-click for --bind (#374) 9 years ago
Junegunn Choi b3010a4624 0.10.8 9 years ago
Junegunn Choi 1da065e50e 0.10.7 9 years ago
Junegunn Choi d980e00961 Revert "Revert "0.10.6""
This reverts commit 987799f8fb.
9 years ago
Junegunn Choi 987799f8fb Revert "0.10.6"
This reverts commit d2f3604c1d.
9 years ago
Junegunn Choi d2f3604c1d 0.10.6 9 years ago
Junegunn Choi 2022a3ad96 Replace --header-file with --header (#346)
and allow using --header and --header-lines at the same time.

Close #346.
9 years ago
Junegunn Choi c656cfbdce Update doc 9 years ago
Junegunn Choi de829c0938 0.10.5 9 years ago
Junegunn Choi 9a2d9ad947 0.10.4 9 years ago
Junegunn Choi 8156e9894e 0.10.3 9 years ago
Junegunn Choi c4cf90a3d2 0.10.2 9 years ago
Junegunn Choi 909ea1a698 0.10.1 9 years ago
Junegunn Choi 7814371a9a Revert "0.10.1"
This reverts commit 6166e2dd80.
9 years ago
Junegunn Choi 6166e2dd80 0.10.1 9 years ago
Junegunn Choi ee0c8a2635 Add --margin option
Close #299
9 years ago
Junegunn Choi fdbf3d3fec Replace eof action with cancel (#289) 9 years ago
Junegunn Choi f9136cffe6 Update man page 9 years ago
Junegunn Choi 13e040baee Bind CTRL-D to the new delete-char/eof action
- CTRL-D - delete-char/eof
- DEL - delete-char
9 years ago
Junegunn Choi cc0d5539ba Add "eof" action which closes the finder only when input is empty
Close #289
9 years ago
Junegunn Choi 4e0e03403e Fix --header-lines unaffected by --with-nth 9 years ago
Junegunn Choi f469c25730 Add --header-lines option 9 years ago
Junegunn Choi d01db4862b Update documentation 9 years ago
Junegunn Choi d459e9abce Add --header-file option 9 years ago
Junegunn Choi 5254ee2e2a Update documentation (#277) 9 years ago
Junegunn Choi a336494f5d 0.10.0 9 years ago
Junegunn Choi 52771a6226 0.9.13 9 years ago
Junegunn Choi fdbfe36c0b Color customization (#245) 9 years ago
Junegunn Choi 3cdf71801e Update --help 9 years ago
Junegunn Choi 801cf9ac62 Add unbound "toggle" action for customization 9 years ago
Junegunn Choi 34946b72a5 0.9.12 9 years ago
Junegunn Choi 1592bedbe8 Custom key binding support (#238) 9 years ago
Junegunn Choi 5e120e7ab5 Update man page 9 years ago
Junegunn Choi 651a8f8cc2 Add --inline-info option
Close #202
9 years ago
Junegunn Choi 1169cc8653 0.9.10 9 years ago
Junegunn Choi f66d94c6b0 Add `--color=[dark|light|16|bw]` option
- dark:  the current default for 256-color terminal
- light: color scheme for 256-color terminal with light background
- 16:    the default color scheme for 16-color terminal (`+2`)
- bw:    no colors (`+c`)
9 years ago
Junegunn Choi 288131ac5a Update man page to be consistent with --help 9 years ago
Junegunn Choi 3610acec5a 0.9.9 9 years ago
Junegunn Choi f77ed0fb07 Fix typo in man page 9 years ago
Junegunn Choi b8904a8c3e Add --tiebreak option for customizing sort criteria
Close #191
9 years ago
Junegunn Choi 48ab87294b Add --no-hscroll option to disable horizontal scroll
Close #193
9 years ago
Junegunn Choi 50292adacb Implement --toggle-sort option (#173) 9 years ago
Junegunn Choi cef93f700b 0.9.6 9 years ago
Junegunn Choi 0a3d3460b1 Update man page 9 years ago
Junegunn Choi 2a167aa030 Implement --expect option to support simple key bindings (#163) 9 years ago
Junegunn Choi c4bf820dc3 Update man page 9 years ago
Junegunn Choi 39f43587d0 Fix typo in man page 9 years ago
Junegunn Choi 87447ddd6d Add man page (#157) 9 years ago