Junegunn Choi
68683c444f
Fix argument parser for -m
...
/cc @tessus
5 years ago
Junegunn Choi
072066c49c
--multi to take optional argument to limit the number of selection
...
Close #1718
Related #688
5 years ago
Simon Fraser
391669a451
Add 'f' flag for placeholder expression ( #1733 )
...
If present the contents of the selection will be placed in a temporary file,
and the filename will be placed into the string instead.
5 years ago
Junegunn Choi
ef492f6178
Output --help message to standard output
...
Close #1554
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
Akinori MUSHA
daa1958f86
Provide an option to reverse items only ( #1267 )
6 years ago
Junegunn Choi
7dbbbef51a
Add support for alt-{up,down,left,right} keys
...
Close #1234
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
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
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
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
64a6ced62e
Do not immediately check --height option on Windows ( #1082 )
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
b13fcfd831
Add missing --no-expect flag
7 years ago
Edgar Lee
7d3575b362
Use glide to handle go dependencies
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
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
53348feb89
Add --no-clear option
7 years ago
Junegunn Choi
c82fb3c9b9
Add toggle-preview-wrap action
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
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
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
131aa5dd15
Composable actions in --bind
...
Close #816
7 years ago
Amos Bird
11015df52f
Add half-page-{up,down} actions ( #784 )
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
8 years ago
Junegunn Choi
340af463cd
Add --min-height option for percent --height
8 years ago
Junegunn Choi
45793d75c2
Add --normalize option to normalize latin script characters
...
Close #790
8 years ago
Junegunn Choi
1448d631a7
Add --height option
8 years ago
Junegunn Choi
a442fe0fd0
Truncate long lines in preview window
...
Add `:wrap` to --preview-window to wrap lines instead
Close #756
8 years ago
Junegunn Choi
8c661d4e8c
Revamp escape sequence processing for WSL
...
Also add support for alt-[0-9] and f1[12]
8 years ago
Junegunn Choi
4b332d831e
Add --no-bold option
8 years ago
Junegunn Choi
0c573b3dff
Prepare for termbox/windows build
...
`TAGS=termbox make` (or `go build -tags termbox`)
8 years ago
Junegunn Choi
0a8d2996dc
Set foreground color without affecting background
...
Close #712
8 years ago
Junegunn Choi
cfdb00b971
Allow other options to follow --color without spec
8 years ago
Junegunn Choi
8c8b5b313e
Add preview-page-up and preview-page-down actions
8 years ago
Junegunn Choi
66d55fd893
Make preview windows scrollable
...
Close #669
You can use your mouse or binadble preview-up and preview-down actions
to scroll the content of the preview window.
fzf --preview 'highlight -O ansi {}' --bind alt-j:preview-down,alt-k:preview-up
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
37dc273148
Micro-optimizations
...
- Make structs smaller
- Introduce Result struct and use it to represent matched items instead of
reusing Item struct for that purpose
- Avoid unnecessary memory allocation
- Avoid growing slice from the initial capacity
- Code cleanup
8 years ago
Junegunn Choi
1e74dbb937
:hidden property of previous --preview-window should be cleared
...
Fix #636 . Patch suggested by @edi9999.
8 years ago
Junegunn Choi
2bbc12063c
Add --preview and --preview-window
...
Close #587
8 years ago
Junegunn Choi
7ed9f83662
Validate jump label characters
...
Also extend default jump labels
8 years ago
Junegunn Choi
c62fc5e75c
More named keys: F5 ~ F10, ALT-/
8 years ago
Junegunn Choi
6d235bceee
Add jump and jump-accept actions for --bind
...
jump and jump-accept implement EasyMotion-like movement in fzf.
Suggested by @mhrebenyuk. Close #569 .
8 years ago
Junegunn Choi
9078688baf
Add print-query action for --bind
...
Close #571
8 years ago
Junegunn Choi
dd4be1da38
Allow alt-enter and alt-space for --bind ( #571 )
8 years ago
Junegunn Choi
88a80e3c2c
Determine 256-color capability using tigetnum("colors")
...
Close #570
8 years ago
Junegunn Choi
2ccdf21a1f
Add --hscroll-off=COL option
...
Close #513
8 years ago
Junegunn Choi
e72a360337
Minor refactoring
...
- Slightly more efficient processing of Options
- Do not return reference type arguments that are mutated inside the
function
- Use util.Constrain function when appropriate
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"
9 years ago
Junegunn Choi
8d3a302a17
Simplify Item structure
...
This commit compensates for the performance overhead from the
extended tiebreak option.
9 years ago
Junegunn Choi
1d2d32c847
Accept comma-separated list of sort criteria
9 years ago
Junegunn Choi
99ea1056ac
Add --tabstop option
...
Related: https://github.com/junegunn/fzf.vim/issues/49
9 years ago
Junegunn Choi
1c20255504
Fix typos in help message
...
Close #425 . Thanks to @blueyed.
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
f80ff8c917
Add bindable double-click event ( #374 )
9 years ago
Junegunn Choi
a4eb3323da
Fix #370 - Panic when trying to set colors when colors are disabled
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
65d9d416b4
Change exit status (0: OK, 1: No match, 2: Error/Interrupted)
...
A la grep. Close #345
9 years ago
Junegunn Choi
d0f2c00f9f
Fix --with-nth performance; use simpler regular expression
...
Related #317
9 years ago
Junegunn Choi
766427de0c
Fix --with-nth performance; avoid regex if possible
...
Close #317
9 years ago
Junegunn Choi
634670e3ea
Lint
9 years ago
Junegunn Choi
ee0c8a2635
Add --margin option
...
Close #299
9 years ago
Junegunn Choi
2bebddefc0
Do not print the entire --help on invalid option
9 years ago
Junegunn Choi
fdbf3d3fec
Replace eof action with cancel ( #289 )
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
f71ea5f3ea
Add test cases for header and fix corner cases
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
c9abe1b1ff
Show more specific error message on invalid binding
9 years ago
Junegunn Choi
a0e6147bb5
Fix #292 - Allow binding of colon and comma
9 years ago
Junegunn Choi
a336494f5d
0.10.0
9 years ago
Junegunn Choi
8270f7f0ca
Rename --null to --read0 and undocument the option
...
`--null` is ambiguous. For completeness' sake, we need both `--read0`
and `--print0`.
`--read0` only makes sense when the input contains multiline entries.
However, fzf currently cannot correctly display multiline entries,
I'm going to make `--read0` an undocumented feature.
9 years ago
Junegunn Choi
c0d3faa84f
Hide --toggle-sort from --help output
...
Since the same can be now achieved with --bind KEY:toggle-sort
9 years ago
Junegunn Choi
3492c8b780
Rename --history-max to --history-size
...
Considering HISTSIZE and HISTFILESIZE of bash
9 years ago
Junegunn Choi
a8b2c257cd
Improve handling of key names
...
Remember the exact string given as the key name so that it's possible to
correctly handle synonyms and print the original string.
9 years ago
Junegunn Choi
5e8d8dab82
More key names for --bind
9 years ago
Junegunn Choi
fe4e452d68
Add --cycle option for cyclic scrolling
...
Close #266
9 years ago
Junegunn Choi
d54a4fa223
Add key name "bspace" for --bind (bspace != ctrl-h)
9 years ago
Junegunn Choi
8677dbded1
Change alternative notation for execute action ( #265 )
...
e.g. fzf --bind "ctrl-m:execute:COMMAND..." --bind ctrl-j:accept
9 years ago
Junegunn Choi
794ad5785d
Fix `.` to match newlines as well ( #265 )
9 years ago
Junegunn Choi
fa5b58968e
Add alternative execute notation that does not require closing char
...
This can be used to avoid parse errors that can happen when the command
contains the closing character. Since the command does not finish at
a certain character, the key binding should be the last one in the
group. Suggested by @tiziano88. (#265 )
e.g. fzf --bind "ctrl-m:execute=COMMAND..." --bind ctrl-j:accept
9 years ago
Junegunn Choi
7db53e6459
Add synonyms for some keys to be used with --bind and --toggle-sort
...
enter (return), space, tab, btab, esc, up, down, left, right
9 years ago
Junegunn Choi
022435a90a
More alternative notations for execute action
...
execute(...)
execute[...]
execute~...~
execute!...!
execute@...@
execute#...#
execute$...$
execute%...%
execute^...^
execute&...&
execute*...*
execute:...:
execute;...;
execute/.../
execute|...|
9 years ago
Junegunn Choi
6c99cc1700
Add bind action for executing arbitrary command ( #265 )
...
e.g. fzf --bind "ctrl-m:execute(less {})"
fzf --bind "ctrl-t:execute[tmux new-window -d 'vim {}']"
9 years ago
Junegunn Choi
fe5b190a7d
Remove unnecessary regexp matches
...
This change does have positive effect on startup time of fzf when many
number of options are provided.
time fzf --query=____ --filter=____ --delimiter=q --prompt=________ \
--nth=1,2,3,4 --with-nth=1,2,3,4 --toggle-sort=ctrl-r \
--expect=ctrl-x --tiebreak=index --color=light --bind=ctrl-t:accept \
--history=/tmp/xxx --history-max=1000 --help
0m0.013s -> 0m0.008s
9 years ago
Junegunn Choi
9fca611c4a
Add `ignore` action for --bind
9 years ago
Junegunn Choi
3b52811796
Add support for search history
...
- Add `--history` option (e.g. fzf --history ~/.fzf.history)
- Add `--history-max` option for limiting the size of the file (default 1000)
- Add `previous-history` and `next-history` actions for `--bind`
- CTRL-P and CTRL-N are automatically remapped to these actions when
`--history` is used
Closes #249 , #251
9 years ago
Junegunn Choi
eaa3c67a5e
Add actions for --bind: select-all / deselect-all / toggle-all
...
Close #257
9 years ago
Junegunn Choi
1b9b1d15bc
Adjust --help output
9 years ago
Giulio Iotti
f6dd32046e
add support to nil-byte separated input strings, closes #121
9 years ago
Junegunn Choi
fdbfe36c0b
Color customization ( #245 )
9 years ago
Junegunn Choi
4e0e492427
Minor refactoring
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
1592bedbe8
Custom key binding support ( #238 )
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
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
2a167aa030
Implement --expect option to support simple key bindings ( #163 )
9 years ago
Junegunn Choi
eae53576bd
Update --help message
9 years ago
Junegunn Choi
e70a2a5817
Add support for ANSI color codes
9 years ago
Junegunn Choi
c1aa5c5f33
Add --tac option and reverse display order of --no-sort
...
DISCLAIMER: This is a backward incompatible change
9 years ago
Junegunn Choi
6c2ce28d0d
Add `--sync` option
9 years ago
Junegunn Choi
c35d98dc42
Nullify --nth option when it's irrelevant
9 years ago
Junegunn Choi
cd847affb7
Reorganize source code
10 years ago
Junegunn Choi
7a2bc2cada
Lint
10 years ago
Junegunn Choi
f3177305d5
Rewrite fzf in Go
10 years ago