Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe / Redirect output to other panes #1402

Open
imsnif opened this issue May 10, 2022 · 5 comments
Open

Pipe / Redirect output to other panes #1402

imsnif opened this issue May 10, 2022 · 5 comments
Milestone

Comments

@imsnif
Copy link
Member

imsnif commented May 10, 2022

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

@jwbowen
Copy link

jwbowen commented Sep 22, 2022

This would be awesome!

@zorzysty
Copy link

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.

@Dom324
Copy link

Dom324 commented Aug 13, 2023

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.

@llogiq
Copy link

llogiq commented Nov 25, 2023

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?

@imsnif
Copy link
Member Author

imsnif commented Nov 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants