Debian Codegraph @

CHANGELOG.md

raw
1 CHANGELOG
2 =========
3
4 0.74.4
5 ------
6 - Fixed an escape sequence split across reads being parsed as a fragment, which leaked the rest into the query (#4899)
7 - e.g. A terminal answering the startup `DECRQM` query late left `?2004;2$y`, CTRL-UP left `5A`, and SGR mouse input left `0;1;1M`
8 - Fixed `--tiebreak=pathname` not detecting the last path separator when the line contains a non-ASCII character before it (#4902)
9 - Fixed `progress` in the `--listen` status payload staying at 100 while a new search was running, which made a snapshot with a new query and the previous result set look complete (#4903)
10 - It is now reset when a search starts and reaches 100 on the final result, so `progress` of 100 means the matches belong to the query reported next to them
11 - Fixed adaptive height not reserving a line for the divider of an inline header or footer border, so the list came up one line short for each of them (#4904)
12 - e.g. `seq 10 | fzf --height=~100% --list-border --header-lines=1 --header-lines-border=inline`
13 - Fixed fzf erasing the line the prompt was on when it exits, which made the last line of the prompt flicker in fish, bash, and nushell (#4913)
14 - Fixed fzf exiting with status 2 while waiting for a key, when `--listen` is used and 100+ signals interrupt the wait (#4917)
15 - Vim plugin
16 - fzf no longer blocks the editor, so live previews keep working while fzf is open
17 - `fzf#run` returns an empty list when it runs fzf asynchronously. Use `sink`, `sinklist`, or `exit` to get the result
18 - The popup layout now works under Zellij
19 - Added `popup` as a synonym of the `tmux` layout key
20 ```vim
21 let g:fzf_layout = { 'popup': '90%,70%' }
22 ```
23 - fzf now opens in a tmux or Zellij floating pane by default, so the window it was started from stays visible and can be used while fzf is running
24 - Requires tmux 3.7+ or Zellij 0.44+
25 - Set `g:fzf_layout` to pick a different layout
26 - fish
27 - Fixed custom CTRL-T command not using the prefixed target directory in some cases (#4498) (@bitraid)
28 - Optimized description alignment of completion items (#4910) (@bitraid)
29 - nushell
30 - Added key bindings for Helix editing modes, on nushell 0.115.0 or above (#4914) (@sim590)
31 - Fixed CTRL-T inserting the selected paths unquoted
32 - p4p3r (@P4P3R-HAK) reported the security vulnerability and suggested the fix
33
34 0.74.3
35 ------
36 - Performance optimizations for non-ASCII input
37 - ASCII queries are up to 16x faster
38 - Non-ASCII queries are up to 12x faster
39 - Reading accented Latin input is up to 37% faster
40 - Reading CJK input reduces memory use by up to 29%
41 - ASCII input is unaffected
42 - Fixed an image from a preview command being torn apart when its rows are separated by IND instead of newlines, as `chafa` does under tmux (#4885)
43 - Fixed `replace-query` corrupting the item text when the query is edited afterwards
44 - fzf no longer turns bracketed paste mode off on exit when the terminal already had it on, which broke pasting in shells that run fzf from a line editor widget (#4887)
45 - Fixed startup blocking on terminals that never answer escape sequences, such as FreeBSD virtual terminals. fzf waited for a reply until a key was pressed, then dropped that keystroke (#2860, #976)
46
47 0.74.2
48 ------
49 - Performance optimizations for short queries
50 - Short queries scan the largest candidate sets, and the first keystroke scans the whole input
51 - Single-character queries are up to 2.4x faster
52 - Two-character queries are up to 1.4x faster
53 - Faster sorting of search results, skipping redundant radix passes
54 - `change-border-label` and `transform-border-label` now work on the native border of a tmux or Zellij floating pane
55 - Fixed Kitty graphics sequences from a preview command being taken by tmux as pane title requests
56 - Fixed an image at the top of the preview being torn by `--preview-window ~N`
57 - Fixed nondeterministic match highlight positions
58 - Fixed signal and resize handlers persisting after `Run()` returns when fzf is used as a library
59 - fzf now detects terminal resize on Windows in `--height` mode (#4790) (@Cyrus580529)
60 - fish: fixed history command being affected by user initialization scripts, and improved timestamp colors in CTRL-R (#4862) (@bitraid)
61 - zsh: fixed CTRL-R not propagating the exit status of fzf when perl is available (#4871) (@LangLangBart, @Toliak)
62 - zsh: fixed `chpwd` hook functions being called twice by ALT-C (#4879) (@LangLangBart, @lucc)
63
64 0.74.1
65 ------
66 - The default separator on the info line is no longer shown when the input section is already visually separated from the list section by a border line
67 ```sh
68 # No separator shown below the header border
69 fzf --style full --input-border none --header foo
70
71 # Separator shown; no border separates the input section from the list section
72 fzf --style full --input-border none --header foo --no-header-border
73
74 # No separator below the border of the preview window at 'next' position
75 fzf --preview : --preview-window next
76
77 # Conversely, separator is now shown when the input border does not draw
78 # a line facing the list section
79 fzf --input-border bottom
80 ```
81 - Rendering improvements
82 - Each frame is now wrapped in synchronized update mode (mode 2026) to reduce flickering on supported terminals
83 - Reduced rendering output by 10-23% by skipping redundant SGR sequences
84 - Fixed ghost characters and misplaced colors inside Zellij by using CHA instead of CR + CUF for horizontal cursor movement (#4858, zellij-org/zellij#5370)
85 - Fixed cursor restoration on exit with `--height --no-clear` inside Neovim terminal by using DECSC/DECRC instead of `CSI s`/`CSI u`
86 - nushell: fixed deprecation error of `str downcase` on nushell 0.114.0 or above (#4857) (@sim590)
87 - Each release now includes `.deb` packages for easy installation on Debian-based distros (#4859)
88
89 0.74.0
90 ------
91 _Release highlights: https://junegunn.github.io/fzf/releases/0.74.0/_
92
93 - On tmux 3.7 or above, `--popup` starts fzf in a floating pane instead of a popup (#4850)
94 - Unlike a popup, a floating pane is not modal; you can switch to other panes and windows while fzf is running, move and resize the pane with the mouse, zoom it to fullscreen, and use copy-mode in it
95 - A floating pane always has a native border, which is what makes the pane movable and resizable, so `border-native` is implied
96 - A popup is used instead when a border style is explicitly specified with `--border`, so that the fzf-drawn border is the only border shown (`none` and `line` are treated as no border)
97 ```sh
98 fzf --popup --border
99 ```
100 - `--border-label` is set as the title of the floating pane, and is displayed on the border if `pane-border-status` is enabled in tmux
101 ```sh
102 fzf --popup --border-label ' fzf '
103 ```
104 - On Zellij, `--popup` uses the native border by default, consistent with tmux, so that the pane can be moved and resized with the mouse; fzf draws its own border when a border style is explicitly specified with `--border`
105 - `--border-label` is set as the name of the pane, displayed on the native border
106 - Added `result-final` event, a variant of `result` that is not triggered while the input stream is still open (#4835)
107 - Use it for one-shot, per-query actions that would otherwise re-fire on every intermediate snapshot during loading
108 ```sh
109 # 'result' fires per intermediate snapshot (header keeps updating during load);
110 # 'result-final' fires once after the stream closes (footer shows the final count)
111 (seq 100; sleep 1; seq 100) | fzf --query 1 \
112 --bind 'result:transform-header(echo result: $FZF_MATCH_COUNT),result-final:transform-footer(echo final: $FZF_MATCH_COUNT)'
113 ```
114 - Added `wait` action to block subsequent actions until search completes (#4825)
115 - Useful for chaining query-changing actions with motion actions to ensure operations on complete results
116 ```sh
117 # Wait for search to complete before moving to the best match
118 fzf --bind 'start:change-query(foo)+wait+best'
119 ```
120 - The initial loading of the input is also considered a search in progress, so `start:wait` can be used to wait until the input is fully loaded
121 ```sh
122 # Move to the last item after the input is fully loaded
123 (seq 1000; sleep 1; seq 1001 2000) | fzf --bind 'start:wait+last'
124 ```
125 - Bound `alt-left` to `backward-word` and `alt-right` to `forward-word` by default (#4833)
126 - Bug fixes and improvements
127 - Skip `$FZF_CURRENT_ITEM` export when the item is larger than 64 KB; a huge item can overflow `ARG_MAX` and break preview and other child commands with `E2BIG` (#4806)
128 - `transform` and `bg-transform` now allow a bare `put` action in the output to insert the key that triggered the action
129 ```sh
130 # Insert the typed key ('a') into the query
131 fzf --bind 'a:transform:echo put'
132 ```
133 - `ALT-C` in zsh no longer resolves symbolic links when changing the directory, consistent with the `cd` builtin (#4816) (@silverneko)
134 - Fixed horizontal mouse wheel events being treated as vertical scrolling (#4848) (@jason5122)
135 - Fixed `bw` theme not inheriting overridden colors
136 - fish: `CTRL-R` now works when `$fish_color_normal` or `$fish_color_comment` is empty or invalid (#4831) (@bitraid)
137 - Fixed empty-shell detection in the install script (#4813)
138 - Fixed the install script writing nushell source lines into the config files of other shells (#4812)
139
140 0.73.1
141 ------
142 - Bug fixes
143 - Skip `$FZF_CURRENT_ITEM` export when the item contains a NUL byte; `exec(2)` rejects the env, breaking preview and other child commands (#4806)
144 - Fixed O(n^2) HTTP body accumulation in `--listen`; a single ~390 KB request could block the single-threaded server for ~8 s (Michal Majchrowicz, Marcin Wyczechowski, AFINE Team)
145
146 0.73.0
147 ------
148 _Release highlights: https://junegunn.github.io/fzf/releases/0.73.0/_
149
150 - Nushell integration via `fzf --nushell` and the installer (#4630) (@sim590)
151 - New `--preview-window=next` position that places the preview adjacent to the input section, on the list side: above the input in the default layout, below it in `--layout=reverse` (#4798)
152 - Timer-driven `every(N)` event for `--bind`, where `N` is seconds
153 - Added `$FZF_IDLE_TIME` (whole seconds) and `$FZF_IDLE_TIME_MS` (milliseconds), holding the elapsed time since the last user activity
154 - Pair with `every(N)` to build idle-based behavior such as auto-accept or auto-quit (#1211)
155 ```sh
156 # Live process list; --track --id-nth 2 keeps the cursor on the same PID across reloads
157 fzf --header-lines 1 --track --id-nth 2 --bind 'start,every(2):reload-sync:ps -ef'
158
159 # Auto-accept after 10 seconds of inactivity, with a countdown in the footer after 5s
160 fzf --bind 'every(1):bg-transform:
161 if [[ $FZF_IDLE_TIME -lt 5 ]]; then echo change-footer:
162 elif [[ $FZF_IDLE_TIME -lt 10 ]]; then echo "change-footer:auto-accept in $((10 - FZF_IDLE_TIME))s"
163 else echo accept
164 fi'
165 ```
166 - Added `$FZF_CURRENT_ITEM` for shells where quoting `{}` is awkward (#4802)
167 - Bug fixes
168 - Scoring: non-word characters at the start of input or after a delimiter now receive the same boundary bonus as word characters (#4795)
169 - `change-preview-window` no longer resets `wrap` / `wrap-word` state set via `toggle-preview-wrap` / `toggle-preview-wrap-word` (#4791)
170 - Stripped UTF-8-encoded C1 control characters from rendered items to prevent terminal control-sequence injection
171 - Fixed integer-overflow panic in `FuzzyMatchV2` on 32-bit builds (Michal Majchrowicz, Marcin Wyczechowski, AFINE Team)
172 - Fixed `bg-transform` `reload` / `exclude` payloads being dropped
173 - Fixed rendering glitch with preview window on the left combined with footer
174
175 0.72.0
176 ------
177 _Release highlights: https://junegunn.github.io/fzf/releases/0.72.0/_
178
179 - `--header-border`, `--header-lines-border`, and `--footer-border` now accept a new `inline` style that embeds the section inside the list frame, separated from the list content by a horizontal line. When the list border has side segments, the separator joins them as T-junctions.
180 - Requires a `--list-border` shape that has both top and bottom segments (`rounded`, `sharp`, `bold`, `double`, `block`, `thinblock`, or `horizontal`); falls back to `line` otherwise. `horizontal` has no side borders, so the separator is drawn without T-junction endpoints.
181 - Sections stack. Example combining all three:
182 ```sh
183 ps -ef | fzf --reverse --style full \
184 --header 'Select a process' --header-lines 1 \
185 --bind 'load:transform-footer:echo $FZF_TOTAL_COUNT processes' \
186 --header-border dashed --header-first \
187 --header-lines-border inline --footer-border inline
188 ```
189 - `--header-label` and `--footer-label` render on their respective separator row.
190 - The separator inherits `--color list-border` when the section's own border color is not explicitly set.
191 - `inline` takes precedence over `--header-first`: the inline section stays inside the list frame. `--header-border=inline` requires `--header-lines-border` to be `inline` or unset.
192 - New `dashed` border style with dashed edges (`╶` / `┆`) and rounded corners.
193 - `--border=dashed`, `--list-border=dashed`, etc.
194 - Works with inline sections (T-junctions render correctly).
195 - [vim] Move and resize popup window when detecting `VimResized` event (#4778) (@Vulcalien)
196 - Bug fixes
197 - Fixed gutter display in `--style=minimal`
198 - Fixed arrow keys / Home / End without modifiers being ignored under the kitty keyboard protocol (#4776) (@TymekDev)
199 - bash: Persist history deletion when `histappend` is on (#4764)
200
201 0.71.0
202 ------
203 _Release highlights: https://junegunn.github.io/fzf/releases/0.71.0/_
204
205 - Added `--popup` as a new name for `--tmux` with Zellij support
206 - `--popup` starts fzf in a tmux popup or a Zellij floating pane
207 - `--tmux` is now an alias for `--popup`
208 - Requires tmux 3.3+ or Zellij 0.44+
209 - Cross-reload item identity with `--id-nth`
210 - Added `--id-nth=NTH` to define item identity fields for cross-reload operations
211 - When a `reload` is triggered with tracking enabled, fzf searches for the tracked item by its identity fields in the new list.
212 - `--track --id-nth ..` tracks by the entire line
213 - `--track --id-nth 1` tracks by the first field
214 - `--track` without `--id-nth` retains the existing index-based tracking behavior
215 - The UI is temporarily blocked (prompt dimmed, input disabled) until the item is found or loading completes.
216 - Press `Escape` or `Ctrl-C` to cancel the blocked state without quitting
217 - Info line shows `+T*` / `+t*` while searching
218 - With `--multi`, selected items are preserved across `reload-sync` by matching their identity fields
219 - Performance improvements
220 - The search performance now scales linearly with the number of CPU cores, as we dropped static partitioning to allow better load balancing across threads.
221 ```
222 === query: 'linux' ===
223 [all] baseline: 21.95ms current: 17.47ms (1.26x) matches: 179966 (12.79%)
224 [1T] baseline: 179.63ms current: 180.53ms (1.00x) matches: 179966 (12.79%)
225 [2T] baseline: 97.38ms current: 90.05ms (1.08x) matches: 179966 (12.79%)
226 [4T] baseline: 53.83ms current: 44.77ms (1.20x) matches: 179966 (12.79%)
227 [8T] baseline: 41.66ms current: 22.58ms (1.84x) matches: 179966 (12.79%)
228 ```
229 - Improved the cache structure, reducing memory footprint per entry by 86x.
230 - With the reduced per-entry cost, the cache now has broader coverage.
231 - Shell integration improvements
232 - bash: CTRL-R now supports multi-select and `shift-delete` to delete history entries (#4715)
233 - fish:
234 - Improved command history (CTRL-R) (#4703) (@bitraid)
235 - Rewrite completion script (SHIFT-TAB) (#4731) (@bitraid)
236 - Increase minimum fish version requirement to 3.4.0 (#4731) (@bitraid)
237 - `GET /` HTTP endpoint now includes `positions` field in each match entry, providing the indices of matched characters for external highlighting (#4726)
238 - Allow adaptive height with negative value (`--height=~-HEIGHT`) (#4682)
239 - Bug fixes
240 - `--walker=follow` no longer follows symlinks whose target is an ancestor of the walker root, avoiding severe resource exhaustion when a symlink points outside the tree (e.g. Wine's `z:` → `/`) (#4710)
241 - Fixed AWK tokenizer not treating a new line character as whitespace
242 - Fixed `--{accept,with}-nth` removing trailing whitespaces with a non-default `--delimiter`
243 - Fixed OSC8 hyperlinks being mangled when the URL contains unicode characters (#4707)
244 - Fixed `--with-shell` not handling quoted arguments correctly (#4709)
245 - Fixed child processes not being terminated on Windows (#4723) (@pjeby)
246 - Fixed preview scrollbar not rendered after `toggle-preview`
247 - Fixed preview follow/scroll with long wrapped lines
248 - Fixed tab width when `--frozen-left` is used
249 - Fixed preview mouse events being processed when no preview window exists
250 - zsh: Fixed history widget when `sh_glob` option is on (#4714) (@EvanHahn)
251
252 0.70.0
253 ------
254 - Added `change-with-nth` action for dynamically changing the `--with-nth` option.
255 - Requires `--with-nth` to be set initially.
256 - Multiple options separated by `|` can be given to cycle through.
257 ```sh
258 echo -e "a b c\nd e f\ng h i" | fzf --with-nth .. \
259 --bind 'space:change-with-nth(1|2|3|1,3|2,3|)'
260 ```
261 - Added `change-header-lines` action for dynamically changing the `--header-lines` option
262 - Performance improvements (1.3x to 1.9x faster filtering depending on query)
263 ```
264 === query: 'l' ===
265 [all] baseline: 168.87ms current: 95.21ms (1.77x) matches: 5069891 (94.78%)
266 [1T] baseline: 1652.22ms current: 841.40ms (1.96x) matches: 5069891 (94.78%)
267
268 === query: 'lin' ===
269 [all] baseline: 343.27ms current: 252.59ms (1.36x) matches: 3516507 (65.74%)
270 [1T] baseline: 3199.89ms current: 2230.64ms (1.43x) matches: 3516507 (65.74%)
271
272 === query: 'linux' ===
273 [all] baseline: 85.47ms current: 63.72ms (1.34x) matches: 307229 (5.74%)
274 [1T] baseline: 774.64ms current: 589.32ms (1.31x) matches: 307229 (5.74%)
275
276 === query: 'linuxlinux' ===
277 [all] baseline: 55.13ms current: 35.67ms (1.55x) matches: 12230 (0.23%)
278 [1T] baseline: 461.99ms current: 332.38ms (1.39x) matches: 12230 (0.23%)
279
280 === query: 'linuxlinuxlinux' ===
281 [all] baseline: 51.77ms current: 32.53ms (1.59x) matches: 865 (0.02%)
282 [1T] baseline: 409.99ms current: 296.33ms (1.38x) matches: 865 (0.02%)
283 ```
284 - Fixed `nth` attribute merge order to respect precedence hierarchy (#4697)
285 - bash: Replaced `printf` with builtin `printf` to bypass local indirections (#4684) (@DarrenBishop)
286
287 0.68.0
288 ------
289 - Implemented word wrapping in the list section
290 - Added `--wrap=word` (or `--wrap-word`) option and `toggle-wrap-word` action for word-level line wrapping in the list section
291 - Changed default binding of `ctrl-/` and `alt-/` from `toggle-wrap` to `toggle-wrap-word`
292 ```sh
293 fzf --wrap=word
294 ```
295 - Implemented word wrapping in the preview window
296 - Added `wrap-word` flag for `--preview-window` to enable word-level wrapping
297 - Added `toggle-preview-wrap-word` action
298 ```sh
299 fzf --preview 'bat --style=plain --color=always {}' \
300 --preview-window wrap-word \
301 --bind space:toggle-preview-wrap-word
302 ```
303 - Added support for underline style variants in `--color`: `underline-double`, `underline-curly`, `underline-dotted`, `underline-dashed`
304 ```sh
305 fzf --color 'fg:underline-curly,current-fg:underline-dashed'
306 ```
307 - Added support for underline styles (`4:N`) and underline colors (SGR 58/59)
308 ```sh
309 # In the list section
310 printf '\e[4:3;58;2;255;0;0mRed curly underline\e[0m\n' | fzf --ansi
311
312 # In the preview window
313 fzf --preview "printf '\e[4:3;58;2;255;0;0mRed curly underline\e[0m\n'"
314 ```
315 - Added `--preview-wrap-sign` to set a different wrap indicator for the preview window
316 - Added `alt-gutter` color option (#4602) (@hedgieinsocks)
317 - Added `$FZF_WRAP` environment variable to child processes (`char` or `word` when wrapping is enabled) (#4672) (@bitraid)
318 - fish: Improved command history (CTRL-R) (#4672) (@bitraid)
319 - Enabled syntax highlighting in the list on fish 4.3.3+
320 - Added syntax-highlighted preview window that auto-shows for long or multi-line commands
321 - Added `ALT-ENTER` to reformat and insert selected commands
322 - Improved handling of bulk deletion of selected history entries (`SHIFT-DELETE`)
323 - Added fish completion support (#4605) (@lalvarezt)
324 - zsh: Handle multi-line history selection (#4595) (@LangLangBart)
325 - Bug fixes
326 - Fixed `_fzf_compgen_{path,dir}` to respect `FZF_COMPLETION_{PATH,DIR}_OPTS` (#4592) (@shtse8, @LangLangBart)
327 - Fixed `--preview-window follow` not working correctly with wrapping (#3243, #4258)
328 - Fixed symlinks to directories being returned as files (#4676) (@skk64)
329 - Fixed SIGHUP signal handling (#4668) (@LangLangBart)
330 - Fixed preview process not killed on exit (#4667)
331 - Fixed coloring of items with zero-width characters (#4620)
332 - Fixed `track-current` unset after a combined movement action (#4649)
333 - Fixed `--accept-nth` being ignored in filter mode (#4636) (@charemma)
334 - Fixed display width calculation with `maxWidth` (#4596) (@LangLangBart)
335 - Fixed clearing of the rest of the current line on start (#4652)
336 - Fixed `x-api-key` header not required for GET requests (#4627)
337 - Fixed key reading not cancelled when `execute` triggered via a server request (#4653)
338 - Fixed rebind of readline command `redraw-current-line` (#4635) (@jameslazo)
339 - Fixed `fzf-tmux` `TERM` quoting and added `mktemp` usage (#4664) (@Goofygiraffe06)
340 - Do not allow very long queries in `FuzzyMatchV2` (#4608)
341
342 0.67.0
343 ------
344 - Added `--freeze-left=N` option to keep the leftmost N columns always visible.
345 ```sh
346 # Keep the file name column fixed and always visible
347 git grep --line-number --color=always -- '' |
348 fzf --ansi --delimiter : --freeze-left 1
349
350 # Can be used with --keep-right
351 git grep --line-number --color=always -- '' |
352 fzf --ansi --delimiter : --freeze-left 1 --keep-right
353 ```
354 - Also added `--freeze-right=N` option to keep the rightmost N columns always visible.
355 ```sh
356 # Stronger version of --keep-right that always keeps the right-end visible
357 fd | fzf --freeze-right 1
358
359 # Keep the base name always visible
360 fd | fzf --freeze-right 1 --delimiter /
361
362 # Keep both leftmost and rightmost components visible
363 fd | fzf --freeze-left 1 --freeze-right 1 --delimiter /
364 ```
365 - Updated `--info=inline` to print the spinner (load indicator).
366 - Bug fixes
367
368 0.66.1
369 ------
370 - Bug fixes
371 - Fixed a bug preventing 'ctrl-h' from being bound to an action (#4556)
372 - Fixed `--no-color` / `NO_COLOR` theme (#4561)
373
374 0.66.0
375 ------
376
377 ### Quick summary
378
379 This version introduces many new features centered around the new "raw" mode.
380
381 | Type | Class | Name | Description |
382 | :-- | :-- | :-- | :-- |
383 | New | Option | `--raw` | Enable raw mode by default |
384 | New | Option | `--gutter CHAR` | Set the gutter column character |
385 | New | Option | `--gutter-raw CHAR` | Set the gutter column character in raw mode |
386 | Enhancement | Option | `--listen SOCKET` | Added support for Unix domain sockets |
387 | New | Action | `toggle-raw` | Toggle raw mode |
388 | New | Action | `enable-raw` | Enable raw mode |
389 | New | Action | `disable-raw` | Disable raw mode |
390 | New | Action | `up-match` | Move up to the matching item |
391 | New | Action | `down-match` | Move down to the matching item |
392 | New | Action | `best` | Move to the matching item with the best score |
393 | New | Color | `nomatch` | Color for non-matching items in raw mode |
394 | New | Env Var | `FZF_RAW` | Matching status in raw mode (0, 1, or undefined) |
395 | New | Env Var | `FZF_DIRECTION` | `up` or `down` depending on the layout |
396 | New | Env Var | `FZF_SOCK` | Path to the Unix domain socket fzf is listening on |
397 | Enhancement | Key | `CTRL-N` | `down` -> `down-match` |
398 | Enhancement | Key | `CTRL-P` | `up` -> `up-match` |
399 | Enhancement | Shell | `CTRL-R` binding | Toggle raw mode with `ALT-R` |
400 | Enhancement | Shell | `CTRL-R` binding | Opt-out with an empty `FZF_CTRL_R_COMMAND` |
401
402 ### 1. Introducing "raw" mode
403
404 ![](https://github.com/user-attachments/assets/9640ae11-b5f7-43fb-95f1-c29307fc17c2)
405
406 This version introduces a new "raw" mode (named so because it shows the list
407 "unfiltered"). In raw mode, non-matching items stay in their original positions,
408 but appear dimmed. This allows you to see the surrounding items of a match and
409 better understand the context of it. You can enable raw mode by default with
410 `--raw`, but it's often more useful when toggled dynamically with the
411 `toggle-raw` action.
412
413 ```sh
414 tree | fzf --reverse --bind alt-r:toggle-raw
415 ```
416
417 While non-matching items are displayed in a dimmed color, they are treated just
418 like matching items, so you place the cursor on them and perform any action. If
419 you prefer to navigate only through matching items, use the `down-match` and
420 `up-match` actions, which are from now on bound to `CTRL-N` and `CTRL-P`
421 respectively, and also to `ALT-DOWN` and `ALT-UP`.
422
423 | Key | Action | With `--history` |
424 | :-- | :-- | :-- |
425 | `down` | `down` | |
426 | `up` | `up` | |
427 | `ctrl-j` | `down` | |
428 | `ctrl-k` | `up` | |
429 | `ctrl-n` | `down-match` | `next-history` |
430 | `ctrl-p` | `up-match` | `prev-history` |
431 | `alt-down` | `down-match` | |
432 | `alt-up` | `up-match` | |
433
434 > [!NOTE]
435 > `CTRL-N` and `CTRL-P` are bound to `next-history` and `prev-history` when
436 > `--history` option is enabled, so in that case, you'll need to manually bind
437 > them, or use `ALT-DOWN` and `ALT-UP` instead.
438
439 > [!TIP]
440 > `up-match` and `down-match` are equivalent to `up` and `down` when not in
441 > raw mode, so you can safely bind them to `up` and `arrow` keys if you prefer.
442 > ```sh
443 > fzf --bind up:up-match,down:down-match
444 > ```
445
446 #### Customizing the behavior
447
448 In raw mode, the input list is presented in its original order, unfiltered, and
449 your cursor will not move to the matching item automatically. Here are ways to
450 customize the behavior.
451
452 ```sh
453 # When the result list is updated, move the cursor to the item with the best score
454 # (assuming sorting is not disabled)
455 fzf --raw --bind result:best
456
457 # Move to the first matching item in the original list
458 # - $FZF_RAW is set to 0 when raw mode is enabled and the current item is a non-match
459 # - $FZF_DIRECTION is set to either 'up' or 'down' depending on the layout direction
460 fzf --raw --bind 'result:first+transform:[[ $FZF_RAW = 0 ]] && echo $FZF_DIRECTION-match'
461 ```
462
463 #### Customizing the look
464
465 ##### Gutter
466
467 To make the mode visually distinct, the gutter column is rendered in a dashed
468 line using `▖` character. But you can customize it with the `--gutter-raw CHAR`
469 option.
470
471 ```sh
472 # Use a thinner gutter instead of the default dashed line
473 fzf --bind alt-r:toggle-raw --gutter-raw ▎
474 ```
475
476 ##### Color and style of non-matching items
477
478 Non-matching items are displayed in a dimmed color by default, but you can
479 change it with the `--color nomatch:...` option.
480
481 ```sh
482 fzf --raw --color nomatch:red
483 fzf --raw --color nomatch:red:dim
484 fzf --raw --color nomatch:red:dim:strikethrough
485 fzf --raw --color nomatch:red:dim:strikethrough:italic
486 ```
487
488 For colored input, dimming alone may not be enough, and you may prefer to remove
489 colors entirely. For that case, a new special style attribute `strip` has been
490 added.
491
492 ```sh
493 fd --color always | fzf --ansi --raw --color nomatch:dim:strip:strikethrough
494 ```
495
496 #### Conditional actions for raw mode
497
498 You may want to perform different actions depending on whether the current item
499 is a match or not. For that, fzf now exports `$FZF_RAW` environment variable.
500
501 It's:
502
503 - Undefined if raw mode is disabled
504 - `1` if the current item is a match
505 - `0` otherwise
506
507 ```sh
508 # Do not allow selecting non-matching items
509 fzf --raw --bind 'enter:transform:[[ ${FZF_RAW-1} = 1 ]] && echo accept || echo bell'
510 ```
511
512 #### Leveraging raw mode in shell integration
513
514 The `CTRL-R` binding (command history) now lets you toggle raw mode with `ALT-R`.
515
516 ### 2. Style changes
517
518 The screenshot on the right shows the updated gutter style:
519
520 ![](https://github.com/user-attachments/assets/8ea7b5ef-c99e-4686-905b-22eb078b700a)
521
522 This version includes a few minor updates to fzf's classic visual style:
523
524 - The gutter column is now narrower, rendered with the left-half block character (`▌`).
525 - Markers no longer use background colors.
526 - The `--color base16` theme (alias: `16`) has been updated for better compatibility with both dark and light themes.
527
528 ### 3. `--listen` now supports Unix domain sockets
529
530 If an argument to `--listen` ends with `.sock`, fzf will listen on a Unix
531 domain socket at the specified path.
532
533 ```sh
534 fzf --listen /tmp/fzf.sock --no-tmux
535
536 # GET
537 curl --unix-socket /tmp/fzf.sock http
538
539 # POST
540 curl --unix-socket /tmp/fzf.sock http -d up
541 ```
542
543 Note that any existing file at the given path will be removed before creating
544 the socket, so avoid using an important file path.
545
546 ### 4. Added options
547
548 #### `--gutter CHAR`
549
550 The gutter column can now be customized using `--gutter CHAR` and styled with
551 `--color gutter:...`. Examples:
552
553 ```sh
554 # Right-aligned gutter
555 fzf --gutter '▐'
556
557 # Even thinner gutter
558 fzf --gutter '▎'
559
560 # Yellow checker pattern
561 fzf --gutter '▚' --color gutter:yellow
562
563 # Classic style
564 fzf --gutter ' ' --color gutter:reverse
565 ```
566
567 #### `--gutter-raw CHAR`
568
569 As noted above, the `--gutter-raw CHAR` option was also added for customizing the gutter column in raw mode.
570
571 ### 5. Added actions
572
573 The following actions were introduced to support working with raw mode:
574
575 | Action | Description |
576 | :-- | :-- |
577 | `toggle-raw` | Toggle raw mode |
578 | `enable-raw` | Enable raw mode |
579 | `disable-raw` | Disable raw mode |
580 | `up-match` | Move up to the matching item; identical to `up` if raw mode is disabled |
581 | `down-match` | Move down to the matching item; identical to `down` if raw mode is disabled |
582 | `best` | Move to the matching item with the best score; identical to `first` if raw mode is disabled |
583
584 ### 6. Added environment variables
585
586 #### `$FZF_DIRECTION`
587
588 `$FZF_DIRECTION` is now exported to child processes, indicating the list direction of the current layout:
589
590 - `up` for the default layout
591 - `down` for `reverse` or `reverse-list`
592
593 This simplifies writing transform actions involving layout-dependent actions
594 like `{up,down}-match`, `{up,down}-selected`, and `toggle+{up,down}`.
595
596 ```sh
597 fzf --raw --bind 'result:first+transform:[[ $FZF_RAW = 0 ]] && echo $FZF_DIRECTION-match'
598 ```
599
600 #### `$FZF_SOCK`
601
602 When fzf is listening on a Unix domain socket using `--listen`, the path to the
603 socket is exported as `$FZF_SOCK`, analogous to `$FZF_PORT` for TCP sockets.
604
605 #### `$FZF_RAW`
606
607 As described above, `$FZF_RAW` is now exported to child processes in raw mode,
608 indicating whether the current item is a match (`1`) or not (`0`). It is not
609 defined when not in raw mode.
610
611 #### `$FZF_CTRL_R_COMMAND`
612
613 You can opt-out `CTRL-R` binding from the shell integration by setting
614 `FZF_CTRL_R_COMMAND` to an empty string. Setting it to any other value is not
615 supported and will result in a warning.
616
617 ```sh
618 # Disable the CTRL-R binding from the shell integration
619 FZF_CTRL_R_COMMAND= eval "$(fzf --bash)"
620 ```
621
622 ### 7. Added key support for `--bind`
623
624 Pull request [#3996](https://github.com/junegunn/fzf/pull/3996) added support
625 for many additional keys for `--bind` option, such as `ctrl-backspace`.
626
627 ### 8. Breaking changes
628
629 #### Hiding the gutter column
630
631 In the previous versions, the recommended way to hide the gutter column was to
632 set `--color gutter:-1`. That's because the gutter column was just a space
633 character, reversed. But now that it's using a visible character (`▌`), applying
634 the default color is no longer enough to hide it. Instead, you can set it to
635 a space character.
636
637 ```sh
638 # Hide the gutter column
639 fzf --gutter ' '
640
641 # Classic style
642 fzf --gutter ' ' --color gutter:reverse
643 ```
644
645 #### `--color` option
646
647 In the previous versions, some elements had default style attributes applied and
648 you would have to explicitly unset them with `regular` attribute if you wanted
649 to reset them. This is no longer needed now, as the default style attributes
650 are applied only when you do not specify any color or style for that element.
651
652 ```sh
653 # No 'dim', just red and italic.
654 fzf --ghost 'Type to search' --color ghost:red:italic
655 ```
656
657 #### Compatibility changes
658
659 Starting with this release, fzf is built with Go 1.23. Support for some old OS versions has been dropped.
660
661 See https://go.dev/wiki/MinimumRequirements.
662
663 0.65.2
664 ------
665 - Bug fixes and improvements
666 - Fix incorrect truncation of `--info-command` with `--info=inline-right` (#4479)
667 - [install] Support old uname in macOS (#4492)
668 - [bash 3] Fix `CTRL-T` and `ALT-C` to preserve the last yank (#4496)
669 - Do not unset `FZF_DEFAULT_*` variables when using winpty (#4497) (#4400)
670 - Fix rendering of items with tabs when using a non-default ellipsis (#4505)
671 - **This is the final release to support Windows 7.**
672 - Future versions will be built with the latest Go toolchain, which has dropped support for Windows 7.
673
674 0.65.1
675 ------
676 - Fixed incorrect `$FZF_CLICK_HEADER_WORD` and `$FZF_CLICK_FOOTER_WORD` when the header or footer contains ANSI escape sequences and tab characters.
677 - Fixed a bug where you cannot unset the default `--nth` using `change-nth` action.
678 - Fixed a highlighting bug when using `--color fg:dim,nth:regular` pattern over ANSI-colored items.
679
680 0.65.0
681 ------
682 - Added `click-footer` event that is triggered when the footer section is clicked. When the event is triggered, the following environment variables are set:
683 - `$FZF_CLICK_FOOTER_COLUMN` - clicked column (1-based)
684 - `$FZF_CLICK_FOOTER_LINE` - clicked line (1-based)
685 - `$FZF_CLICK_FOOTER_WORD` - the word under the cursor
686 ```sh
687 fzf --footer $'[Edit] [View]\n[Copy to clipboard]' \
688 --with-shell 'bash -c' \
689 --bind 'click-footer:transform:
690 [[ $FZF_CLICK_FOOTER_WORD =~ Edit ]] && echo "execute:vim \{}"
691 [[ $FZF_CLICK_FOOTER_WORD =~ View ]] && echo "execute:view \{}"
692 (( FZF_CLICK_FOOTER_LINE == 2 )) && (( FZF_CLICK_FOOTER_COLUMN < 20 )) &&
693 echo "execute-silent(echo -n \{} | pbcopy)+bell"
694 '
695 ```
696 - Added `trigger(...)` action that triggers events bound to another key or event.
697 ```sh
698 # You can click on each key name to trigger the actions bound to that key
699 fzf --footer 'Ctrl-E: Edit / Ctrl-V: View / Ctrl-Y: Copy to clipboard' \
700 --with-shell 'bash -c' \
701 --bind 'ctrl-e:execute:vim {}' \
702 --bind 'ctrl-v:execute:view {}' \
703 --bind 'ctrl-y:execute-silent(echo -n {} | pbcopy)+bell' \
704 --bind 'click-footer:transform:
705 [[ $FZF_CLICK_FOOTER_WORD =~ Ctrl ]] && echo "trigger(${FZF_CLICK_FOOTER_WORD%:})"
706 '
707 ```
708 - You can specify a series of keys and events
709 ```sh
710 fzf --bind 'a:up,b:trigger(a,a,a)'
711 ```
712 - Added support for `{*n}` and `{*nf}` placeholder.
713 - `{*n}` evaluates to the zero-based ordinal index of all matched items.
714 - `{*nf}` evaluates to the temporary file containing that.
715 - Bug fixes and improvements
716 - [neovim] Fixed margin background color when `&winborder` is used (#4453)
717 - Fixed rendering error when hiding a preview window without border (#4465)
718 - fix(shell): check for mawk existence before version check (#4468)
719 - Thanks to @LangLangBart and @akinomyoga
720 - Fixed `--no-header-lines-border` behavior (08027e7a)
721
722 0.64.0
723 ------
724 - Added `multi` event that is triggered when the multi-selection has changed.
725 ```sh
726 fzf --multi \
727 --bind 'ctrl-a:select-all,ctrl-d:deselect-all' \
728 --bind 'multi:transform-footer:(( FZF_SELECT_COUNT )) && echo "Selected $FZF_SELECT_COUNT item(s)"'
729 ```
730 - [Halfwidth and fullwidth alphanumeric and punctuation characters](https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block)) are now internally normalized to their ASCII equivalents to allow matching with ASCII queries.
731 ```sh
732 echo ABC| fzf -q abc
733 ```
734 - Renamed `clear-selection` action to `clear-multi` for consistency.
735 - `clear-selection` remains supported as an alias for backward compatibility.
736 - Bug fixes
737 - Fixed a bug that could cause fzf to abort due to incorrect update ordering.
738 - Fixed a bug where some multi-selections were lost when using `exclude` or `change-nth`.
739
740 0.63.0
741 ------
742 _Release highlights: https://junegunn.github.io/fzf/releases/0.63.0/_
743
744 - Added footer. The default border style for footer is `line`, which draws a single separator line.
745 ```sh
746 fzf --reverse --footer "fzf: friend zone forever"
747 ```
748 - Options
749 - `--footer[=STRING]`
750 - `--footer-border[=STYLE]`
751 - `--footer-label=LABEL`
752 - `--footer-label-pos=COL[:bottom]`
753 - Colors
754 - `footer`
755 - `footer-bg`
756 - `footer-border`
757 - `footer-label`
758 - Actions
759 - `change-footer`
760 - `transform-footer`
761 - `bg-transform-footer`
762 - `change-footer-label`
763 - `transform-footer-label`
764 - `bg-transform-footer-label`
765 - `line` border style is now allowed for all types of border except for `--list-border`.
766 ```sh
767 fzf --height 50% --style full:line --preview 'cat {}' \
768 --bind 'focus:bg-transform-header(file {})+bg-transform-footer(wc {})'
769 ```
770 - Added `{*}` placeholder flag that evaluates to all matched items.
771 ```bash
772 seq 10000 | fzf --preview "awk '{sum += \$1} END {print sum}' {*f}"
773 ```
774 - Use this with caution, as it can make fzf sluggish for large lists.
775 - Added asynchronous transform actions with `bg-` prefix that run asynchronously in the background, along with `bg-cancel` action to cancel currently running `bg-transform` actions.
776 ```sh
777 # Implement popup that disappears after 1 second
778 # * Use footer as the popup
779 # * Use `bell` to ring the terminal bell
780 # * Use `bg-transform-footer` to clear the footer after 1 second
781 # * Use `bg-cancel` to cancel currently running background transform actions
782 fzf --multi --list-border \
783 --bind 'enter:execute-silent(echo -n {+} | pbcopy)+bell' \
784 --bind 'enter:+transform-footer(echo Copied {} to clipboard)' \
785 --bind 'enter:+bg-cancel+bg-transform-footer(sleep 1)'
786
787 # It's okay for the commands to take a little while because they run in the background
788 GETTER='curl -s http://metaphorpsum.com/sentences/1'
789 fzf --style full --border --preview : \
790 --bind "focus:bg-transform-header:$GETTER" \
791 --bind "focus:+bg-transform-footer:$GETTER" \
792 --bind "focus:+bg-transform-border-label:$GETTER" \
793 --bind "focus:+bg-transform-preview-label:$GETTER" \
794 --bind "focus:+bg-transform-input-label:$GETTER" \
795 --bind "focus:+bg-transform-list-label:$GETTER" \
796 --bind "focus:+bg-transform-header-label:$GETTER" \
797 --bind "focus:+bg-transform-footer-label:$GETTER" \
798 --bind "focus:+bg-transform-ghost:$GETTER" \
799 --bind "focus:+bg-transform-prompt:$GETTER"
800 ```
801 - Added support for full-line background color in the list section
802 ```sh
803 for i in $(seq 16 255); do
804 echo -e "\x1b[48;5;${i}m\x1b[0Khello"
805 done | fzf --ansi
806 ```
807 - SSH completion enhancements by @akinomyoga
808 - Bug fixes and improvements
809
810 0.62.0
811 ------
812 - Relaxed the `--color` option syntax to allow whitespace-separated entries (in addition to commas), making multi-line definitions easier to write and read
813 ```sh
814 # seoul256-light
815 fzf --style full --color='
816 fg:#616161 fg+:#616161
817 bg:#ffffff bg+:#e9e9e9 alt-bg:#f1f1f1
818 hl:#719872 hl+:#719899
819 pointer:#e12672 marker:#e17899
820 header:#719872
821 spinner:#719899 info:#727100
822 prompt:#0099bd query:#616161
823 border:#e1e1e1
824 '
825 ```
826 - Added `alt-bg` color to create striped lines to visually separate rows
827 ```sh
828 fzf --color bg:237,alt-bg:238,current-bg:236 --highlight-line
829
830 declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
831 bat --plain --language bash --color always |
832 fzf --read0 --ansi --reverse --multi \
833 --color bg:237,alt-bg:238,current-bg:236 --highlight-line
834 ```
835 - [fish] Improvements in CTRL-R binding (@bitraid)
836 - You can trigger CTRL-R in the middle of a command to insert the selected item
837 - You can delete history items with SHIFT-DEL
838 - Bug fixes and improvements
839 - Fixed unnecessary 100ms delay after `reload` (#4364)
840 - Fixed `selected-bg` not applied to colored items (#4372)
841
842 0.61.3
843 ------
844 - Reverted #4351 as it caused `tmux run-shell 'fzf --tmux'` to fail (#4559 #4560)
845 - More environment variables for child processes (#4356)
846
847 0.61.2
848 ------
849 - Fixed panic when using header border without pointer/marker (@phanen)
850 - Fixed `--tmux` option when already inside a tmux popup (@peikk0)
851 - Bug fixes and improvements in CTRL-T binding of fish (#4334) (@bitraid)
852 - Added `--no-tty-default` option to make fzf search for the current TTY device instead of defaulting to `/dev/tty` (#4242)
853
854 0.61.1
855 ------
856 - Disable bracketed-paste mode on exit. This fixes issue where pasting breaks after running fzf on old bash versions that don't support the mode.
857
858 0.61.0
859 ------
860 - Added `--ghost=TEXT` to display a ghost text when the input is empty
861 ```sh
862 # Display "Type to search" when the input is empty
863 fzf --ghost "Type to search"
864 ```
865 - Added `change-ghost` and `transform-ghost` actions for dynamically changing the ghost text
866 - Added `change-pointer` and `transform-pointer` actions for dynamically changing the pointer sign
867 - Added `r` flag for placeholder expression (raw mode) for unquoted output
868 - Bug fixes and improvements
869
870 0.60.3
871 ------
872 - Bug fixes and improvements
873 - [fish] Enable multiple history commands insertion (#4280) (@bitraid)
874 - [walker] Append '/' to directory entries on MSYS2 (#4281)
875 - Trim trailing whitespaces after processing ANSI sequences (#4282)
876 - Remove temp files before `become` when using `--tmux` option (#4283)
877 - Fix condition for using item numlines cache (#4285) (@alex-huff)
878 - Make `--accept-nth` compatible with `--select-1` (#4287)
879 - Increase the query length limit from 300 to 1000 (#4292)
880 - [windows] Prevent fzf from consuming user input while paused (#4260)
881
882 0.60.2
883 ------
884 - Template for `--with-nth` and `--accept-nth` now supports `{n}` which evaluates to the zero-based ordinal index of the item
885 - Fixed a regression that caused the last field in the "nth" expression to be trimmed when a regular expression delimiter is used
886 - Thanks to @phanen for the fix
887 - Fixed 'jump' action when the pointer is an empty string
888
889 0.60.1
890 ------
891 - Bug fixes and minor improvements
892 - Built-in walker now prints directory entries with a trailing slash
893 - Fixed a bug causing unexpected behavior with [fzf-tab](https://github.com/Aloxaf/fzf-tab). Please upgrade if you use it.
894 - Thanks to @alexeisersun, @bitraid, @Lompik, and @fsc0 for the contributions
895
896 0.60.0
897 ------
898 _Release highlights: https://junegunn.github.io/fzf/releases/0.60.0/_
899
900 - Added `--accept-nth` for choosing output fields
901 ```sh
902 ps -ef | fzf --multi --header-lines 1 | awk '{print $2}'
903 # Becomes
904 ps -ef | fzf --multi --header-lines 1 --accept-nth 2
905
906 git branch | fzf | cut -c3-
907 # Can be rewritten as
908 git branch | fzf --accept-nth -1
909 ```
910 - `--accept-nth` and `--with-nth` now support a template that includes multiple field index expressions in curly braces
911 ```sh
912 echo foo,bar,baz | fzf --delimiter , --accept-nth '{1}, {3}, {2}'
913 # foo, baz, bar
914
915 echo foo,bar,baz | fzf --delimiter , --with-nth '{1},{3},{2},{1..2}'
916 # foo,baz,bar,foo,bar
917 ```
918 - Added `exclude` and `exclude-multi` actions for dynamically excluding items
919 ```sh
920 seq 100 | fzf --bind 'ctrl-x:exclude'
921
922 # 'exclude-multi' will exclude the selected items or the current item
923 seq 100 | fzf --multi --bind 'ctrl-x:exclude-multi'
924 ```
925 - Preview window now prints wrap indicator when wrapping is enabled
926 ```sh
927 seq 100 | xargs | fzf --wrap --preview 'echo {}' --preview-window wrap
928 ```
929 - Bug fixes and improvements
930
931 0.59.0
932 ------
933 _Release highlights: https://junegunn.github.io/fzf/releases/0.59.0/_
934
935 - Prioritizing file name matches (#4192)
936 - Added a new tiebreak option `pathname` for prioritizing file name matches
937 - `--scheme=path` now sets `--tiebreak=pathname,length`
938 - fzf will automatically choose `path` scheme
939 * when the input is a TTY device, where fzf would start its built-in walker or run `$FZF_DEFAULT_COMMAND` which is usually a command for listing files,
940 * but not when `reload` or `transform` action is bound to `start` event, because in that case, fzf can't be sure of the input type.
941 - Added `--header-lines-border` to display header from `--header-lines` with a separate border
942 ```sh
943 # Use --header-lines-border to separate two headers
944 ps -ef | fzf --style full --layout reverse --header-lines 1 \
945 --bind 'ctrl-r:reload(ps -ef)' --header 'Press CTRL-R to reload' \
946 --header-lines-border bottom --no-list-border
947 ```
948 - `click-header` event now sets `$FZF_CLICK_HEADER_WORD` and `$FZF_CLICK_HEADER_NTH`. You can use them to implement a clickable header for changing the search scope using the new `transform-nth` action.
949 ```sh
950 # Click on the header line to limit search scope
951 ps -ef | fzf --style full --layout reverse --header-lines 1 \
952 --header-lines-border bottom --no-list-border \
953 --color fg:dim,nth:regular \
954 --bind 'click-header:transform-nth(
955 echo $FZF_CLICK_HEADER_NTH
956 )+transform-prompt(
957 echo "$FZF_CLICK_HEADER_WORD> "
958 )'
959 ```
960 - `$FZF_KEY` was updated to expose the type of the click. e.g. `click`, `ctrl-click`, etc. You can use it to implement a more sophisticated behavior.
961 - `kill` completion for bash and zsh were updated to use this feature
962 - Added `--no-input` option to completely disable and hide the input section
963 ```sh
964 # Click header to trigger search
965 fzf --header '[src] [test]' --no-input --layout reverse \
966 --header-border bottom --input-border \
967 --bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'
968
969 # Vim-like mode switch
970 fzf --layout reverse-list --no-input \
971 --bind 'j:down,k:up,/:show-input+unbind(j,k,/)' \
972 --bind 'enter,esc,ctrl-c:transform:
973 if [[ $FZF_INPUT_STATE = enabled ]]; then
974 echo "rebind(j,k,/)+hide-input"
975 elif [[ $FZF_KEY = enter ]]; then
976 echo accept
977 else
978 echo abort
979 fi
980 '
981 ```
982 - You can later show the input section using `show-input` or `toggle-input` action, and hide it again using `hide-input`, or `toggle-input`.
983 - Extended `{q}` placeholder to support ranges. e.g. `{q:1}`, `{q:2..}`, etc.
984 - Added `search(...)` and `transform-search(...)` action to trigger an fzf search with an arbitrary query string. This can be used to extend the search syntax of fzf. In the following example, fzf will use the first word of the query to trigger ripgrep search, and use the rest of the query to perform fzf search within the result.
985 ```sh
986 export TEMP=$(mktemp -u)
987 trap 'rm -f "$TEMP"' EXIT
988
989 TRANSFORMER='
990 rg_pat={q:1} # The first word is passed to ripgrep
991 fzf_pat={q:2..} # The rest are passed to fzf
992
993 if ! [[ -r "$TEMP" ]] || [[ $rg_pat != $(cat "$TEMP") ]]; then
994 echo "$rg_pat" > "$TEMP"
995 printf "reload:sleep 0.1; rg --column --line-number --no-heading --color=always --smart-case %q || true" "$rg_pat"
996 fi
997 echo "+search:$fzf_pat"
998 '
999 fzf --ansi --disabled \
1000 --with-shell 'bash -c' \
1001 --bind "start,change:transform:$TRANSFORMER"
1002 ```
1003 - You can now bind actions to multiple keys and events at once by writing a comma-separated list of keys and events before the colon
1004 ```sh
1005 # Load 'ps -ef' output on start and reload it on CTRL-R
1006 fzf --bind 'start,ctrl-r:reload:ps -ef'
1007 ```
1008 - `--min-height` option now takes a number followed by `+`, which tells fzf to show at least that many items in the list section. The default value is now changed to `10+`.
1009 ```sh
1010 # You will only see the input section which takes 3 lines
1011 fzf --style=full --height 1% --min-height 3
1012
1013 # You will see 3 items in the list section
1014 fzf --style full --height 1% --min-height 3+
1015 ```
1016 - Shell integration scripts were updated to use `--min-height 20+` by default
1017 - `--header-lines` will be displayed at the top in `reverse-list` layout
1018 - Added `bell` action to ring the terminal bell
1019 ```sh
1020 # Press CTRL-Y to copy the current line to the clipboard and ring the bell
1021 fzf --bind 'ctrl-y:execute-silent(echo -n {} | pbcopy)+bell'
1022 ```
1023 - Added `toggle-bind` action
1024 - Bug fixes and improvements
1025 - Fixed fish script to support fish 3.1.2 or later (@bitraid)
1026
1027 0.58.0
1028 ------
1029 _Release highlights: https://junegunn.github.io/fzf/releases/0.58.0/_
1030
1031 This version introduces three new border types, `--list-border`, `--input-border`, and `--header-border`, offering much greater flexibility for customizing the user interface.
1032
1033 <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-4-borders.png" />
1034
1035 Also, fzf now offers "style presets" for quick customization, which can be activated using the `--style` option.
1036
1037 | Preset | Screenshot |
1038 | :--- | :--- |
1039 | `default` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-default.png"/> |
1040 | `full` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-full.png"/> |
1041 | `minimal` | <img src="https://raw.githubusercontent.com/junegunn/i/master/fzf-style-minimal.png"/> |
1042
1043 - Style presets (#4160)
1044 - `--style=full[:BORDER_STYLE]`
1045 - `--style=default`
1046 - `--style=minimal`
1047 - Border and label for the list section (#4148)
1048 - Options
1049 - `--list-border[=STYLE]`
1050 - `--list-label=LABEL`
1051 - `--list-label-pos=COL[:bottom]`
1052 - Colors
1053 - `list-fg`
1054 - `list-bg`
1055 - `list-border`
1056 - `list-label`
1057 - Actions
1058 - `change-list-label`
1059 - `transform-list-label`
1060 - Border and label for the input section (prompt line and info line) (#4154)
1061 - Options
1062 - `--input-border[=STYLE]`
1063 - `--input-label=LABEL`
1064 - `--input-label-pos=COL[:bottom]`
1065 - Colors
1066 - `input-fg` (`query`)
1067 - `input-bg`
1068 - `input-border`
1069 - `input-label`
1070 - Actions
1071 - `change-input-label`
1072 - `transform-input-label`
1073 - Border and label for the header section (#4159)
1074 - Options
1075 - `--header-border[=STYLE]`
1076 - `--header-label=LABEL`
1077 - `--header-label-pos=COL[:bottom]`
1078 - Colors
1079 - `header-fg` (`header`)
1080 - `header-bg`
1081 - `header-border`
1082 - `header-label`
1083 - Actions
1084 - `change-header-label`
1085 - `transform-header-label`
1086 - Added `--preview-border[=STYLE]` as short for `--preview-window=border[-STYLE]`
1087 - Added new preview border style `line` which draws a single separator line between the preview window and the rest of the interface
1088 - fzf will now render a dashed line (`┈┈`) in each `--gap` for better visual separation.
1089 ```sh
1090 # All bash/zsh functions, highlighted
1091 declare -f |
1092 perl -0 -pe 's/^}\n/}\0/gm' |
1093 bat --plain --language bash --color always |
1094 fzf --read0 --ansi --layout reverse --multi --highlight-line --gap
1095 ```
1096 * You can customize the line using `--gap-line[=STR]`.
1097 - You can specify `border-native` to `--tmux` so that native tmux border is used instead of `--border`. This can be useful if you start a different program from inside the popup.
1098 ```sh
1099 fzf --tmux border-native --bind 'enter:execute:less {}'
1100 ```
1101 - Added `toggle-multi-line` action
1102 - Added `toggle-hscroll` action
1103 - Added `change-nth` action for dynamically changing the value of the `--nth` option
1104 ```sh
1105 # Start with --nth 1, then 2, then 3, then back to the default, 1
1106 echo 'foo foobar foobarbaz' | fzf --bind 'space:change-nth(2|3|)' --nth 1 -q foo
1107 ```
1108 - `--nth` parts of each line can now be rendered in a different text style
1109 ```sh
1110 # nth in a different style
1111 ls -al | fzf --nth -1 --color nth:italic
1112 ls -al | fzf --nth -1 --color nth:reverse
1113 ls -al | fzf --nth -1 --color nth:reverse:bold
1114
1115 # Dim the other parts
1116 ls -al | fzf --nth -1 --color nth:regular,fg:dim
1117
1118 # With 'change-nth'. The current nth option is exported as $FZF_NTH.
1119 ps -ef | fzf --reverse --header-lines 1 --header-border bottom --input-border \
1120 --color nth:regular,fg:dim \
1121 --bind 'ctrl-n:change-nth(8..|1|2|3|4|5|6|7|)' \
1122 --bind 'result:transform-prompt:echo "${FZF_NTH}> "'
1123 ```
1124 - A single-character delimiter is now treated as a plain string delimiter rather than a regular expression delimiter, even if it's a regular expression meta-character.
1125 - This means you can just write `--delimiter '|'` instead of escaping it as `--delimiter '\|'`
1126 - Bug fixes
1127 - Bug fixes and improvements in fish scripts (thanks to @bitraid)
1128
1129 0.57.0
1130 ------
1131 - You can now resize the preview window by dragging the border
1132 - Built-in walker improvements
1133 - `--walker-root` can take multiple directory arguments. e.g. `--walker-root include src lib`
1134 - `--walker-skip` can handle multi-component patterns. e.g. `--walker-skip target/build`
1135 - Removed long processing delay when displaying images in the preview window
1136 - `FZF_PREVIEW_*` environment variables are exported to all child processes (#4098)
1137 - Bug fixes in fish scripts
1138
1139 0.56.3
1140 ------
1141 - Bug fixes in zsh scripts
1142 - fix(zsh): handle backtick trigger edge case (#4090)
1143 - revert(zsh): remove 'fc -RI' call in the history widget (#4093)
1144 - Thanks to @LangLangBart for the contributions
1145
1146 0.56.2
1147 ------
1148 - Bug fixes
1149 - Fixed abnormal scrolling behavior when `--wrap` is set (#4083)
1150 - [zsh] Fixed warning message when `ksh_arrays` is set (#4084)
1151
1152 0.56.1
1153 ------
1154 - Bug fixes and improvements
1155 - Fixed a race condition which would cause fzf to present stale results after `reload` (#4070)
1156 - `page-up` and `page-down` actions now work correctly with multi-line items (#4069)
1157 - `{n}` is allowed in `SCROLL` expression in `--preview-window` (#4079)
1158 - [zsh] Fixed regression in history loading with shared option (#4071)
1159 - [zsh] Better command extraction in zsh completion (#4082)
1160 - Thanks to @LangLangBart, @jaydee-coder, @alex-huff, and @vejkse for the contributions
1161
1162 0.56.0
1163 ------
1164 - Added `--gap[=N]` option to display empty lines between items.
1165 - This can be useful to visually separate adjacent multi-line items.
1166 ```sh
1167 # All bash functions, highlighted
1168 declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
1169 bat --plain --language bash --color always |
1170 fzf --read0 --ansi --reverse --multi --highlight-line --gap
1171 ```
1172 - Or just to make the list easier to read. For single-line items, you probably want to set `--color gutter:-1` as well to hide the gutter.
1173 ```sh
1174 fzf --info inline-right --gap --color gutter:-1
1175 ```
1176 - Added `noinfo` option to `--preview-window` to hide the scroll indicator in the preview window
1177 - Bug fixes
1178 - Thanks to @LangLangBart, @akinomyoga, and @charlievieth for fixing the bugs
1179
1180 0.55.0
1181 ------
1182 _Release highlights: https://junegunn.github.io/fzf/releases/0.55.0/_
1183
1184 - Added `exact-boundary-match` type to the search syntax. When a search term is single-quoted, fzf will search for the exact occurrences of the string with both ends at word boundaries.
1185 ```sh
1186 fzf --query "'here'" << EOF
1187 come here
1188 not there
1189 EOF
1190 ```
1191 - [bash] Fuzzy path completion is enabled for all commands
1192 - 1. If the default completion is not already set
1193 - 2. And if the current bash supports `complete -D` option
1194 - However, fuzzy completion for some commands can be "dynamically" disabled by the dynamic completion loader
1195 - See the comment in `__fzf_default_completion` function for more information
1196 - Comments are now allowed in `$FZF_DEFAULT_OPTS` and `$FZF_DEFAULT_OPTS_FILE`
1197 ```sh
1198 export FZF_DEFAULT_OPTS='
1199 # Layout options
1200 --layout=reverse
1201 --info=inline-right # Show info on the right side of the prompt line
1202 # ...
1203 '
1204 ```
1205 - Hyperlinks (OSC 8) are now supported in the preview window and in the main window
1206 ```sh
1207 printf '<< \e]8;;http://github.com/junegunn/fzf\e\\Link to \e[32mfz\e[0mf\e]8;;\e\\ >>' | fzf --ansi
1208
1209 fzf --preview "printf '<< \e]8;;http://github.com/junegunn/fzf\e\\Link to \e[32mfz\e[0mf\e]8;;\e\\ >>'"
1210 ```
1211 - The default `--ellipsis` is now `··` instead of `..`.
1212 - [vim] A spec can have `exit` callback that is called with the exit status of fzf
1213 - This can be used to clean up temporary resources or restore the original state when fzf is closed without a selection
1214 - Fixed `--tmux bottom` when the status line is not at the bottom
1215 - Fixed extra scroll offset in multi-line mode (`--read0` or `--wrap`)
1216 - Added fallback `ps` command for `kill` completion on Cygwin
1217
1218 0.54.3
1219 ------
1220 - Fixed incompatibility of adaptive height specification and 'start:reload'
1221 ```sh
1222 # A regression in 0.54.0 would cause this to fail
1223 fzf --height '~100%' --bind 'start:reload:seq 10'
1224 ```
1225 - Environment variables are now available to `$FZF_DEFAULT_COMMAND`
1226 ```sh
1227 FZF_DEFAULT_COMMAND='echo $FZF_QUERY' fzf --query foo
1228 ```
1229
1230 0.54.2
1231 ------
1232 - Fixed incorrect syntax highlighting of truncated multi-line entries
1233 - Updated GoReleaser to 2.1.0 to simplify notarization of macOS binaries
1234 - macOS archives will be in `tar.gz` format instead of `zip` format since we no longer notarize the zip files but binaries
1235 - (Windows) Reverted a mintty fix in 0.54.0
1236 - As a result, mouse may not work on mintty in fullscreen mode. However, fzf will correctly read non-ASCII input in fullscreen mode (`--no-height`).
1237 - fzf unfortunately cannot read non-ASCII input when not in fullscreen mode on Windows. So if you need to input non-ASCII characters, add `--no-height` to your `$FZF_DEFAULT_OPTS`.
1238 - Any help in fixing this issue will be appreciated (#3799, #3847).
1239
1240 0.54.1
1241 ------
1242 - Updated [fastwalk](https://github.com/charlievieth/fastwalk) dependency for built-in directory walker
1243 - [fastwalk: add optional sorting and improve documentation](https://github.com/charlievieth/fastwalk/pull/27)
1244 - [fastwalk: only check if MSYSTEM is set during MSYS/MSYS2](https://github.com/charlievieth/fastwalk/pull/28)
1245 - Thanks to @charlievieth
1246 - Reverted ALT-C binding of fish to use `cd` instead of `builtin cd`
1247 - `builtin cd` was introduced to work around a bug of `cd` coming from `zoxide init --cmd cd fish` where it cannot handle `--` argument.
1248 - However, the default `cd` of fish is actually a wrapper function for supporting `cd -`, so we want to use it instead.
1249 - See [#3928](https://github.com/junegunn/fzf/pull/3928) for more information and consider helping zoxide fix the bug.
1250
1251 0.54.0
1252 ------
1253 _Release highlights: https://junegunn.github.io/fzf/releases/0.54.0/_
1254
1255 - Implemented line wrap of long items
1256 - `--wrap` option enables line wrap
1257 - `--wrap-sign` customizes the sign for wrapped lines (default: `↳ `)
1258 - `toggle-wrap` action toggles line wrap
1259 ```sh
1260 history | fzf --tac --wrap --bind 'ctrl-/:toggle-wrap' --wrap-sign $'\t↳ '
1261 ```
1262 - fzf by default binds `CTRL-/` and `ALT-/` to `toggle-wrap`
1263 - Updated shell integration scripts to leverage line wrap
1264 - CTRL-R binding includes `--wrap-sign $'\t↳ '` to indent wrapped lines
1265 - `kill **` completion uses `--wrap` to show the whole line by default
1266 instead of showing it in the preview window
1267 - Added `--info-command` option for customizing the info line
1268 ```sh
1269 # Prepend the current cursor position in yellow
1270 fzf --info-command='echo -e "\x1b[33;1m$FZF_POS\x1b[m/$FZF_INFO 💛"'
1271 ```
1272 - `$FZF_INFO` is set to the original info text
1273 - ANSI color codes are supported
1274 - Pointer and marker signs can be set to empty strings
1275 ```sh
1276 # Minimal style
1277 fzf --pointer '' --marker '' --prompt '' --info hidden
1278 ```
1279 - Better cache management and improved rendering for `--tail`
1280 - Improved `--sync` behavior
1281 - When `--sync` is provided, fzf will not render the interface until the initial filtering and the associated actions (bound to any of `start`, `load`, `result`, or `focus`) are complete.
1282 ```sh
1283 # fzf will not render intermediate states
1284 (sleep 1; seq 1000000; sleep 1) |
1285 fzf --sync --query 5 --listen --bind start:up,load:up,result:up,focus:change-header:Ready
1286 ```
1287 - GET endpoint is now available from `execute` and `transform` actions (it used to timeout due to lock conflict)
1288 ```sh
1289 fzf --listen --sync --bind 'focus:transform-header:curl -s localhost:$FZF_PORT?limit=0 | jq .'
1290 ```
1291 - Added `offset-middle` action to place the current item is in the middle of the screen
1292 - fzf will not start the initial reader when `reload` or `reload-sync` is bound to `start` event. `fzf < /dev/null` or `: | fzf` are no longer required and extraneous `load` event will not fire due to the empty list.
1293 ```sh
1294 # Now this will work as expected. Previously, this would print an invalid header line.
1295 # `fzf < /dev/null` or `: | fzf` would fix the problem, but then an extraneous
1296 # `load` event would fire and the header would be prematurely updated.
1297 fzf --header 'Loading ...' --header-lines 1 \
1298 --bind 'start:reload:sleep 1; ps -ef' \
1299 --bind 'load:change-header:Loaded!'
1300 ```
1301 - Fixed mouse support on Windows
1302 - Fixed crash when using `--tiebreak=end` with very long items
1303 - zsh 5.0 compatibility (thanks to @LangLangBart)
1304 - Fixed `--walker-skip` to also skip symlinks to directories
1305 - Fixed `result` event not fired when input stream is not complete
1306 - New tags will have `v` prefix so that they are available on https://proxy.golang.org/
1307
1308 0.53.0
1309 ------
1310 _Release highlights: https://junegunn.github.io/fzf/releases/0.53.0/_
1311
1312 - Multi-line display
1313 - See [Processing multi-line items](https://junegunn.github.io/fzf/tips/processing-multi-line-items/)
1314 - fzf can now display multi-line items
1315 ```sh
1316 # All bash functions, highlighted
1317 declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
1318 bat --plain --language bash --color always |
1319 fzf --read0 --ansi --reverse --multi --highlight-line
1320
1321 # Ripgrep multi-line output
1322 rg --pretty bash | perl -0777 -pe 's/\n\n/\n\0/gm' |
1323 fzf --read0 --ansi --multi --highlight-line --reverse --tmux 70%
1324 ```
1325 - To disable multi-line display, use `--no-multi-line`
1326 - CTRL-R bindings of bash, zsh, and fish have been updated to leverage multi-line display
1327 - The default `--pointer` and `--marker` have been changed from `>` to Unicode bar characters as they look better with multi-line items
1328 - Added `--marker-multi-line` to customize the select marker for multi-line entries with the default set to `╻┃╹`
1329 ```
1330 ╻First line
1331 ┃...
1332 ╹Last line
1333 ```
1334 - Native tmux integration
1335 - Added `--tmux` option to replace fzf-tmux script and simplify distribution
1336 ```sh
1337 # --tmux [center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]
1338 # Center, 100% width and 70% height
1339 fzf --tmux 100%,70% --border horizontal --padding 1,2
1340
1341 # Left, 30% width
1342 fzf --tmux left,30%
1343
1344 # Bottom, 50% height
1345 fzf --tmux bottom,50%
1346 ```
1347 - To keep the implementation simple, it only uses popups. You need tmux 3.3 or later.
1348 - To use `--tmux` in Vim plugin:
1349 ```vim
1350 let g:fzf_layout = { 'tmux': '100%,70%' }
1351 ```
1352 - Added support for endless input streams
1353 - See [Browsing log stream with fzf](https://junegunn.github.io/fzf/tips/browsing-log-streams/)
1354 - Added `--tail=NUM` option to limit the number of items to keep in memory. This is useful when you want to browse an endless stream of data (e.g. log stream) with fzf while limiting memory usage.
1355 ```sh
1356 # Interactive filtering of a log stream
1357 tail -f *.log | fzf --tail 100000 --tac --no-sort --exact
1358 ```
1359 - Better Windows Support
1360 - fzf now works on Git bash (mintty) out of the box via winpty integration
1361 - Many fixes and improvements for Windows
1362 - man page is now embedded in the binary; `fzf --man` to see it
1363 - Changed the default `--scroll-off` to 3, as we think it's a better default
1364 - Process started by `execute` action now directly writes to and reads from `/dev/tty`. Manual `/dev/tty` redirection for interactive programs is no longer required.
1365 ```sh
1366 # Vim will work fine without /dev/tty redirection
1367 ls | fzf --bind 'space:execute:vim {}' > selected
1368 ```
1369 - Added `print(...)` action to queue an arbitrary string to be printed on exit. This was mainly added to work around the limitation of `--expect` where it's not compatible with `--bind` on the same key and it would ignore other actions bound to it.
1370 ```sh
1371 # This doesn't work as expected because --expect is not compatible with --bind
1372 fzf --multi --expect ctrl-y --bind 'ctrl-y:select-all'
1373
1374 # This is something you can do instead
1375 fzf --multi --bind 'enter:print()+accept,ctrl-y:select-all+print(ctrl-y)+accept'
1376 ```
1377 - We also considered making them compatible, but realized that some users may have been relying on the current behavior.
1378 - [`NO_COLOR`](https://no-color.org/) environment variable is now respected. If the variable is set, fzf defaults to `--no-color` unless otherwise specified.
1379
1380 0.52.1
1381 ------
1382 - Fixed a critical bug in the Windows version
1383 - Windows users are strongly encouraged to upgrade to this version
1384
1385 0.52.0
1386 ------
1387 - Added `--highlight-line` to highlight the whole current line (à la `set cursorline` of Vim)
1388 - Added color names for selected lines: `selected-fg`, `selected-bg`, and `selected-hl`
1389 ```sh
1390 fzf --border --multi --info inline-right --layout reverse --marker ▏ --pointer ▌ --prompt '▌ ' \
1391 --highlight-line --color gutter:-1,selected-bg:238,selected-fg:146,current-fg:189
1392 ```
1393 - Added `click-header` event that is triggered when the header section is clicked. When the event is triggered, `$FZF_CLICK_HEADER_COLUMN` and `$FZF_CLICK_HEADER_LINE` are set.
1394 ```sh
1395 fd --type f |
1396 fzf --header $'[Files] [Directories]' --header-first \
1397 --bind 'click-header:transform:
1398 (( FZF_CLICK_HEADER_COLUMN <= 7 )) && echo "reload(fd --type f)"
1399 (( FZF_CLICK_HEADER_COLUMN >= 9 )) && echo "reload(fd --type d)"
1400 '
1401 ```
1402 - Add `$FZF_COMPLETION_{DIR,PATH}_OPTS` for separately customizing the behavior of fuzzy completion
1403 ```sh
1404 # Set --walker options without 'follow' not to follow symbolic links
1405 FZF_COMPLETION_PATH_OPTS="--walker=file,dir,hidden"
1406 FZF_COMPLETION_DIR_OPTS="--walker=dir,hidden"
1407 ```
1408 - Fixed Windows argument escaping
1409 - Bug fixes and improvements
1410 - The code was heavily refactored to allow using fzf as a library in Go programs. The API is still experimental and subject to change.
1411 - https://gist.github.com/junegunn/193990b65be48a38aac6ac49d5669170
1412
1413 0.51.0
1414 ------
1415 - Added a new environment variable `$FZF_POS` exported to the child processes. It's the vertical position of the cursor in the list starting from 1.
1416 ```sh
1417 # Toggle selection to the top or to the bottom
1418 seq 30 | fzf --multi --bind 'load:pos(10)' \
1419 --bind 'shift-up:transform:for _ in $(seq $FZF_POS $FZF_MATCH_COUNT); do echo -n +toggle+up; done' \
1420 --bind 'shift-down:transform:for _ in $(seq 1 $FZF_POS); do echo -n +toggle+down; done'
1421 ```
1422 - Added `--with-shell` option to start child processes with a custom shell command and flags
1423 ```sh
1424 gem list | fzf --with-shell 'ruby -e' \
1425 --preview 'pp Gem::Specification.find_by_name({1})' \
1426 --bind 'ctrl-o:execute-silent:
1427 spec = Gem::Specification.find_by_name({1})
1428 [spec.homepage, *spec.metadata.filter { _1.end_with?("uri") }.values].uniq.each do
1429 system "open", _1
1430 end
1431 '
1432 ```
1433 - Added `change-multi` action for dynamically changing `--multi` option
1434 - `change-multi` - enable multi-select mode with no limit
1435 - `change-multi(NUM)` - enable multi-select mode with a limit
1436 - `change-multi(0)` - disable multi-select mode
1437 - Windows improvements
1438 - `become` action is now supported on Windows
1439 - Unlike in *nix, this does not use `execve(2)`. Instead it spawns a new process and waits for it to finish, so the exact behavior may differ.
1440 - Fixed argument escaping for Windows cmd.exe. No redundant escaping of backslashes.
1441 - Bug fixes and improvements
1442
1443 0.50.0
1444 ------
1445 - Search performance optimization. You can observe 50%+ improvement in some scenarios.
1446 ```
1447 $ rg --line-number --no-heading --smart-case . > $DATA
1448
1449 $ wc < $DATA
1450 5520118 26862362 897487793
1451
1452 $ hyperfine -w 1 -L bin fzf-0.49.0,fzf-7ce6452,fzf-a5447b8,fzf '{bin} --filter "///" < $DATA | head -30'
1453 Summary
1454 fzf --filter "///" < $DATA | head -30 ran
1455 1.16 ± 0.03 times faster than fzf-a5447b8 --filter "///" < $DATA | head -30
1456 1.23 ± 0.03 times faster than fzf-7ce6452 --filter "///" < $DATA | head -30
1457 1.52 ± 0.03 times faster than fzf-0.49.0 --filter "///" < $DATA | head -30
1458 ```
1459 - Added `jump` and `jump-cancel` events that are triggered when leaving `jump` mode
1460 ```sh
1461 # Default behavior
1462 fzf --bind space:jump
1463
1464 # Same as jump-accept action
1465 fzf --bind space:jump,jump:accept
1466
1467 # Accept on jump, abort on cancel
1468 fzf --bind space:jump,jump:accept,jump-cancel:abort
1469
1470 # Change header on jump-cancel
1471 fzf --bind 'space:change-header(Type jump label)+jump,jump-cancel:change-header:Jump cancelled'
1472 ```
1473 - Added a new environment variable `$FZF_KEY` exported to the child processes. It's the name of the last key pressed.
1474 ```sh
1475 fzf --bind 'space:jump,jump:accept,jump-cancel:transform:[[ $FZF_KEY =~ ctrl-c ]] && echo abort'
1476 ```
1477 - fzf can be built with profiling options. See [BUILD.md](BUILD.md) for more information.
1478 - Bug fixes
1479
1480 0.49.0
1481 ------
1482 - Ingestion performance improved by around 40% (more or less depending on options)
1483 - `--info=hidden` and `--info=inline-right` will no longer hide the horizontal separator by default. This gives you more flexibility in customizing the layout.
1484 ```sh
1485 fzf --border --info=inline-right
1486 fzf --border --info=inline-right --separator ═
1487 fzf --border --info=inline-right --no-separator
1488 fzf --border --info=hidden
1489 fzf --border --info=hidden --separator ━
1490 fzf --border --info=hidden --no-separator
1491 ```
1492 - Added two environment variables exported to the child processes
1493 - `FZF_PREVIEW_LABEL`
1494 - `FZF_BORDER_LABEL`
1495 ```sh
1496 # Use the current value of $FZF_PREVIEW_LABEL to determine which actions to perform
1497 git ls-files |
1498 fzf --header 'Press CTRL-P to change preview mode' \
1499 --bind='ctrl-p:transform:[[ $FZF_PREVIEW_LABEL =~ cat ]] \
1500 && echo "change-preview(git log --color=always \{})+change-preview-label([[ log ]])" \
1501 || echo "change-preview(bat --color=always \{})+change-preview-label([[ cat ]])"'
1502 ```
1503 - Renamed `track` action to `track-current` to highlight the difference between the global tracking state set by `--track` and a one-off tracking action
1504 - `track` is still available as an alias
1505 - Added `untrack-current` and `toggle-track-current` actions
1506 - `*-current` actions are no-op when the global tracking state is set
1507 - Bug fixes and minor improvements
1508
1509 0.48.1
1510 ------
1511 - CTRL-T and ALT-C bindings can be disabled by setting `FZF_CTRL_T_COMMAND` and `FZF_ALT_C_COMMAND` to empty strings respectively when sourcing the script
1512 ```sh
1513 # bash
1514 FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= eval "$(fzf --bash)"
1515
1516 # zsh
1517 FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= eval "$(fzf --zsh)"
1518
1519 # fish
1520 fzf --fish | FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= source
1521 ```
1522 - Setting the variables after sourcing the script will have no effect
1523 - Bug fixes
1524
1525 0.48.0
1526 ------
1527 - Shell integration scripts are now embedded in the fzf binary. This simplifies the distribution, and the users are less likely to have problems caused by using incompatible scripts and binaries.
1528 - bash
1529 ```sh
1530 # Set up fzf key bindings and fuzzy completion
1531 eval "$(fzf --bash)"
1532 ```
1533 - zsh
1534 ```sh
1535 # Set up fzf key bindings and fuzzy completion
1536 eval "$(fzf --zsh)"
1537 ```
1538 - fish
1539 ```fish
1540 # Set up fzf key bindings
1541 fzf --fish | source
1542 ```
1543 - Added options for customizing the behavior of the built-in walker
1544 | Option | Description | Default |
1545 | --- | --- | --- |
1546 | `--walker=OPTS` | Walker options (`[file][,dir][,follow][,hidden]`) | `file,follow,hidden` |
1547 | `--walker-root=DIR` | Root directory from which to start walker | `.` |
1548 | `--walker-skip=DIRS` | Comma-separated list of directory names to skip | `.git,node_modules` |
1549 - Examples
1550 ```sh
1551 # Built-in walker is only used by standalone fzf when $FZF_DEFAULT_COMMAND is not set
1552 unset FZF_DEFAULT_COMMAND
1553
1554 fzf # default: --walker=file,follow,hidden --walker-root=. --walker-skip=.git,node_modules
1555 fzf --walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target
1556
1557 # Walker options in $FZF_DEFAULT_OPTS
1558 export FZF_DEFAULT_OPTS="--walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target"
1559 fzf
1560
1561 # Reading from STDIN; --walker is ignored
1562 seq 100 | fzf --walker=dir
1563
1564 # Reading from $FZF_DEFAULT_COMMAND; --walker is ignored
1565 export FZF_DEFAULT_COMMAND='seq 100'
1566 fzf --walker=dir
1567 ```
1568 - Shell integration scripts have been updated to use the built-in walker with these new options and they are now much faster out of the box.
1569
1570 0.47.0
1571 ------
1572 - Replaced ["the default find command"][find] with a built-in directory walker to simplify the code and to achieve better performance and consistent behavior across platforms.
1573 This doesn't affect you if you have `$FZF_DEFAULT_COMMAND` set.
1574 - Breaking changes:
1575 - Unlike [the previous "find" command][find], the new traversal code will list hidden files, but hidden directories will still be ignored
1576 - No filtering of `devtmpfs` or `proc` types
1577 - Traversal is parallelized, so the order of the entries will be different each time
1578 - You may wonder why fzf implements directory walker anyway when it's a filter program following the [Unix philosophy][unix].
1579 But fzf has had [the walker code for years][walker] to tackle the performance problem on Windows. And I decided to use the same approach on different platforms as well for the benefits listed above.
1580 - Built-in walker is using the excellent [charlievieth/fastwalk][fastwalk] library, which easily outperforms its competitors and supports safely following symlinks.
1581 - Added `$FZF_DEFAULT_OPTS_FILE` to allow managing default options in a file
1582 - See [#3618](https://github.com/junegunn/fzf/pull/3618)
1583 - Option precedence from lower to higher
1584 1. Options read from `$FZF_DEFAULT_OPTS_FILE`
1585 1. Options from `$FZF_DEFAULT_OPTS`
1586 1. Options from command-line arguments
1587 - Bug fixes and improvements
1588
1589 [find]: https://github.com/junegunn/fzf/blob/0.46.1/src/constants.go#L60-L64
1590 [walker]: https://github.com/junegunn/fzf/pull/1847
1591 [fastwalk]: https://github.com/charlievieth/fastwalk
1592 [unix]: https://en.wikipedia.org/wiki/Unix_philosophy
1593
1594 0.46.1
1595 ------
1596 - Bug fixes and improvements
1597 - Fixed Windows binaries
1598 - Downgraded Go version to 1.20 to support older versions of Windows
1599 - https://tip.golang.org/doc/go1.21#windows
1600 - Updated [rivo/uniseg](https://github.com/rivo/uniseg) dependency to v0.4.6
1601
1602 0.46.0
1603 ------
1604 - Added two new events
1605 - `result` - triggered when the filtering for the current query is complete and the result list is ready
1606 - `resize` - triggered when the terminal size is changed
1607 - fzf now exports the following environment variables to the child processes
1608 | Variable | Description |
1609 | --- | --- |
1610 | `FZF_LINES` | Number of lines fzf takes up excluding padding and margin |
1611 | `FZF_COLUMNS` | Number of columns fzf takes up excluding padding and margin |
1612 | `FZF_TOTAL_COUNT` | Total number of items |
1613 | `FZF_MATCH_COUNT` | Number of matched items |
1614 | `FZF_SELECT_COUNT` | Number of selected items |
1615 | `FZF_QUERY` | Current query string |
1616 | `FZF_PROMPT` | Prompt string |
1617 | `FZF_ACTION` | The name of the last action performed |
1618 - This allows you to write sophisticated transformations like so
1619 ```sh
1620 # Script to dynamically resize the preview window
1621 transformer='
1622 # 1 line for info, another for prompt, and 2 more lines for preview window border
1623 lines=$(( FZF_LINES - FZF_MATCH_COUNT - 4 ))
1624 if [[ $FZF_MATCH_COUNT -eq 0 ]]; then
1625 echo "change-preview-window:hidden"
1626 elif [[ $lines -gt 3 ]]; then
1627 echo "change-preview-window:$lines"
1628 elif [[ $FZF_PREVIEW_LINES -ne 3 ]]; then
1629 echo "change-preview-window:3"
1630 fi
1631 '
1632 seq 10000 | fzf --preview 'seq {} 10000' --preview-window up \
1633 --bind "result:transform:$transformer" \
1634 --bind "resize:transform:$transformer"
1635 ```
1636 - And we're phasing out `{fzf:prompt}` and `{fzf:action}`
1637 - Changed [mattn/go-runewidth](https://github.com/mattn/go-runewidth) dependency to [rivo/uniseg](https://github.com/rivo/uniseg) for accurate results
1638 - Set `--ambidouble` if your terminal displays ambiguous width characters (e.g. box-drawing characters for borders) as 2 columns
1639 - `RUNEWIDTH_EASTASIAN=1` is still respected for backward compatibility, but it's recommended that you use this new option instead
1640 - Bug fixes
1641
1642 0.45.0
1643 ------
1644 - Added `transform` action to conditionally perform a series of actions
1645 ```sh
1646 # Disallow selecting an empty line
1647 echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
1648 fzf --height '~100%' --reverse --header 'Select one' \
1649 --bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"'
1650
1651 # Move cursor past the empty line
1652 echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
1653 fzf --height '~100%' --reverse --header 'Select one' \
1654 --bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"' \
1655 --bind 'focus:transform:[[ -n {} ]] && exit; [[ {fzf:action} =~ up$ ]] && echo up || echo down'
1656
1657 # A single key binding to toggle between modes
1658 fd --type file |
1659 fzf --prompt 'Files> ' \
1660 --header 'CTRL-T: Switch between Files/Directories' \
1661 --bind 'ctrl-t:transform:[[ ! {fzf:prompt} =~ Files ]] &&
1662 echo "change-prompt(Files> )+reload(fd --type file)" ||
1663 echo "change-prompt(Directories> )+reload(fd --type directory)"'
1664 ```
1665 - Added placeholder expressions
1666 - `{fzf:action}` - The name of the last action performed
1667 - `{fzf:prompt}` - Prompt string (including ANSI color codes)
1668 - `{fzf:query}` - Synonym for `{q}`
1669 - Added support for negative height
1670 ```sh
1671 # Terminal height minus 1, so you can still see the command line
1672 fzf --height=-1
1673 ```
1674 - This handles a terminal resize better than `--height=$(($(tput lines) - 1))`
1675 - Added `accept-or-print-query` action that acts like `accept` but prints the
1676 current query when there's no match for the query
1677 ```sh
1678 # You can make CTRL-R paste the current query when there's no match
1679 export FZF_CTRL_R_OPTS='--bind enter:accept-or-print-query'
1680 ```
1681 - Note that there are alternative ways to implement the same strategy
1682 ```sh
1683 # 'become' is apparently more versatile but it's not available on Windows.
1684 export FZF_CTRL_R_OPTS='--bind "enter:become:if [ -z {} ]; then echo {q}; else echo {}; fi"'
1685
1686 # Using the new 'transform' action
1687 export FZF_CTRL_R_OPTS='--bind "enter:transform:[ -z {} ] && echo print-query || echo accept"'
1688 ```
1689 - Added `show-header` and `hide-header` actions
1690 - Bug fixes
1691
1692 0.44.1
1693 ------
1694 - Fixed crash when preview window is hidden on `focus` event
1695
1696 0.44.0
1697 ------
1698 - (Experimental) Sixel image support in preview window (not available on Windows)
1699 - [bin/fzf-preview.sh](bin/fzf-preview.sh) is added to demonstrate how to
1700 display an image using Kitty image protocol or Sixel. You can use it
1701 like so:
1702 ```sh
1703 fzf --preview='fzf-preview.sh {}'
1704 ```
1705 - (Experimental) iTerm2 inline image protocol support in preview window (not available on Windows)
1706 ```sh
1707 # Using https://iterm2.com/utilities/imgcat
1708 fzf --preview 'imgcat -W $FZF_PREVIEW_COLUMNS -H $FZF_PREVIEW_LINES {}'
1709 ```
1710 - HTTP server can be configured to accept remote connections
1711 ```sh
1712 # FZF_API_KEY is required for a non-localhost listen address
1713 export FZF_API_KEY="$(head -c 32 /dev/urandom | base64)"
1714 fzf --listen 0.0.0.0:6266
1715 ```
1716 - To allow remote process execution, use `--listen-unsafe` instead
1717 (`execute*`, `reload*`, `become`, `preview`, `change-preview`, `transform-*`)
1718 ```sh
1719 fzf --listen-unsafe 0.0.0.0:6266
1720 ```
1721 - Bug fixes
1722
1723 0.43.0
1724 ------
1725 - (Experimental) Added support for Kitty image protocol in the preview window
1726 (not available on Windows)
1727 ```sh
1728 fzf --preview='
1729 if file --mime-type {} | grep -qF image/; then
1730 # --transfer-mode=memory is the fastest option but if you want fzf to be able
1731 # to redraw the image on terminal resize or on 'change-preview-window',
1732 # you need to use --transfer-mode=stream.
1733 kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {} | sed \$d
1734 else
1735 bat --color=always {}
1736 fi
1737 '
1738 ```
1739 - (Experimental) `--listen` server can report program state in JSON format (`GET /`)
1740 ```sh
1741 # fzf server started in "headless" mode
1742 fzf --listen 6266 2> /dev/null
1743
1744 # Get program state
1745 curl localhost:6266 | jq .
1746
1747 # Increase the number of items returned (default: 100)
1748 curl localhost:6266?limit=1000 | jq .
1749 ```
1750 - `--listen` server can be secured by setting `$FZF_API_KEY` environment
1751 variable.
1752 ```sh
1753 export FZF_API_KEY="$(head -c 32 /dev/urandom | base64)"
1754
1755 # Server
1756 fzf --listen 6266
1757
1758 # Client
1759 curl localhost:6266 -H "x-api-key: $FZF_API_KEY" -d 'change-query(yo)'
1760 ```
1761 - Added `toggle-header` action
1762 - Added mouse events for `--bind`
1763 - `scroll-up` (bound to `up`)
1764 - `scroll-down` (bound to `down`)
1765 - `shift-scroll-up` (bound to `toggle+up`)
1766 - `shift-scroll-down` (bound to `toggle+down`)
1767 - `shift-left-click` (bound to `toggle`)
1768 - `shift-right-click` (bound to `toggle`)
1769 - `preview-scroll-up` (bound to `preview-up`)
1770 - `preview-scroll-down` (bound to `preview-down`)
1771 ```sh
1772 # Twice faster scrolling both in the main window and the preview window
1773 fzf --bind 'scroll-up:up+up,scroll-down:down+down' \
1774 --bind 'preview-scroll-up:preview-up+preview-up' \
1775 --bind 'preview-scroll-down:preview-down+preview-down' \
1776 --preview 'cat {}'
1777 ```
1778 - Added `offset-up` and `offset-down` actions
1779 ```sh
1780 # Scrolling will behave similarly to CTRL-E and CTRL-Y of vim
1781 fzf --bind scroll-up:offset-up,scroll-down:offset-down \
1782 --bind ctrl-y:offset-up,ctrl-e:offset-down \
1783 --scroll-off=5
1784 ```
1785 - Shell extensions
1786 - Updated bash completion for fzf options
1787 - bash key bindings no longer requires perl; it will use awk or mawk
1788 instead if perl is not found
1789 - Basic context-aware completion for ssh command
1790 - Applied `--scheme=path` for better ordering of the result
1791 - Bug fixes and improvements
1792
1793 0.42.0
1794 ------
1795 - Added new info style: `--info=right`
1796 - Added new info style: `--info=inline-right`
1797 - Added new border style `thinblock` which uses symbols for legacy computing
1798 [one eighth block elements](https://en.wikipedia.org/wiki/Symbols_for_Legacy_Computing)
1799 - Similarly to `block`, this style is suitable when using a different
1800 background color because the window is completely contained within the border.
1801 ```sh
1802 BAT_THEME=GitHub fzf --info=right --border=thinblock --preview-window=border-thinblock \
1803 --margin=3 --scrollbar=▏▕ --preview='bat --color=always --style=numbers {}' \
1804 --color=light,query:238,fg:238,bg:251,bg+:249,gutter:251,border:248,preview-bg:253
1805 ```
1806 - This style may not render correctly depending on the font and the
1807 terminal emulator.
1808
1809 0.41.1
1810 ------
1811 - Fixed a bug where preview window is not updated when `--disabled` is set and
1812 a reload is triggered by `change:reload` binding
1813
1814 0.41.0
1815 ------
1816 - Added color name `preview-border` and `preview-scrollbar`
1817 - Added new border style `block` which uses [block elements](https://en.wikipedia.org/wiki/Block_Elements)
1818 - `--scrollbar` can take two characters, one for the main window, the other
1819 for the preview window
1820 - Putting it altogether:
1821 ```sh
1822 fzf-tmux -p 80% --padding 1,2 --preview 'bat --style=plain --color=always {}' \
1823 --color 'bg:237,bg+:235,gutter:237,border:238,scrollbar:236' \
1824 --color 'preview-bg:235,preview-border:236,preview-scrollbar:234' \
1825 --preview-window 'border-block' --border block --scrollbar '▌▐'
1826 ```
1827 - Bug fixes and improvements
1828
1829 0.40.0
1830 ------
1831 - Added `zero` event that is triggered when there's no match
1832 ```sh
1833 # Reload the candidate list when there's no match
1834 echo $RANDOM | fzf --bind 'zero:reload(echo $RANDOM)+clear-query' --height 3
1835 ```
1836 - New actions
1837 - Added `track` action which makes fzf track the current item when the
1838 search result is updated. If the user manually moves the cursor, or the
1839 item is not in the updated search result, tracking is automatically
1840 disabled. Tracking is useful when you want to see the surrounding items
1841 by deleting the query string.
1842 ```sh
1843 # Narrow down the list with a query, point to a command,
1844 # and hit CTRL-T to see its surrounding commands.
1845 export FZF_CTRL_R_OPTS="
1846 --preview 'echo {}' --preview-window up:3:hidden:wrap
1847 --bind 'ctrl-/:toggle-preview'
1848 --bind 'ctrl-t:track+clear-query'
1849 --bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort'
1850 --color header:italic
1851 --header 'Press CTRL-Y to copy command into clipboard'"
1852 ```
1853 - Added `change-header(...)`
1854 - Added `transform-header(...)`
1855 - Added `toggle-track` action
1856 - Fixed `--track` behavior when used with `--tac`
1857 - However, using `--track` with `--tac` is not recommended. The resulting
1858 behavior can be very confusing.
1859 - Bug fixes and improvements
1860
1861 0.39.0
1862 ------
1863 - Added `one` event that is triggered when there's only one match
1864 ```sh
1865 # Automatically select the only match
1866 seq 10 | fzf --bind one:accept
1867 ```
1868 - Added `--track` option that makes fzf track the current selection when the
1869 result list is updated. This can be useful when browsing logs using fzf with
1870 sorting disabled.
1871 ```sh
1872 git log --oneline --graph --color=always | nl |
1873 fzf --ansi --track --no-sort --layout=reverse-list
1874 ```
1875 - If you use `--listen` option without a port number fzf will automatically
1876 allocate an available port and export it as `$FZF_PORT` environment
1877 variable.
1878 ```sh
1879 # Automatic port assignment
1880 fzf --listen --bind 'start:execute-silent:echo $FZF_PORT > /tmp/fzf-port'
1881
1882 # Say hello
1883 curl "localhost:$(cat /tmp/fzf-port)" -d 'preview:echo Hello, fzf is listening on $FZF_PORT.'
1884 ```
1885 - A carriage return and a line feed character will be rendered as dim ␍ and
1886 ␊ respectively.
1887 ```sh
1888 printf "foo\rbar\nbaz" | fzf --read0 --preview 'echo {}'
1889 ```
1890 - fzf will stop rendering a non-displayable characters as a space. This will
1891 likely cause less glitches in the preview window.
1892 ```sh
1893 fzf --preview 'head -1000 /dev/random'
1894 ```
1895 - Bug fixes and improvements
1896
1897 0.38.0
1898 ------
1899 - New actions
1900 - `become(...)` - Replace the current fzf process with the specified
1901 command using `execve(2)` system call.
1902 See https://github.com/junegunn/fzf#turning-into-a-different-process for
1903 more information.
1904 ```sh
1905 # Open selected files in Vim
1906 fzf --multi --bind 'enter:become(vim {+})'
1907
1908 # Open the file in Vim and go to the line
1909 git grep --line-number . |
1910 fzf --delimiter : --nth 3.. --bind 'enter:become(vim {1} +{2})'
1911 ```
1912 - This action is not supported on Windows
1913 - `show-preview`
1914 - `hide-preview`
1915 - Bug fixes
1916 - `--preview-window 0,hidden` should not execute the preview command until
1917 `toggle-preview` action is triggered
1918
1919 0.37.0
1920 ------
1921 - Added a way to customize the separator of inline info
1922 ```sh
1923 fzf --info 'inline: ╱ ' --prompt '╱ ' --color prompt:bright-yellow
1924 ```
1925 - New event
1926 - `focus` - Triggered when the focus changes due to a vertical cursor
1927 movement or a search result update
1928 ```sh
1929 fzf --bind 'focus:transform-preview-label:echo [ {} ]' --preview 'cat {}'
1930
1931 # Any action bound to the event runs synchronously and thus can make the interface sluggish
1932 # e.g. lolcat isn't one of the fastest programs, and every cursor movement in
1933 # fzf will be noticeably affected by its execution time
1934 fzf --bind 'focus:transform-preview-label:echo [ {} ] | lolcat -f' --preview 'cat {}'
1935
1936 # Beware not to introduce an infinite loop
1937 seq 10 | fzf --bind 'focus:up' --cycle
1938 ```
1939 - New actions
1940 - `change-border-label`
1941 - `change-preview-label`
1942 - `transform-border-label`
1943 - `transform-preview-label`
1944 - Bug fixes and improvements
1945
1946 0.36.0
1947 ------
1948 - Added `--listen=HTTP_PORT` option to start HTTP server. It allows external
1949 processes to send actions to perform via POST method.
1950 ```sh
1951 # Start HTTP server on port 6266
1952 fzf --listen 6266
1953
1954 # Send actions to the server
1955 curl -XPOST localhost:6266 -d 'reload(seq 100)+change-prompt(hundred> )'
1956 ```
1957 - Added draggable scrollbar to the main search window and the preview window
1958 ```sh
1959 # Hide scrollbar
1960 fzf --no-scrollbar
1961
1962 # Customize scrollbar
1963 fzf --scrollbar ┆ --color scrollbar:blue
1964 ```
1965 - New event
1966 - Added `load` event that is triggered when the input stream is complete
1967 and the initial processing of the list is complete.
1968 ```sh
1969 # Change the prompt to "loaded" when the input stream is complete
1970 (seq 10; sleep 1; seq 11 20) | fzf --prompt 'Loading> ' --bind 'load:change-prompt:Loaded> '
1971
1972 # You can use it instead of 'start' event without `--sync` if asynchronous
1973 # trigger is not an issue.
1974 (seq 10; sleep 1; seq 11 20) | fzf --bind 'load:last'
1975 ```
1976 - New actions
1977 - Added `pos(...)` action to move the cursor to the numeric position
1978 - `first` and `last` are equivalent to `pos(1)` and `pos(-1)` respectively
1979 ```sh
1980 # Put the cursor on the 10th item
1981 seq 100 | fzf --sync --bind 'start:pos(10)'
1982
1983 # Put the cursor on the 10th to last item
1984 seq 100 | fzf --sync --bind 'start:pos(-10)'
1985 ```
1986 - Added `reload-sync(...)` action which replaces the current list only after
1987 the reload process is complete. This is useful when the command takes
1988 a while to produce the initial output and you don't want fzf to run against
1989 an empty list while the command is running.
1990 ```sh
1991 # You can still filter and select entries from the initial list for 3 seconds
1992 seq 100 | fzf --bind 'load:reload-sync(sleep 3; seq 1000)+unbind(load)'
1993 ```
1994 - Added `next-selected` and `prev-selected` actions to move between selected
1995 items
1996 ```sh
1997 # `next-selected` will move the pointer to the next selected item below the current line
1998 # `prev-selected` will move the pointer to the previous selected item above the current line
1999 seq 10 | fzf --multi --bind ctrl-n:next-selected,ctrl-p:prev-selected
2000
2001 # Both actions respect --layout option
2002 seq 10 | fzf --multi --bind ctrl-n:next-selected,ctrl-p:prev-selected --layout reverse
2003 ```
2004 - Added `change-query(...)` action that simply changes the query string to the
2005 given static string. This can be useful when used with `--listen`.
2006 ```sh
2007 curl localhost:6266 -d "change-query:$(date)"
2008 ```
2009 - Added `transform-prompt(...)` action for transforming the prompt string
2010 using an external command
2011 ```sh
2012 # Press space to change the prompt string using an external command
2013 # (only the first line of the output is taken)
2014 fzf --bind 'space:reload(ls),load:transform-prompt(printf "%s> " "$(date)")'
2015 ```
2016 - Added `transform-query(...)` action for transforming the query string using
2017 an external command
2018 ```sh
2019 # Press space to convert the query to uppercase letters
2020 fzf --bind 'space:transform-query(tr "[:lower:]" "[:upper:]" <<< {q})'
2021
2022 # Bind it to 'change' event for automatic conversion
2023 fzf --bind 'change:transform-query(tr "[:lower:]" "[:upper:]" <<< {q})'
2024
2025 # Can only type numbers
2026 fzf --bind 'change:transform-query(sed "s/[^0-9]//g" <<< {q})'
2027 ```
2028 - `put` action can optionally take an argument string
2029 ```sh
2030 # a will put 'alpha' on the prompt, ctrl-b will put 'bravo'
2031 fzf --bind 'a:put+put(lpha),ctrl-b:put(bravo)'
2032 ```
2033 - Added color name `preview-label` for `--preview-label` (defaults to `label`
2034 for `--border-label`)
2035 - Better support for (Windows) terminals where each box-drawing character
2036 takes 2 columns. Set `RUNEWIDTH_EASTASIAN` environment variable to `0` or `1`.
2037 - On Vim, the variable will be automatically set if `&ambiwidth` is `double`
2038 - Behavior changes
2039 - fzf will always execute the preview command if the command template
2040 contains `{q}` even when it's empty. If you prefer the old behavior,
2041 you'll have to check if `{q}` is empty in your command.
2042 ```sh
2043 # This will show // even when the query is empty
2044 : | fzf --preview 'echo /{q}/'
2045
2046 # But if you don't want it,
2047 : | fzf --preview '[ -n {q} ] || exit; echo /{q}/'
2048 ```
2049 - `double-click` will behave the same as `enter` unless otherwise specified,
2050 so you don't have to repeat the same action twice in `--bind` in most cases.
2051 ```sh
2052 # No need to bind 'double-click' to the same action
2053 fzf --bind 'enter:execute:less {}' # --bind 'double-click:execute:less {}'
2054 ```
2055 - If the color for `separator` is not specified, it will default to the
2056 color for `border`. Same holds true for `scrollbar`. This is to reduce
2057 the number of configuration items required to achieve a consistent color
2058 scheme.
2059 - If `follow` flag is specified in `--preview-window` option, fzf will
2060 automatically scroll to the bottom of the streaming preview output. But
2061 when the user manually scrolls the window, the following stops. With
2062 this version, fzf will resume following if the user scrolls the window
2063 to the bottom.
2064 - Default border style on Windows is changed to `sharp` because some
2065 Windows terminals are not capable of displaying `rounded` border
2066 characters correctly.
2067 - Minor bug fixes and improvements
2068
2069 0.35.1
2070 ------
2071 - Fixed a bug where fzf with `--tiebreak=chunk` crashes on inverse match query
2072 - Fixed a bug where clicking above fzf would paste escape sequences
2073
2074 0.35.0
2075 ------
2076 - Added `start` event that is triggered only once when fzf finder starts.
2077 Since fzf consumes the input stream asynchronously, the input list is not
2078 available unless you use `--sync`.
2079 ```sh
2080 seq 100 | fzf --multi --sync --bind 'start:last+select-all+preview(echo welcome)'
2081 ```
2082 - Added `--border-label` and `--border-label-pos` for putting label on the border
2083 ```sh
2084 # ANSI color codes are supported
2085 # (with https://github.com/busyloop/lolcat)
2086 label=$(curl -s http://metaphorpsum.com/sentences/1 | lolcat -f)
2087
2088 # Border label at the center
2089 fzf --height=10 --border --border-label="╢ $label ╟" --color=label:italic:black
2090
2091 # Left-aligned (positive integer)
2092 fzf --height=10 --border --border-label="╢ $label ╟" --border-label-pos=3 --color=label:italic:black
2093
2094 # Right-aligned (negative integer) on the bottom line (:bottom)
2095 fzf --height=10 --border --border-label="╢ $label ╟" --border-label-pos=-3:bottom --color=label:italic:black
2096 ```
2097 - Also added `--preview-label` and `--preview-label-pos` for the border of the
2098 preview window
2099 ```sh
2100 fzf --preview 'cat {}' --border --preview-label=' Preview ' --preview-label-pos=2
2101 ```
2102 - Info panel (match counter) will be followed by a horizontal separator by
2103 default
2104 - Use `--no-separator` or `--separator=''` to hide the separator
2105 - You can specify an arbitrary string that is repeated to form the
2106 horizontal separator. e.g. `--separator=╸`
2107 - The color of the separator can be customized via `--color=separator:...`
2108 - ANSI color codes are also supported
2109 ```sh
2110 fzf --separator=╸ --color=separator:green
2111 fzf --separator=$(lolcat -f -F 1.4 <<< ▁▁▂▃▄▅▆▆▅▄▃▂▁▁) --info=inline
2112 ```
2113 - Added `--border=bold` and `--border=double` along with
2114 `--preview-window=border-bold` and `--preview-window=border-double`
2115
2116 0.34.0
2117 ------
2118 - Added support for adaptive `--height`. If the `--height` value is prefixed
2119 with `~`, fzf will automatically determine the height in the range according
2120 to the input size.
2121 ```sh
2122 seq 1 | fzf --height ~70% --border --padding 1 --margin 1
2123 seq 10 | fzf --height ~70% --border --padding 1 --margin 1
2124 seq 100 | fzf --height ~70% --border --padding 1 --margin 1
2125 ```
2126 - There are a few limitations
2127 - Not compatible with percent top/bottom margin/padding
2128 ```sh
2129 # This is not allowed (top/bottom margin in percent value)
2130 fzf --height ~50% --border --margin 5%,10%
2131
2132 # This is allowed (top/bottom margin in fixed value)
2133 fzf --height ~50% --border --margin 2,10%
2134 ```
2135 - fzf will not start until it can determine the right height for the input
2136 ```sh
2137 # fzf will open immediately
2138 (sleep 2; seq 10) | fzf --height 50%
2139
2140 # fzf will open after 2 seconds
2141 (sleep 2; seq 10) | fzf --height ~50%
2142 (sleep 2; seq 1000) | fzf --height ~50%
2143 ```
2144 - Fixed tcell renderer used to render full-screen fzf on Windows
2145 - ~~`--no-clear` is deprecated. Use `reload` action instead.~~
2146
2147 0.33.0
2148 ------
2149 - Added `--scheme=[default|path|history]` option to choose scoring scheme
2150 - (Experimental)
2151 - We updated the scoring algorithm in 0.32.0, however we have learned that
2152 this new scheme (`default`) is not always giving the optimal result
2153 - `path`: Additional bonus point is only given to the characters after
2154 path separator. You might want to choose this scheme if you have many
2155 files with spaces in their paths.
2156 - `history`: No additional bonus points are given so that we give more
2157 weight to the chronological ordering. This is equivalent to the scoring
2158 scheme before 0.32.0. This also sets `--tiebreak=index`.
2159 - ANSI color sequences with colon delimiters are now supported.
2160 ```sh
2161 printf "\e[38;5;208mOption 1\e[m\nOption 2" | fzf --ansi
2162 printf "\e[38:5:208mOption 1\e[m\nOption 2" | fzf --ansi
2163 ```
2164 - Support `border-{up,down}` as the synonyms for `border-{top,bottom}` in
2165 `--preview-window`
2166 - Added support for ANSI `strikethrough`
2167 ```sh
2168 printf "\e[9mdeleted" | fzf --ansi
2169 fzf --color fg+:strikethrough
2170 ```
2171
2172 0.32.1
2173 ------
2174 - Fixed incorrect ordering of `--tiebreak=chunk`
2175 - fzf-tmux will show fzf border instead of tmux popup border (requires tmux 3.3)
2176 ```sh
2177 fzf-tmux -p70%
2178 fzf-tmux -p70% --color=border:bright-red
2179 fzf-tmux -p100%,60% --color=border:bright-yellow --border=horizontal --padding 1,5 --margin 1,0
2180 fzf-tmux -p70%,100% --color=border:bright-green --border=vertical
2181
2182 # Key bindings (CTRL-T, CTRL-R, ALT-C) will use these options
2183 export FZF_TMUX_OPTS='-p100%,60% --color=border:green --border=horizontal --padding 1,5 --margin 1,0'
2184 ```
2185
2186 0.32.0
2187 ------
2188 - Updated the scoring algorithm
2189 - Different bonus points to different categories of word boundaries
2190 (listed higher to lower bonus point)
2191 - Word after whitespace characters or beginning of the string
2192 - Word after common delimiter characters (`/,:;|`)
2193 - Word after other non-word characters
2194 ```sh
2195 # foo/bar.sh` is preferred over `foo-bar.sh` on `bar`
2196 fzf --query=bar --height=4 << EOF
2197 foo-bar.sh
2198 foo/bar.sh
2199 EOF
2200 ```
2201 - Added a new tiebreak `chunk`
2202 - Favors the line with shorter matched chunk. A chunk is a set of
2203 consecutive non-whitespace characters.
2204 - Unlike the default `length`, this scheme works well with tabular input
2205 ```sh
2206 # length prefers item #1, because the whole line is shorter,
2207 # chunk prefers item #2, because the matched chunk ("foo") is shorter
2208 fzf --height=6 --header-lines=2 --tiebreak=chunk --reverse --query=fo << "EOF"
2209 N | Field1 | Field2 | Field3
2210 - | ------ | ------ | ------
2211 1 | hello | foobar | baz
2212 2 | world | foo | bazbaz
2213 EOF
2214 ```
2215 - If the input does not contain any spaces, `chunk` is equivalent to
2216 `length`. But we're not going to set it as the default because it is
2217 computationally more expensive.
2218 - Bug fixes and improvements
2219
2220 0.31.0
2221 ------
2222 - Added support for an alternative preview window layout that is activated
2223 when the size of the preview window is smaller than a certain threshold.
2224 ```sh
2225 # If the width of the preview window is smaller than 50 columns,
2226 # it will be displayed above the search window.
2227 fzf --preview 'cat {}' --preview-window 'right,50%,border-left,<50(up,30%,border-bottom)'
2228
2229 # Or you can just hide it like so
2230 fzf --preview 'cat {}' --preview-window '<50(hidden)'
2231 ```
2232 - fzf now uses SGR mouse mode to properly support mouse on larger terminals
2233 - You can now use characters that do not satisfy `unicode.IsGraphic` constraint
2234 for `--marker`, `--pointer`, and `--ellipsis`. Allows Nerd Fonts and stuff.
2235 Use at your own risk.
2236 - Bug fixes and improvements
2237 - Shell extension
2238 - `kill` completion now requires trigger sequence (`**`) for consistency
2239
2240 0.30.0
2241 ------
2242 - Fixed cursor flickering over the screen by hiding it during rendering
2243 - Added `--ellipsis` option. You can take advantage of it to make fzf
2244 effectively search non-visible parts of the item.
2245 ```sh
2246 # Search against hidden line numbers on the far right
2247 nl /usr/share/dict/words |
2248 awk '{printf "%s%1000s\n", $2, $1}' |
2249 fzf --nth=-1 --no-hscroll --ellipsis='' |
2250 awk '{print $2}'
2251 ```
2252 - Added `rebind` action for restoring bindings after `unbind`
2253 - Bug fixes and improvements
2254
2255 0.29.0
2256 ------
2257 - Added `change-preview(...)` action to change the `--preview` command
2258 - cf. `preview(...)` is a one-off action that doesn't change the default
2259 preview command
2260 - Added `change-preview-window(...)` action
2261 - You can rotate through the different options separated by `|`
2262 ```sh
2263 fzf --preview 'cat {}' --preview-window right:40% \
2264 --bind 'ctrl-/:change-preview-window(right,70%|down,40%,border-top|hidden|)'
2265 ```
2266 - Fixed rendering of the prompt line when overflow occurs with `--info=inline`
2267
2268 0.28.0
2269 ------
2270 - Added `--header-first` option to print header before the prompt line
2271 ```sh
2272 fzf --header $'Welcome to fzf\n▔▔▔▔▔▔▔▔▔▔▔▔▔▔' --reverse --height 30% --border --header-first
2273 ```
2274 - Added `--scroll-off=LINES` option (similar to `scrolloff` option of Vim)
2275 - You can set it to a very large number so that the cursor stays in the
2276 middle of the screen while scrolling
2277 ```sh
2278 fzf --scroll-off=5
2279 fzf --scroll-off=999
2280 ```
2281 - Fixed bug where preview window is not updated on `reload` (#2644)
2282 - fzf on Windows will also use `$SHELL` to execute external programs
2283 - See #2638 and #2647
2284 - Thanks to @rashil2000, @vovcacik, and @janlazo
2285
2286 0.27.3
2287 ------
2288 - Preview window is `hidden` by default when there are `preview` bindings but
2289 `--preview` command is not given
2290 - Fixed bug where `{n}` is not properly reset on `reload`
2291 - Fixed bug where spinner is not displayed on `reload`
2292 - Enhancements in tcell renderer for Windows (#2616)
2293 - Vim plugin
2294 - `sinklist` is added as a synonym to `sink*` so that it's easier to add
2295 a function to a spec dictionary
2296 ```vim
2297 let spec = { 'source': 'ls', 'options': ['--multi', '--preview', 'cat {}'] }
2298 function spec.sinklist(matches)
2299 echom string(a:matches)
2300 endfunction
2301
2302 call fzf#run(fzf#wrap(spec))
2303 ```
2304 - Vim 7 compatibility
2305
2306 0.27.2
2307 ------
2308 - 16 base ANSI colors can be specified by their names
2309 ```sh
2310 fzf --color fg:3,fg+:11
2311 fzf --color fg:yellow,fg+:bright-yellow
2312 ```
2313 - Fix bug where `--read0` not properly displaying long lines
2314
2315 0.27.1
2316 ------
2317 - Added `unbind` action. In the following Ripgrep launcher example, you can
2318 use `unbind(reload)` to switch to fzf-only filtering mode.
2319 - See https://github.com/junegunn/fzf/blob/master/ADVANCED.md#switching-to-fzf-only-search-mode
2320 - Vim plugin
2321 - Vim plugin will stop immediately even when the source command hasn't finished
2322 ```vim
2323 " fzf will read the stream file while allowing other processes to append to it
2324 call fzf#run({'source': 'cat /dev/null > /tmp/stream; tail -f /tmp/stream'})
2325 ```
2326 - It is now possible to open popup window relative to the current window
2327 ```vim
2328 let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6, 'relative': v:true, 'yoffset': 1.0 } }
2329 ```
2330
2331 0.27.0
2332 ------
2333 - More border options for `--preview-window`
2334 ```sh
2335 fzf --preview 'cat {}' --preview-window border-left
2336 fzf --preview 'cat {}' --preview-window border-left --border horizontal
2337 fzf --preview 'cat {}' --preview-window top:border-bottom
2338 fzf --preview 'cat {}' --preview-window top:border-horizontal
2339 ```
2340 - Automatically set `/dev/tty` as STDIN on execute action
2341 ```sh
2342 # Redirect /dev/tty to suppress "Vim: Warning: Input is not from a terminal"
2343 # ls | fzf --bind "enter:execute(vim {} < /dev/tty)"
2344
2345 # "< /dev/tty" part is no longer needed
2346 ls | fzf --bind "enter:execute(vim {})"
2347 ```
2348 - Bug fixes and improvements
2349 - Signed and notarized macOS binaries
2350 (Huge thanks to [BACKERS.md](https://github.com/junegunn/junegunn/blob/main/BACKERS.md)!)
2351
2352 0.26.0
2353 ------
2354 - Added support for fixed header in preview window
2355 ```sh
2356 # Display top 3 lines as the fixed header
2357 fzf --preview 'bat --style=header,grid --color=always {}' --preview-window '~3'
2358 ```
2359 - More advanced preview offset expression to better support the fixed header
2360 ```sh
2361 # Preview with bat, matching line in the middle of the window below
2362 # the fixed header of the top 3 lines
2363 #
2364 # ~3 Top 3 lines as the fixed header
2365 # +{2} Base scroll offset extracted from the second field
2366 # +3 Extra offset to compensate for the 3-line header
2367 # /2 Put in the middle of the preview area
2368 #
2369 git grep --line-number '' |
2370 fzf --delimiter : \
2371 --preview 'bat --style=full --color=always --highlight-line {2} {1}' \
2372 --preview-window '~3:+{2}+3/2'
2373 ```
2374 - Added `select` and `deselect` action for unconditionally selecting or
2375 deselecting a single item in `--multi` mode. Complements `toggle` action.
2376 - Significant performance improvement in ANSI code processing
2377 - Bug fixes and improvements
2378 - Built with Go 1.16
2379
2380 0.25.1
2381 ------
2382 - Added `close` action
2383 - Close preview window if open, abort fzf otherwise
2384 - Bug fixes and improvements
2385
2386 0.25.0
2387 ------
2388 - Text attributes set in `--color` are not reset when fzf sees another
2389 `--color` option for the same element. This allows you to put custom text
2390 attributes in your `$FZF_DEFAULT_OPTS` and still have those attributes
2391 even when you override the colors.
2392
2393 ```sh
2394 # Default colors and attributes
2395 fzf
2396
2397 # Apply custom text attributes
2398 export FZF_DEFAULT_OPTS='--color fg+:italic,hl:-1:underline,hl+:-1:reverse:underline'
2399
2400 fzf
2401
2402 # Different colors but you still have the attributes
2403 fzf --color hl:176,hl+:177
2404
2405 # Write "regular" if you want to clear the attributes
2406 fzf --color hl:176:regular,hl+:177:regular
2407 ```
2408 - Renamed `--phony` to `--disabled`
2409 - You can dynamically enable and disable the search functionality using the
2410 new `enable-search`, `disable-search`, and `toggle-search` actions
2411 - You can assign a different color to the query string for when search is disabled
2412 ```sh
2413 fzf --color query:#ffffff,disabled:#999999 --bind space:toggle-search
2414 ```
2415 - Added `last` action to move the cursor to the last match
2416 - The opposite action `top` is renamed to `first`, but `top` is still
2417 recognized as a synonym for backward compatibility
2418 - Added `preview-top` and `preview-bottom` actions
2419 - Extended support for alt key chords: alt with any case-sensitive single character
2420 ```sh
2421 fzf --bind alt-,:first,alt-.:last
2422 ```
2423
2424 0.24.4
2425 ------
2426 - Added `--preview-window` option `follow`
2427 ```sh
2428 # Preview window will automatically scroll to the bottom
2429 fzf --preview-window follow --preview 'for i in $(seq 100000); do
2430 echo "$i"
2431 sleep 0.01
2432 (( i % 300 == 0 )) && printf "\033[2J"
2433 done'
2434 ```
2435 - Added `change-prompt` action
2436 ```sh
2437 fzf --prompt 'foo> ' --bind $'a:change-prompt:\x1b[31mbar> '
2438 ```
2439 - Bug fixes and improvements
2440
2441 0.24.3
2442 ------
2443 - Added `--padding` option
2444 ```sh
2445 fzf --margin 5% --padding 5% --border --preview 'cat {}' \
2446 --color bg:#222222,preview-bg:#333333
2447 ```
2448
2449 0.24.2
2450 ------
2451 - Bug fixes and improvements
2452
2453 0.24.1
2454 ------
2455 - Fixed broken `--color=[bw|no]` option
2456
2457 0.24.0
2458 ------
2459 - Real-time rendering of preview window
2460 ```sh
2461 # fzf can render preview window before the command completes
2462 fzf --preview 'sleep 1; for i in $(seq 100); do echo $i; sleep 0.01; done'
2463
2464 # Preview window can process ANSI escape sequence (CSI 2 J) for clearing the display
2465 fzf --preview 'for i in $(seq 100000); do
2466 (( i % 200 == 0 )) && printf "\033[2J"
2467 echo "$i"
2468 sleep 0.01
2469 done'
2470 ```
2471 - Updated `--color` option to support text styles
2472 - `regular` / `bold` / `dim` / `underline` / `italic` / `reverse` / `blink`
2473 ```sh
2474 # * Set -1 to keep the original color
2475 # * Multiple style attributes can be combined
2476 # * Italic style may not be supported by some terminals
2477 rg --line-number --no-heading --color=always "" |
2478 fzf --ansi --prompt "Rg: " \
2479 --color fg+:italic,hl:underline:-1,hl+:italic:underline:reverse:-1 \
2480 --color pointer:reverse,prompt:reverse,input:159 \
2481 --pointer ' '
2482 ```
2483 - More `--border` options
2484 - `vertical`, `top`, `bottom`, `left`, `right`
2485 - Updated Vim plugin to use these new `--border` options
2486 ```vim
2487 " Floating popup window in the center of the screen
2488 let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
2489
2490 " Popup with 100% width
2491 let g:fzf_layout = { 'window': { 'width': 1.0, 'height': 0.5, 'border': 'horizontal' } }
2492
2493 " Popup with 100% height
2494 let g:fzf_layout = { 'window': { 'width': 0.5, 'height': 1.0, 'border': 'vertical' } }
2495
2496 " Similar to 'down' layout, but it uses a popup window and doesn't affect the window layout
2497 let g:fzf_layout = { 'window': { 'width': 1.0, 'height': 0.5, 'yoffset': 1.0, 'border': 'top' } }
2498
2499 " Opens on the right;
2500 " 'highlight' option is still supported but it will only take the foreground color of the group
2501 let g:fzf_layout = { 'window': { 'width': 0.5, 'height': 1.0, 'xoffset': 1.0, 'border': 'left', 'highlight': 'Comment' } }
2502 ```
2503 - To indicate if `--multi` mode is enabled, fzf will print the number of
2504 selected items even when no item is selected
2505 ```sh
2506 seq 100 | fzf
2507 # 100/100
2508 seq 100 | fzf --multi
2509 # 100/100 (0)
2510 seq 100 | fzf --multi 5
2511 # 100/100 (0/5)
2512 ```
2513 - Since 0.24.0, release binaries will be uploaded to https://github.com/junegunn/fzf/releases
2514
2515 0.23.1
2516 ------
2517 - Added `--preview-window` options for disabling flags
2518 - `nocycle`
2519 - `nohidden`
2520 - `nowrap`
2521 - `default`
2522 - Built with Go 1.14.9 due to performance regression
2523 - https://github.com/golang/go/issues/40727
2524
2525 0.23.0
2526 ------
2527 - Support preview scroll offset relative to window height
2528 ```sh
2529 git grep --line-number '' |
2530 fzf --delimiter : \
2531 --preview 'bat --style=numbers --color=always --highlight-line {2} {1}' \
2532 --preview-window +{2}-/2
2533 ```
2534 - Added `--preview-window` option for sharp edges (`--preview-window sharp`)
2535 - Added `--preview-window` option for cyclic scrolling (`--preview-window cycle`)
2536 - Reduced vertical padding around the preview window when `--preview-window
2537 noborder` is used
2538 - Added actions for preview window
2539 - `preview-half-page-up`
2540 - `preview-half-page-down`
2541 - Vim
2542 - Popup width and height can be given in absolute integer values
2543 - Added `fzf#exec()` function for getting the path of fzf executable
2544 - It also downloads the latest binary if it's not available by running
2545 `./install --bin`
2546 - Built with Go 1.15.2
2547 - We no longer provide 32-bit binaries
2548
2549 0.22.0
2550 ------
2551 - Added more options for `--bind`
2552 - `backward-eof` event
2553 ```sh
2554 # Aborts when you delete backward when the query prompt is already empty
2555 fzf --bind backward-eof:abort
2556 ```
2557 - `refresh-preview` action
2558 ```sh
2559 # Rerun preview command when you hit '?'
2560 fzf --preview 'echo $RANDOM' --bind '?:refresh-preview'
2561 ```
2562 - `preview` action
2563 ```sh
2564 # Default preview command with an extra preview binding
2565 fzf --preview 'file {}' --bind '?:preview:cat {}'
2566
2567 # A preview binding with no default preview command
2568 # (Preview window is initially empty)
2569 fzf --bind '?:preview:cat {}'
2570
2571 # Preview window hidden by default, it appears when you first hit '?'
2572 fzf --bind '?:preview:cat {}' --preview-window hidden
2573 ```
2574 - Added preview window option for setting the initial scroll offset
2575 ```sh
2576 # Initial scroll offset is set to the line number of each line of
2577 # git grep output *minus* 5 lines
2578 git grep --line-number '' |
2579 fzf --delimiter : --preview 'nl {1}' --preview-window +{2}-5
2580 ```
2581 - Added support for ANSI colors in `--prompt` string
2582 - Smart match of accented characters
2583 - An unaccented character in the query string will match both accented and
2584 unaccented characters, while an accented character will only match
2585 accented characters. This is similar to how "smart-case" match works.
2586 - Vim plugin
2587 - `tmux` layout option for using fzf-tmux
2588 ```vim
2589 let g:fzf_layout = { 'tmux': '-p90%,60%' }
2590 ```
2591
2592 0.21.1
2593 ------
2594 - Shell extension
2595 - CTRL-R will remove duplicate commands
2596 - fzf-tmux
2597 - Supports tmux popup window (require tmux 3.2 or above)
2598 - ```sh
2599 # 50% width and height
2600 fzf-tmux -p
2601
2602 # 80% width and height
2603 fzf-tmux -p 80%
2604
2605 # 80% width and 40% height
2606 fzf-tmux -p 80%,40%
2607 fzf-tmux -w 80% -h 40%
2608
2609 # Window position
2610 fzf-tmux -w 80% -h 40% -x 0 -y 0
2611 fzf-tmux -w 80% -h 40% -y 1000
2612
2613 # Write ordinary fzf options after --
2614 fzf-tmux -p -- --reverse --info=inline --margin 2,4 --border
2615 ```
2616 - On macOS, you can build the latest tmux from the source with
2617 `brew install tmux --HEAD`
2618 - Bug fixes
2619 - Fixed Windows file traversal not to include directories
2620 - Fixed ANSI colors with `--keep-right`
2621 - Fixed _fzf_complete for zsh
2622 - Built with Go 1.14.1
2623
2624 0.21.0
2625 ------
2626 - `--height` option is now available on Windows as well (@kelleyma49)
2627 - Added `--pointer` and `--marker` options
2628 - Added `--keep-right` option that keeps the right end of the line visible
2629 when it's too long
2630 - Style changes
2631 - `--border` will now print border with rounded corners around the
2632 finder instead of printing horizontal lines above and below it.
2633 The previous style is available via `--border=horizontal`
2634 - Unicode spinner
2635 - More keys and actions for `--bind`
2636 - Added PowerShell script for downloading Windows binary
2637 - Vim plugin: Built-in floating windows support
2638 ```vim
2639 let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
2640 ```
2641 - bash: Various improvements in key bindings (CTRL-T, CTRL-R, ALT-C)
2642 - CTRL-R will start with the current command-line as the initial query
2643 - CTRL-R properly supports multi-line commands
2644 - Fuzzy completion API changed
2645 ```sh
2646 # Previous: fzf arguments given as a single string argument
2647 # - This style is still supported, but it's deprecated
2648 _fzf_complete "--multi --reverse --prompt=\"doge> \"" "$@" < <(
2649 echo foo
2650 )
2651
2652 # New API: multiple fzf arguments before "--"
2653 # - Easier to write multiple options
2654 _fzf_complete --multi --reverse --prompt="doge> " -- "$@" < <(
2655 echo foo
2656 )
2657 ```
2658 - Bug fixes and improvements
2659
2660 0.20.0
2661 ------
2662 - Customizable preview window color (`preview-fg` and `preview-bg` for `--color`)
2663 ```sh
2664 fzf --preview 'cat {}' \
2665 --color 'fg:#bbccdd,fg+:#ddeeff,bg:#334455,preview-bg:#223344,border:#778899' \
2666 --border --height 20 --layout reverse --info inline
2667 ```
2668 - Removed the immediate flicking of the screen on `reload` action.
2669 ```sh
2670 : | fzf --bind 'change:reload:seq {q}' --phony
2671 ```
2672 - Added `clear-query` and `clear-selection` actions for `--bind`
2673 - It is now possible to split a composite bind action over multiple `--bind`
2674 expressions by prefixing the later ones with `+`.
2675 ```sh
2676 fzf --bind 'ctrl-a:up+up'
2677
2678 # Can be now written as
2679 fzf --bind 'ctrl-a:up' --bind 'ctrl-a:+up'
2680
2681 # This is useful when you need to write special execute/reload form (i.e. `execute:...`)
2682 # to avoid parse errors and add more actions to the same key
2683 fzf --multi --bind 'ctrl-l:select-all+execute:less {+f}' --bind 'ctrl-l:+deselect-all'
2684 ```
2685 - Fixed parse error of `--bind` expression where concatenated execute/reload
2686 action contains `+` character.
2687 ```sh
2688 fzf --multi --bind 'ctrl-l:select-all+execute(less {+f})+deselect-all'
2689 ```
2690 - Fixed bugs of reload action
2691 - Not triggered when there's no match even when the command doesn't have
2692 any placeholder expressions
2693 - Screen not properly cleared when `--header-lines` not filled on reload
2694
2695 0.19.0
2696 ------
2697
2698 - Added `--phony` option which completely disables search functionality.
2699 Useful when you want to use fzf only as a selector interface. See below.
2700 - Added "reload" action for dynamically updating the input list without
2701 restarting fzf. See https://github.com/junegunn/fzf/issues/1750 to learn
2702 more about it.
2703 ```sh
2704 # Using fzf as the selector interface for ripgrep
2705 RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case "
2706 INITIAL_QUERY="foo"
2707 FZF_DEFAULT_COMMAND="$RG_PREFIX '$INITIAL_QUERY' || true" \
2708 fzf --bind "change:reload:$RG_PREFIX {q} || true" \
2709 --ansi --phony --query "$INITIAL_QUERY"
2710 ```
2711 - `--multi` now takes an optional integer argument which indicates the maximum
2712 number of items that can be selected
2713 ```sh
2714 seq 100 | fzf --multi 3 --reverse --height 50%
2715 ```
2716 - If a placeholder expression for `--preview` and `execute` action (and the
2717 new `reload` action) contains `f` flag, it is replaced to the
2718 path of a temporary file that holds the evaluated list. This is useful
2719 when you multi-select a large number of items and the length of the
2720 evaluated string may exceed [`ARG_MAX`][argmax].
2721 ```sh
2722 # Press CTRL-A to select 100K items and see the sum of all the numbers
2723 seq 100000 | fzf --multi --bind ctrl-a:select-all \
2724 --preview "awk '{sum+=\$1} END {print sum}' {+f}"
2725 ```
2726 - `deselect-all` no longer deselects unmatched items. It is now consistent
2727 with `select-all` and `toggle-all` in that it only affects matched items.
2728 - Due to the limitation of bash, fuzzy completion is enabled by default for
2729 a fixed set of commands. A helper function for easily setting up fuzzy
2730 completion for any command is now provided.
2731 ```sh
2732 # usage: _fzf_setup_completion path|dir COMMANDS...
2733 _fzf_setup_completion path git kubectl
2734 ```
2735 - Info line style can be changed by `--info=STYLE`
2736 - `--info=default`
2737 - `--info=inline` (same as old `--inline-info`)
2738 - `--info=hidden`
2739 - Preview window border can be disabled by adding `noborder` to
2740 `--preview-window`.
2741 - When you transform the input with `--with-nth`, the trailing white spaces
2742 are removed.
2743 - `ctrl-\`, `ctrl-]`, `ctrl-^`, and `ctrl-/` can now be used with `--bind`
2744 - See https://github.com/junegunn/fzf/milestone/15?closed=1 for more details
2745
2746 [argmax]: https://unix.stackexchange.com/questions/120642/what-defines-the-maximum-size-for-a-command-single-argument
2747
2748 0.18.0
2749 ------
2750
2751 - Added placeholder expression for zero-based item index: `{n}` and `{+n}`
2752 - `fzf --preview 'echo {n}: {}'`
2753 - Added color option for the gutter: `--color gutter:-1`
2754 - Added `--no-unicode` option for drawing borders in non-Unicode, ASCII
2755 characters
2756 - `FZF_PREVIEW_LINES` and `FZF_PREVIEW_COLUMNS` are exported to preview process
2757 - fzf still overrides `LINES` and `COLUMNS` as before, but they may be
2758 reset by the default shell.
2759 - Bug fixes and improvements
2760 - See https://github.com/junegunn/fzf/milestone/14?closed=1
2761 - Built with Go 1.12.1
2762
2763 0.17.5
2764 ------
2765
2766 - Bug fixes and improvements
2767 - See https://github.com/junegunn/fzf/milestone/13?closed=1
2768 - Search query longer than the screen width is allowed (up to 300 chars)
2769 - Built with Go 1.11.1
2770
2771 0.17.4
2772 ------
2773
2774 - Added `--layout` option with a new layout called `reverse-list`.
2775 - `--layout=reverse` is a synonym for `--reverse`
2776 - `--layout=default` is a synonym for `--no-reverse`
2777 - Preview window will be updated even when there is no match for the query
2778 if any of the placeholder expressions (e.g. `{q}`, `{+}`) evaluates to
2779 a non-empty string.
2780 - More keys for binding: `shift-{up,down}`, `alt-{up,down,left,right}`
2781 - fzf can now start even when `/dev/tty` is not available by making an
2782 educated guess.
2783 - Updated the default command for Windows.
2784 - Fixes and improvements on bash/zsh completion
2785 - install and uninstall scripts now supports generating files under
2786 `XDG_CONFIG_HOME` on `--xdg` flag.
2787
2788 See https://github.com/junegunn/fzf/milestone/12?closed=1 for the full list of
2789 changes.
2790
2791 0.17.3
2792 ------
2793 - `$LINES` and `$COLUMNS` are exported to preview command so that the command
2794 knows the exact size of the preview window.
2795 - Better error messages when the default command or `$FZF_DEFAULT_COMMAND`
2796 fails.
2797 - Reverted #1061 to avoid having duplicate entries in the list when find
2798 command detected a file system loop (#1120). The default command now
2799 requires that find supports `-fstype` option.
2800 - fzf now distinguishes mouse left click and right click (#1130)
2801 - Right click is now bound to `toggle` action by default
2802 - `--bind` understands `left-click` and `right-click`
2803 - Added `replace-query` action (#1137)
2804 - Replaces query string with the current selection
2805 - Added `accept-non-empty` action (#1162)
2806 - Same as accept, except that it prevents fzf from exiting without any
2807 selection
2808
2809 0.17.1
2810 ------
2811
2812 - Fixed custom background color of preview window (#1046)
2813 - Fixed background color issues of Windows binary
2814 - Fixed Windows binary to execute command using cmd.exe with no parsing and
2815 escaping (#1072)
2816 - Added support for `window` layout on Vim 8 using Vim 8 terminal (#1055)
2817
2818 0.17.0-2
2819 --------
2820
2821 A maintenance release for auxiliary scripts. fzf binaries are not updated.
2822
2823 - Experimental support for the builtin terminal of Vim 8
2824 - fzf can now run inside GVim
2825 - Updated Vim plugin to better handle `&shell` issue on fish
2826 - Fixed a bug of fzf-tmux where invalid output is generated
2827 - Fixed fzf-tmux to work even when `tput` does not work
2828
2829 0.17.0
2830 ------
2831 - Performance optimization
2832 - One can match literal spaces in extended-search mode with a space prepended
2833 by a backslash.
2834 - `--expect` is now additive and can be specified multiple times.
2835
2836 0.16.11
2837 -------
2838 - Performance optimization
2839 - Fixed missing preview update
2840
2841 0.16.10
2842 -------
2843 - Fixed invalid handling of ANSI colors in preview window
2844 - Further improved `--ansi` performance
2845
2846 0.16.9
2847 ------
2848 - Memory and performance optimization
2849 - Around 20% performance improvement for general use cases
2850 - Up to 5x faster processing of `--ansi`
2851 - Up to 50% reduction of memory usage
2852 - Bug fixes and usability improvements
2853 - Fixed handling of bracketed paste mode
2854 - [ERROR] on info line when the default command failed
2855 - More efficient rendering of preview window
2856 - `--no-clear` updated for repetitive relaunching scenarios
2857
2858 0.16.8
2859 ------
2860 - New `change` event and `top` action for `--bind`
2861 - `fzf --bind change:top`
2862 - Move cursor to the top result whenever the query string is changed
2863 - `fzf --bind 'ctrl-w:unix-word-rubout+top,ctrl-u:unix-line-discard+top'`
2864 - `top` combined with `unix-word-rubout` and `unix-line-discard`
2865 - Fixed inconsistent tiebreak scores when `--nth` is used
2866 - Proper display of tab characters in `--prompt`
2867 - Fixed not to `--cycle` on page-up/page-down to prevent overshoot
2868 - Git revision in `--version` output
2869 - Basic support for Cygwin environment
2870 - Many fixes in Vim plugin on Windows/Cygwin (thanks to @janlazo)
2871
2872 0.16.7
2873 ------
2874 - Added support for `ctrl-alt-[a-z]` key chords
2875 - CTRL-Z (SIGSTOP) now works with fzf
2876 - fzf will export `$FZF_PREVIEW_WINDOW` so that the scripts can use it
2877 - Bug fixes and improvements in Vim plugin and shell extensions
2878
2879 0.16.6
2880 ------
2881 - Minor bug fixes and improvements
2882 - Added `--no-clear` option for scripting purposes
2883
2884 0.16.5
2885 ------
2886 - Minor bug fixes
2887 - Added `toggle-preview-wrap` action
2888 - Built with Go 1.8
2889
2890 0.16.4
2891 ------
2892 - Added `--border` option to draw border above and below the finder
2893 - Bug fixes and improvements
2894
2895 0.16.3
2896 ------
2897 - Fixed a bug where fzf incorrectly display the lines when straddling tab
2898 characters are trimmed
2899 - Placeholder expression used in `--preview` and `execute` action can
2900 optionally take `+` flag to be used with multiple selections
2901 - e.g. `git log --oneline | fzf --multi --preview 'git show {+1}'`
2902 - Added `execute-silent` action for executing a command silently without
2903 switching to the alternate screen. This is useful when the process is
2904 short-lived and you're not interested in its output.
2905 - e.g. `fzf --bind 'ctrl-y:execute!(echo -n {} | pbcopy)'`
2906 - `ctrl-space` is allowed in `--bind`
2907
2908 0.16.2
2909 ------
2910 - Dropped ncurses dependency
2911 - Binaries for freebsd, openbsd, arm5, arm6, arm7, and arm8
2912 - Official 24-bit color support
2913 - Added support for composite actions in `--bind`. Multiple actions can be
2914 chained using `+` separator.
2915 - e.g. `fzf --bind 'ctrl-y:execute(echo -n {} | pbcopy)+abort'`
2916 - `--preview-window` with size 0 is allowed. This is used to make fzf execute
2917 preview command in the background without displaying the result.
2918 - Minor bug fixes and improvements
2919
2920 0.16.1
2921 ------
2922 - Fixed `--height` option to properly fill the window with the background
2923 color
2924 - Added `half-page-up` and `half-page-down` actions
2925 - Added `-L` flag to the default find command
2926
2927 0.16.0
2928 ------
2929 - *Added `--height HEIGHT[%]` option*
2930 - fzf can now display finder without occupying the full screen
2931 - Preview window will truncate long lines by default. Line wrap can be enabled
2932 by `:wrap` flag in `--preview-window`.
2933 - Latin script letters will be normalized before matching so that it's easier
2934 to match against accented letters. e.g. `sodanco` can match `Só Danço Samba`.
2935 - Normalization can be disabled via `--literal`
2936 - Added `--filepath-word` to make word-wise movements/actions (`alt-b`,
2937 `alt-f`, `alt-bs`, `alt-d`) respect path separators
2938
2939 0.15.9
2940 ------
2941 - Fixed rendering glitches introduced in 0.15.8
2942 - The default escape delay is reduced to 50ms and is configurable via
2943 `$ESCDELAY`
2944 - Scroll indicator at the top-right corner of the preview window is always
2945 displayed when there's overflow
2946 - Can now be built with ncurses 6 or tcell to support extra features
2947 - *ncurses 6*
2948 - Supports more than 256 color pairs
2949 - Supports italics
2950 - *tcell*
2951 - 24-bit color support
2952 - See https://github.com/junegunn/fzf/blob/master/BUILD.md
2953
2954 0.15.8
2955 ------
2956 - Updated ANSI processor to handle more VT-100 escape sequences
2957 - Added `--no-bold` (and `--bold`) option
2958 - Improved escape sequence processing for WSL
2959 - Added support for `alt-[0-9]`, `f11`, and `f12` for `--bind` and `--expect`
2960
2961 0.15.7
2962 ------
2963 - Fixed panic when color is disabled and header lines contain ANSI colors
2964
2965 0.15.6
2966 ------
2967 - Windows binaries! (@kelleyma49)
2968 - Fixed the bug where header lines are cleared when preview window is toggled
2969 - Fixed not to display ^N and ^O on screen
2970 - Fixed cursor keys (or any key sequence that starts with ESC) on WSL by
2971 making fzf wait for additional keystrokes after ESC for up to 100ms
2972
2973 0.15.5
2974 ------
2975 - Setting foreground color will no longer set background color to black
2976 - e.g. `fzf --color fg:153`
2977 - `--tiebreak=end` will consider relative position instead of absolute distance
2978 - Updated `fzf#wrap` function to respect `g:fzf_colors`
2979
2980 0.15.4
2981 ------
2982 - Added support for range expression in preview and execute action
2983 - e.g. `ls -l | fzf --preview="echo user={3} when={-4..-2}; cat {-1}" --header-lines=1`
2984 - `{q}` will be replaced to the single-quoted string of the current query
2985 - Fixed to properly handle unicode whitespace characters
2986 - Display scroll indicator in preview window
2987 - Inverse search term will use exact matcher by default
2988 - This is a breaking change, but I believe it makes much more sense. It is
2989 almost impossible to predict which entries will be filtered out due to
2990 a fuzzy inverse term. You can still perform inverse-fuzzy-match by
2991 prepending `!'` to the term.
2992
2993 0.15.3
2994 ------
2995 - Added support for more ANSI attributes: dim, underline, blink, and reverse
2996 - Fixed race condition in `toggle-preview`
2997
2998 0.15.2
2999 ------
3000 - Preview window is now scrollable
3001 - With mouse scroll or with bindable actions
3002 - `preview-up`
3003 - `preview-down`
3004 - `preview-page-up`
3005 - `preview-page-down`
3006 - Updated ANSI processor to support high intensity colors and ignore
3007 some VT100-related escape sequences
3008
3009 0.15.1
3010 ------
3011 - Fixed panic when the pattern occurs after 2^15-th column
3012 - Fixed rendering delay when displaying extremely long lines
3013
3014 0.15.0
3015 ------
3016 - Improved fuzzy search algorithm
3017 - Added `--algo=[v1|v2]` option so one can still choose the old algorithm
3018 which values the search performance over the quality of the result
3019 - Advanced scoring criteria
3020 - `--read0` to read input delimited by ASCII NUL character
3021 - `--print0` to print output delimited by ASCII NUL character
3022
3023 0.13.5
3024 ------
3025 - Memory and performance optimization
3026 - Up to 2x performance with half the amount of memory
3027
3028 0.13.4
3029 ------
3030 - Performance optimization
3031 - Memory footprint for ascii string is reduced by 60%
3032 - 15 to 20% improvement of query performance
3033 - Up to 45% better performance of `--nth` with non-regex delimiters
3034 - Fixed invalid handling of `hidden` property of `--preview-window`
3035
3036 0.13.3
3037 ------
3038 - Fixed duplicate rendering of the last line in preview window
3039
3040 0.13.2
3041 ------
3042 - Fixed race condition where preview window is not properly cleared
3043
3044 0.13.1
3045 ------
3046 - Fixed UI issue with large `--preview` output with many ANSI codes
3047
3048 0.13.0
3049 ------
3050 - Added preview feature
3051 - `--preview CMD`
3052 - `--preview-window POS[:SIZE][:hidden]`
3053 - `{}` in execute action is now replaced to the single-quoted (instead of
3054 double-quoted) string of the current line
3055 - Fixed to ignore control characters for bracketed paste mode
3056
3057 0.12.2
3058 ------
3059
3060 - 256-color capability detection does not require `256` in `$TERM`
3061 - Added `print-query` action
3062 - More named keys for binding; <kbd>F1</kbd> ~ <kbd>F10</kbd>,
3063 <kbd>ALT-/</kbd>, <kbd>ALT-space</kbd>, and <kbd>ALT-enter</kbd>
3064 - Added `jump` and `jump-accept` actions that implement [EasyMotion][em]-like
3065 movement
3066 ![][jump]
3067
3068 [em]: https://github.com/easymotion/vim-easymotion
3069 [jump]: https://cloud.githubusercontent.com/assets/700826/15367574/b3999dc4-1d64-11e6-85da-28ceeb1a9bc2.png
3070
3071 0.12.1
3072 ------
3073
3074 - Ranking algorithm introduced in 0.12.0 is now universally applied
3075 - Fixed invalid cache reference in exact mode
3076 - Fixes and improvements in Vim plugin and shell extensions
3077
3078 0.12.0
3079 ------
3080
3081 - Enhanced ranking algorithm
3082 - Minor bug fixes
3083
3084 0.11.4
3085 ------
3086
3087 - Added `--hscroll-off=COL` option (default: 10) (#513)
3088 - Some fixes in Vim plugin and shell extensions
3089
3090 0.11.3
3091 ------
3092
3093 - Graceful exit on SIGTERM (#482)
3094 - `$SHELL` instead of `sh` for `execute` action and `$FZF_DEFAULT_COMMAND` (#481)
3095 - Changes in fuzzy completion API
3096 - [`_fzf_compgen_{path,dir}`](https://github.com/junegunn/fzf/commit/9617647)
3097 - [`_fzf_complete_COMMAND_post`](https://github.com/junegunn/fzf/commit/8206746)
3098 for post-processing
3099
3100 0.11.2
3101 ------
3102
3103 - `--tiebreak` now accepts comma-separated list of sort criteria
3104 - Each criterion should appear only once in the list
3105 - `index` is only allowed at the end of the list
3106 - `index` is implicitly appended to the list when not specified
3107 - Default is `length` (or equivalently `length,index`)
3108 - `begin` criterion will ignore leading whitespaces when calculating the index
3109 - Added `toggle-in` and `toggle-out` actions
3110 - Switch direction depending on `--reverse`-ness
3111 - `export FZF_DEFAULT_OPTS="--bind tab:toggle-out,shift-tab:toggle-in"`
3112 - Reduced the initial delay when `--tac` is not given
3113 - fzf defers the initial rendering of the screen up to 100ms if the input
3114 stream is ongoing to prevent unnecessary redraw during the initial
3115 phase. However, 100ms delay is quite noticeable and might give the
3116 impression that fzf is not snappy enough. This commit reduces the
3117 maximum delay down to 20ms when `--tac` is not specified, in which case
3118 the input list quickly fills the entire screen.
3119
3120 0.11.1
3121 ------
3122
3123 - Added `--tabstop=SPACES` option
3124
3125 0.11.0
3126 ------
3127
3128 - Added OR operator for extended-search mode
3129 - Added `--execute-multi` action
3130 - Fixed incorrect cursor position when unicode wide characters are used in
3131 `--prompt`
3132 - Fixes and improvements in shell extensions
3133
3134 0.10.9
3135 ------
3136
3137 - Extended-search mode is now enabled by default
3138 - `--extended-exact` is deprecated and instead we have `--exact` for
3139 orthogonally controlling "exactness" of search
3140 - Fixed not to display non-printable characters
3141 - Added `double-click` for `--bind` option
3142 - More robust handling of SIGWINCH
3143
3144 0.10.8
3145 ------
3146
3147 - Fixed panic when trying to set colors after colors are disabled (#370)
3148
3149 0.10.7
3150 ------
3151
3152 - Fixed unserialized interrupt handling during execute action which often
3153 caused invalid memory access and crash
3154 - Changed `--tiebreak=length` (default) to use trimmed length when `--nth` is
3155 used
3156
3157 0.10.6
3158 ------
3159
3160 - Replaced `--header-file` with `--header` option
3161 - `--header` and `--header-lines` can be used together
3162 - Changed exit status
3163 - 0: Okay
3164 - 1: No match
3165 - 2: Error
3166 - 130: Interrupted
3167 - 64-bit linux binary is statically-linked with ncurses to avoid
3168 compatibility issues.
3169
3170 0.10.5
3171 ------
3172
3173 - `'`-prefix to unquote the term in `--extended-exact` mode
3174 - Backward scan when `--tiebreak=end` is set
3175
3176 0.10.4
3177 ------
3178
3179 - Fixed to remove ANSI code from output when `--with-nth` is set
3180
3181 0.10.3
3182 ------
3183
3184 - Fixed slow performance of `--with-nth` when used with `--delimiter`
3185 - Regular expression engine of Golang as of now is very slow, so the fixed
3186 version will treat the given delimiter pattern as a plain string instead
3187 of a regular expression unless it contains special characters and is
3188 a valid regular expression.
3189 - Simpler regular expression for delimiter for better performance
3190
3191 0.10.2
3192 ------
3193
3194 ### Fixes and improvements
3195
3196 - Improvement in perceived response time of queries
3197 - Eager, efficient rune array conversion
3198 - Graceful exit when failed to initialize ncurses (invalid $TERM)
3199 - Improved ranking algorithm when `--nth` option is set
3200 - Changed the default command not to fail when there are files whose names
3201 start with dash
3202
3203 0.10.1
3204 ------
3205
3206 ### New features
3207
3208 - Added `--margin` option
3209 - Added options for sticky header
3210 - `--header-file`
3211 - `--header-lines`
3212 - Added `cancel` action which clears the input or closes the finder when the
3213 input is already empty
3214 - e.g. `export FZF_DEFAULT_OPTS="--bind esc:cancel"`
3215 - Added `delete-char/eof` action to differentiate `CTRL-D` and `DEL`
3216
3217 ### Minor improvements/fixes
3218
3219 - Fixed to allow binding colon and comma keys
3220 - Fixed ANSI processor to handle color regions spanning multiple lines
3221
3222 0.10.0
3223 ------
3224
3225 ### New features
3226
3227 - More actions for `--bind`
3228 - `select-all`
3229 - `deselect-all`
3230 - `toggle-all`
3231 - `ignore`
3232 - `execute(...)` action for running arbitrary command without leaving fzf
3233 - `fzf --bind "ctrl-m:execute(less {})"`
3234 - `fzf --bind "ctrl-t:execute(tmux new-window -d 'vim {}')"`
3235 - If the command contains parentheses, use any of the follows alternative
3236 notations to avoid parse errors
3237 - `execute[...]`
3238 - `execute~...~`
3239 - `execute!...!`
3240 - `execute@...@`
3241 - `execute#...#`
3242 - `execute$...$`
3243 - `execute%...%`
3244 - `execute^...^`
3245 - `execute&...&`
3246 - `execute*...*`
3247 - `execute;...;`
3248 - `execute/.../`
3249 - `execute|...|`
3250 - `execute:...`
3251 - This is the special form that frees you from parse errors as it
3252 does not expect the closing character
3253 - The catch is that it should be the last one in the
3254 comma-separated list
3255 - Added support for optional search history
3256 - `--history HISTORY_FILE`
3257 - When used, `CTRL-N` and `CTRL-P` are automatically remapped to
3258 `next-history` and `previous-history`
3259 - `--history-size MAX_ENTRIES` (default: 1000)
3260 - Cyclic scrolling can be enabled with `--cycle`
3261 - Fixed the bug where the spinner was not spinning on idle input stream
3262 - e.g. `sleep 100 | fzf`
3263
3264 ### Minor improvements/fixes
3265
3266 - Added synonyms for key names that can be specified for `--bind`,
3267 `--toggle-sort`, and `--expect`
3268 - Fixed the color of multi-select marker on the current line
3269 - Fixed to allow `^pattern$` in extended-search mode
3270
3271
3272 0.9.13
3273 ------
3274
3275 ### New features
3276
3277 - Color customization with the extended `--color` option
3278
3279 ### Bug fixes
3280
3281 - Fixed premature termination of Reader in the presence of a long line which
3282 is longer than 64KB
3283
3284 0.9.12
3285 ------
3286
3287 ### New features
3288
3289 - Added `--bind` option for custom key bindings
3290
3291 ### Bug fixes
3292
3293 - Fixed to update "inline-info" immediately after terminal resize
3294 - Fixed ANSI code offset calculation
3295
3296 0.9.11
3297 ------
3298
3299 ### New features
3300
3301 - Added `--inline-info` option for saving screen estate (#202)
3302 - Useful inside Neovim
3303 - e.g. `let $FZF_DEFAULT_OPTS = $FZF_DEFAULT_OPTS.' --inline-info'`
3304
3305 ### Bug fixes
3306
3307 - Invalid mutation of input on case conversion (#209)
3308 - Smart-case for each term in extended-search mode (#208)
3309 - Fixed double-click result when scroll offset is positive
3310
3311 0.9.10
3312 ------
3313
3314 ### Improvements
3315
3316 - Performance optimization
3317 - Less aggressive memoization to limit memory usage
3318
3319 ### New features
3320
3321 - Added color scheme for light background: `--color=light`
3322
3323 0.9.9
3324 -----
3325
3326 ### New features
3327
3328 - Added `--tiebreak` option (#191)
3329 - Added `--no-hscroll` option (#193)
3330 - Visual indication of `--toggle-sort` (#194)
3331
3332 0.9.8
3333 -----
3334
3335 ### Bug fixes
3336
3337 - Fixed Unicode case handling (#186)
3338 - Fixed to terminate on RuneError (#185)
3339
3340 0.9.7
3341 -----
3342
3343 ### New features
3344
3345 - Added `--toggle-sort` option (#173)
3346 - `--toggle-sort=ctrl-r` is applied to `CTRL-R` shell extension
3347
3348 ### Bug fixes
3349
3350 - Fixed to print empty line if `--expect` is set and fzf is completed by
3351 `--select-1` or `--exit-0` (#172)
3352 - Fixed to allow comma character as an argument to `--expect` option
3353
3354 0.9.6
3355 -----
3356
3357 ### New features
3358
3359 #### Added `--expect` option (#163)
3360
3361 If you provide a comma-separated list of keys with `--expect` option, fzf will
3362 allow you to select the match and complete the finder when any of the keys is
3363 pressed. Additionally, fzf will print the name of the key pressed as the first
3364 line of the output so that your script can decide what to do next based on the
3365 information.
3366
3367 ```sh
3368 fzf --expect=ctrl-v,ctrl-t,alt-s,f1,f2,~,@
3369 ```
3370
3371 The updated vim plugin uses this option to implement
3372 [ctrlp](https://github.com/kien/ctrlp.vim)-compatible key bindings.
3373
3374 ### Bug fixes
3375
3376 - Fixed to ignore ANSI escape code `\e[K` (#162)
3377
3378 0.9.5
3379 -----
3380
3381 ### New features
3382
3383 #### Added `--ansi` option (#150)
3384
3385 If you give `--ansi` option to fzf, fzf will interpret ANSI color codes from
3386 the input, display the item with the ANSI colors (true colors are not
3387 supported), and strips the codes from the output. This option is off by
3388 default as it entails some overhead.
3389
3390 ### Improvements
3391
3392 #### Reduced initial memory footprint (#151)
3393
3394 By removing unnecessary copy of pointers, fzf will use significantly smaller
3395 amount of memory when it's started. The difference is hugely noticeable when
3396 the input is extremely large. (e.g. `locate / | fzf`)
3397
3398 ### Bug fixes
3399
3400 - Fixed panic on `--no-sort --filter ''` (#149)
3401
3402 0.9.4
3403 -----
3404
3405 ### New features
3406
3407 #### Added `--tac` option to reverse the order of the input.
3408
3409 One might argue that this option is unnecessary since we can already put `tac`
3410 or `tail -r` in the command pipeline to achieve the same result. However, the
3411 advantage of `--tac` is that it does not block until the input is complete.
3412
3413 ### *Backward incompatible changes*
3414
3415 #### Changed behavior on `--no-sort`
3416
3417 `--no-sort` option will no longer reverse the display order within finder. You
3418 may want to use the new `--tac` option with `--no-sort`.
3419
3420 ```
3421 history | fzf +s --tac
3422 ```
3423
3424 ### Improvements
3425
3426 #### `--filter` will not block when sort is disabled
3427
3428 When fzf works in filtering mode (`--filter`) and sort is disabled
3429 (`--no-sort`), there's no need to block until input is complete. The new
3430 version of fzf will print the matches on-the-fly when the following condition
3431 is met:
3432
3433 --filter TERM --no-sort [--no-tac --no-sync]
3434
3435 or simply:
3436
3437 -f TERM +s
3438
3439 This change removes unnecessary delay in the use cases like the following:
3440
3441 fzf -f xxx +s | head -5
3442
3443 However, in this case, fzf processes the lines sequentially, so it cannot
3444 utilize multiple cores, and fzf will run slightly slower than the previous
3445 mode of execution where filtering is done in parallel after the entire input
3446 is loaded. If the user is concerned about this performance problem, one can
3447 add `--sync` option to re-enable buffering.
3448
3449 0.9.3
3450 -----
3451
3452 ### New features
3453 - Added `--sync` option for multi-staged filtering
3454
3455 ### Improvements
3456 - `--select-1` and `--exit-0` will start finder immediately when the condition
3457 cannot be met