Open LangLangBart opened 5 days ago
How does the regular Ctrl-R in zsh behave?
How does the regular Ctrl-R in zsh behave?
pressing Enter
in Terminal B is enough
Is that different from Crtl-R in z4h?
Yes, one has to enter a command so that the $history
array gets updated.
This issue report is similar to a comment on another issue: https://github.com/romkatv/zsh4humans/issues/35#issuecomment-658142588
When
SHARE_HISTORY
is enabled and two terminals are open, runningecho Test1
in Terminal A andfc -rl -1
in Terminal B results in the following output:If you repeat the test but instead of running
fc -rl -1
in Terminal B, you usectrl-r
(z4h-fzf-history
), the command from Terminal A won't appear in thez4h-fzf-history
list until a dummy command is run in Terminal B.Adding
fc -RI
before$history
is called inz4h-fzf-history
would allow the command from Terminal A to appear after simply pressingEnter
in Terminal B without executing a command. Do you agree with this approach?Related