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
Additional context
Add any other context about the problem here.
I'm trying to use add-zsh-hook -Uz chpwd (){ zellij pipe "zjstatus::rerun::command_git_branch"; } to update the branch name when I change directories, but it seems to not work to rerun the command manually either.
Thanks for investigating!
The text was updated successfully, but these errors were encountered:
Unfortunately, I cannot really do much about this issue. Zellij is executing the plugin commands within the directory, in which the zellij session was started. Thus we cannot change directory for the running command, even on a refresh.
Let me check in the next days, if there's a way to extract the CWD of the currently focused pane. If so, we could add a switch for command widgets to follow the focus with the CWD.
I've took a look at the documentation. We're able to get the focused pane, but not the cwd :/ therefore I cannot implement this behavior.
As the current behavior is the default one of zellij, I would not consider it a bug, but more as a feature request. I hope this is fine for you.
I'll ask on the zellij side, if we can add some APIs, such that these things will be possible. But I'm not sure, if it's feasible, as retrieving the CWD could differ from the shell and command that's running in the pane.
Describe the bug
zellij pipe "zjstatus::rerun::command_git_branch"
doesn't appear to work as expected.To Reproduce
zellij pipe "zjstatus::rerun::command_git_branch"
Expected behavior
pipe command should rerun the branch command and update the displayed branch name
Desktop (please complete the following information):
Layout
How does the layout look like? Please copy it into a code block.
Additional context
Add any other context about the problem here.
I'm trying to use
add-zsh-hook -Uz chpwd (){ zellij pipe "zjstatus::rerun::command_git_branch"; }
to update the branch name when I change directories, but it seems to not work to rerun the command manually either.Thanks for investigating!
The text was updated successfully, but these errors were encountered: