zellij
zellij copied to clipboard
Pipe / Redirect output to other panes
We should allow these sorts of interfaces
tail -f "/path/to/my/log" > zc new-pane
(zc will be an alias, short for zellij command
)
vim my-file.rs | zc new-floating-pane
Basically, allow to both pipe and redirect command output to a new or existing pane.
Depends on: #1265
This would be awesome!
Would it allow achieving similar experience as fzf-tmux -p
?
I have this particular scenario in mind:
Inside pane (A) run a command that opens fzf
in a floating pane (B), then automatically closes pane (B) when fzf is done, but transfers its output back to pane (A).
I know it's only cosmetic, but that's the feature I'm missing the most after moving from tmux to zellij.
Hey @zorzysty , I believe I managed to do what you are describing. Some time ago I looked into fzf-tmux
and tried to create fzf-zellij
. It is probably not fully working, but it works for CTRL+R and kinda also for tab, which was enough for me at the time.
I could share the sources if someone wants, although it will probably require some tweaking to get it working. In my opinion it might be worthwhile to get something like this merged into Zellij/fzf itself, since I think a lot of people use the combination of fzf + zellij.
Question: Would this also allow mirroring a pane to multiple screens? Or is this already available by having multiple terminals attach to a single session?
Question: Would this also allow mirroring a pane to multiple screens? Or is this already available by having multiple terminals attach to a single session?
Right now we can mirror a whole session to another terminal window (and thus another screen) if we start the session with zellij options --mirror-session true
- then attach to it from the different window.
Mirroring a specific pane only (or a specific tab) is a cool idea.