diff options
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | man/man1/fzf.1 | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 01afb284..deb4ec7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -368,7 +368,7 @@ CHANGELOG (sleep 2; seq 1000) | fzf --height ~50% ``` - Fixed tcell renderer used to render full-screen fzf on Windows -- `--no-clear` is deprecated. Use `reload` action instead. +- ~~`--no-clear` is deprecated. Use `reload` action instead.~~ 0.33.0 ------ diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index 70a90649..e9de4fe1 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -759,6 +759,21 @@ Read input delimited by ASCII NUL characters instead of newline characters .B "--print0" Print output delimited by ASCII NUL characters instead of newline characters .TP +.B "--no-clear" +Do not clear finder interface on exit. If fzf was started in full screen mode, +it will not switch back to the original screen, so you'll have to manually run +\fBtput rmcup\fR to return. This option can be used to avoid flickering of the +screen when your application needs to start fzf multiple times in order. (Note +that in most cases, it is preferable to use \fBreload\fR action instead.) + +e.g. + \fBfoo=$(seq 100 | fzf --no-clear) || ( + # Need to manually switch back to the main screen when cancelled + tput rmcup + exit 1 + ) && seq "$foo" 100 | fzf + +.TP .B "--sync" Synchronous search for multi-staged filtering. If specified, fzf will launch ncurses finder only after the input stream is complete. |