zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Pipe / Redirect output to other panes

Open imsnif opened this issue 2 years ago • 6 comments

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

imsnif avatar May 10 '22 12:05 imsnif

This would be awesome!

jwbowen avatar Sep 22 '22 17:09 jwbowen

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.

zorzysty avatar Mar 10 '23 20:03 zorzysty

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.

Peek 2023-08-13 18-19

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.

Dom324 avatar Aug 13 '23 14:08 Dom324

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?

llogiq avatar Nov 25 '23 16:11 llogiq

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.

imsnif avatar Nov 25 '23 17:11 imsnif