-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Merge fish history before showing history widget #3851
Comments
Sounds good. Are you interested in opening a pull request? |
Yeah sounds good. I should have time for it this week. |
Actually it's not a lot of work, so I just created the PR now. |
Would you entertain a PR to make this configurable? This is leading to lots of confusion for me, I typically have dozens of sessions open and I expect that when I arrow up in one of them, or search, I get the most recent for that session unless I've explicitly merged history. It's especially pernicious when the command is super long and one arg is just slightly different, I'll end up breezing past it. |
Looks like you can set |
I thought so at first, but that variable will cause zero history to be
written. I still want my history, I just don’t want it merged with every
fzf invocation.
…On Fri, Oct 25, 2024 at 5:35 PM Junegunn Choi ***@***.***> wrote:
Looks like you can set $fish_private_mode. See
https://github.com/junegunn/fzf/pull/3852/files
—
Reply to this email directly, view it on GitHub
<#3851 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFBX4TZZX5FLI2HT5QI4PDZ5LPSVAVCNFSM6AAAAABJCNKXRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGA4DINBUGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Checklist
man fzf
)Output of
fzf --version
0.52.1
OS
Shell
Problem / Steps to reproduce
In this function: https://github.com/junegunn/fzf/blob/master/shell/key-bindings.fish#L59-L86 we're currently only showing the changes from the current session. If we call
history merge
beforehand commands from other sessions will be available as well.Docs on
history merge
:from: https://fishshell.com/docs/current/cmds/history.html
We could do it similar to this widely used plugin: PatrickF1/fzf.fish, which also incorporates a check for private mode.
The text was updated successfully, but these errors were encountered: