Replies: 1 comment 3 replies
-
Hi Joshua, I don't know how to stop it from erasing scrollback when the window opens up, but you could try making the window open down. Then I think your problem will be solved. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I press ctrl-r, ctrl-alt-f, etc to bring up an fzf search window to search for command-line history or files, the existing content in the console gets scrolled up to make space for the fzf search window. When the search window is closed, the terminal is not back to its original state; it is in a state where the original terminal content has been scrolled up by a number of lines equal to the height of the search window.
This recording demonstrates what I mean: https://asciinema.org/a/SkSAJ2LdhNElpnTz5Aoj17KlU
Is there a way to configure fzf.fish so that the terminal state is preserved across uses of the search window? It is disruptive to lose sight of my earlier terminal history (e.g. command-lines I ran earlier) so that I have to scroll up to see them.
fzf itself, if you run it from the command-line, preserves the terminal content.
I know I could hack/configure fzf.fish to use fzf-tmux instead of fzf to achieve this effect when I am already in a tmux. But what if I'm not in a tmux?
Beta Was this translation helpful? Give feedback.
All reactions