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

DumpScreen dumps current screen only, not full scrollback #3093

Open
damanis opened this issue Jan 28, 2024 · 2 comments
Open

DumpScreen dumps current screen only, not full scrollback #3093

damanis opened this issue Jan 28, 2024 · 2 comments

Comments

@damanis
Copy link

damanis commented Jan 28, 2024

Basic information

zellij --version: 0.39.2

uname -av: 5.15.0-91-generic #101~20.04.1-Ubuntu SMP Thu Nov 16 14:22:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Reproduction steps:

  • Add to scroll section of config.kdl:
scroll {
    ...
    bind "a" { DumpScreen "/tmp/my-dump.txt"; }
}
  • Run zellij
  • ls -1R /etc
  • Press Ctrl-s (switch to mode scroll), then a

Issue description

The scrollback has all ls -1R /etc output, but the file /tmp/my-dump.txt includes only lines from current screen. According documentation it should has all scrollback lines:

Dump the contents of the focused pane, including its entire scrollback, to the specified file.

EditScrollback puts all output to editor, but it blocks terminal. The goal is get entire output to editor.

@jalbertcruz
Copy link

In the version 0.40 this bug continues.

@Jesse-Millwood
Copy link

From this merged pull request: https://github.com/zellij-org/zellij/pull/1794/files

It looks like you need to provide an additional argument to indicate the full scroll back. I ran into this because I was using the cli action interface and have to do zellij action dump-screen --full ~/path/to/log.txt

I wonder if there is an optional argument now for DumpScreen that doesn't show in the docs kind of like how LaunchOrFocusPlugin has optional options?

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

No branches or pull requests

3 participants