-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Feature: Make current zellij scrollback accessible #1448
Comments
Well it's a start, for sure. I assume that it will involve pressing some arcane keybinding to perform the dump, right? I think it's not as elegant as dumping to stdout, but it will work of course. |
When I think about it, I personally prefer your proposal over some keybindings. As an added benefit, we can dump it to file very easily from a shell and even in the current working directory. :) |
Anything that is bound to a key, is one or more actions. |
I really like this idea. I agree with @a-kenji that it should be implemented as an action, but I think there's a bit more context here (eg. knowing which is the focused pane) as well as being able to do this in a convenient way. In another issue (#1402) I suggested implementing a |
The actions do know which is the focused pane. I think adding something like |
I hear what you're saying, but I think in this case that won't necessarily be the correct behavior. Eg. If I do:
Then change focus, it will give me the scrollback of another pane, which is not what I want. |
Interesting use case... Would environment variables suffice? I mean panes are numbered, and so are tabs (at least from my user perspective). I think the env vars could also be used in scripting. If I have a fixed layout, I could write myself an alias to grab the last 100 lines of scrollback from tab |
Can't we just try to use the tty special file? This should be uniquely identifying and is hard to mess with: |
We could, but I think a much more trivial implementation would be to provide context to the command. We already know what pane is focused in our internal state. |
Maybe I am misunderstanding, but the original problem was that a |
@a-kenji wouldn't we still have the same problem there though with the sleep example? The specific client is focused elsewhere once this command happens. Honestly, I was just thinking of doing something along the lines of providing environment variables with relevant context (eg. EDIT: and now reading up I see this is what @har7an suggested :) |
Not necessarily, since they could be independent from each other. That being said have something like |
I don't understand what you mean here... |
Hi,
I think it would be very handy if the current panes scrollback buffer could be made accessible via some command (i.e. from within the pane). I could image this to be used in such a manner that you can call a command, call it
zellij scrollback
for now, and it outputs your whole scrollback content (i.e. like echo). This would allow the user to::r!zellij scrollback
in vimThis would probably require zellij to be made aware of which tab/pane it is called from, so it can find and output the correct scrollback buffer. Once that is done, maybe an argument such as
--range
would be handy to limit the amount of text from the scrollback that is echoed.Any thoughts on this?
The text was updated successfully, but these errors were encountered: