-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--no-clear
option does not have desired effect; cannot scroll after exiting; mouse scroll wheel ineffective
#2978
Comments
Work-around attempts1. Run
|
Unfortunately, query=initial
while true; do
query=$(echo "$query" | fzf --sync --bind change:accept --print-query --query "$query" --no-clear | head -1)
[[ -z $query ]] && break
done; tput rmcup However, since the introduction of the # Much simpler and easier to use
query=initial
echo "$query" | fzf --bind 'change:reload:echo {q}' --print-query --query "$query" --disabled |
Thanks for replying. Do you have a solution then that would meet my need, or would that be a new feature request? |
Note also that I'd love a clean rg solution like you have here: https://github.com/junegunn/fzf/blob/master/ADVANCED.md#switching-between-ripgrep-mode-and-fzf-mode, except which searches the filename as well, and allows toggling searching the filename as well via Ctrl + N. |
It's going to be a new feature, but I'm unlikely to add it. Because 1. it's for niche use cases, 2. and fzf opens in two different modes depending on the value of You can limit the scope of search using |
I came across this issue while trying to write a python script that used fzf twice in a row to gather different user input (basically I'm trying to replace all my rofi-based scripts with fzf-based scripts because I don't want to rely on a gui). It turns out that adding |
man fzf
)fzf --version
shows0.33.0 (e03ac31)
Info
Problem / Steps to reproduce
Steps
Run
fzf
with the--no-clear
option. Ex:Press Ctrl + C to exit
fzf
.Actual behavior:
You'll see the content that was being viewed in fzf, but you can no longer scroll up or down in the terminal!--neither with your mouse scroll wheel nor with the PageUp and PageDown keys.
Expected behavior:
The content that was being viewed in fzf should still be visible when you exit
fzf
with the--no-clear
option, and you should still be able to scroll up and down with your mouse scroll wheel and with the PageUp and PageDown keys, just the same as though you had rungit log
orless -RFX some_filename
and then exited! (After runninggit log
orless -X some_filename
and exiting, you can still see the output that was on the screen and you can still scroll).The text was updated successfully, but these errors were encountered: