You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue report is similar to a comment on another issue: #35 (comment)
When SHARE_HISTORY is enabled and two terminals are open, running echo Test1 in Terminal A and fc -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 use ctrl-r (z4h-fzf-history), the command from Terminal A won't appear in the z4h-fzf-history list until a dummy command is run in Terminal B.
Adding fc -RI before $history is called in z4h-fzf-history would allow the command from Terminal A to appear after simply pressing Enter in Terminal B without executing a command. Do you agree with this approach?
--- a/fn/z4h-fzf-history+++ b/fn/z4h-fzf-history@@ -131,4 +131,5 @@ local preview='printf "%s" {} | command cut -f2- -d'$'\1'
unsetopt pipe_fail
{
+ [[ "${options[sharehistory]}" == "on" ]] && fc -RI
# This `noglob` is a workaround for a bug in zsh that can be
# triggered by certain corrupted history files.
This issue report is similar to a comment on another issue: #35 (comment)
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
The text was updated successfully, but these errors were encountered: