-
-
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
ctrl+r no longer pulling from shared history until a command is run succesfully #4061
Comments
Your assessment is correct. The issue came with #3823; the problem is with the associative Lines 113 to 122 in 3c40b1b
Workaround A: Modifies the sourcing by disabling the source <(fzf --zsh | sed '/zmodload/s/perl/perl_off/') Workaround B: Prepend source <(fzf --zsh | sed '/history\[@\]/s/^/fc -RI; /') It is unfortunate that In the meantime, you could share your enabled options by running the command below. unsetopt KSH_OPTION_PRINT
print -r -- $(setopt) And verify if the proposed workarounds give you back your previous experience. Enabling tracing for the # Verbose execution trace prompt (default: '+%N:%i> ')
PS4=$'\n%B%F{0}+ %D{%T:%3.} %2N:%I%f%b '
typeset -fT fzf-history-widget
# press ctrl-r |
Checklist
man fzf
)Output of
fzf --version
0.55.0 (brew)
OS
Shell
Problem / Steps to reproduce
This is very similar to #1649, except
fc -rl 1
is behaving as expectedI have 2 terminals, I'm using zsh with
setopt share_history
. Outside of fzf, it works fine, if I go to a second terminal and type in a command, it is available on my first terminal after hitting a newline. However history is not being shared with fzf triggered via control+R until a command is run sucessfully.fc -rl 1
orecho
and use control+r to observe that now the input from terminal 2 is presentThis feels like a regression, I feel it used to either get updated without having to invoke a command first (but I could be mistaken)
The text was updated successfully, but these errors were encountered: