diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-30 00:50:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 00:50:46 +0900 |
| commit | 6c0ca4a64a4e2f8697dfa830dcae56c1d7ddca51 (patch) | |
| tree | b3cb6eefec8009c815d0ce0a4bea3032f8bc0cf8 /CHANGELOG.md | |
| parent | 6b5d4614114f1a7a34a50c21ed2952f94a5ee81e (diff) | |
| download | fzf-6c0ca4a64a4e2f8697dfa830dcae56c1d7ddca51.tar.gz | |
Add --no-input to hide the input section (#4210)
Close #2890
Close #1396
You can't type in queries in this mode, and the only way to trigger an
fzf search is to use `search(...)` action.
# Click header to trigger search
fzf --header '[src] [test]' --no-input --layout reverse \
--header-border bottom --input-border \
--bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e4d51c75..c4250b42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,13 @@ CHANGELOG ``` - `$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. - `kill` completion for bash and zsh were updated to use this feature +- Added `--no-input` option to completely disable and hide the input section + ```sh + # Click header to trigger search + fzf --header '[src] [test]' --no-input --layout reverse \ + --header-border bottom --input-border \ + --bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}' + ``` - Extended `{q}` placeholder to support ranges. e.g. `{q:1}`, `{q:2..}`, etc. - 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. ```sh |
