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

FR: Facilitate dump-screen to stdout #3369

Open
n8henrie opened this issue May 22, 2024 · 0 comments
Open

FR: Facilitate dump-screen to stdout #3369

n8henrie opened this issue May 22, 2024 · 0 comments

Comments

@n8henrie
Copy link

Thanks for your work on zellij -- it's been fun and interesting learning to adapt my workflows!

I wanted to request the ability to dump-screen to stdout. At least on MacOS I can't find a simple way to do this:

$ zellij action dump-screen /tmp/foo.txt; head -n 1 /tmp/foo.txt
n8henrie@NatePro:~/git/espanso(no-cache)$ zellij action dump-screen /tmp/foo.txt; head -n 1 /tmp/foo.txt
$
$ zellij action dump-screen /dev/stdout
$

This would make it much easier to script actions that depend on output that hadn't necessarily been anticipated or intentionally captured to a variable, but has a predictable pattern (for me this is often unexpected build failures for nix builds, which end in something like for access to the full logs, run 'nix log /nix/store/asdfasfoiwjef-foo/woeifjoxidfjj-bar', where the /nix/store path is not predictable; being able to dump screen output to stdout would allow me to sed/grep/awk my way to running that nix log without having to manually copy and paste the exact path).

Thanks for considering!

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

1 participant