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

shows all the vim scroll history when switching tab #333

Open
hronro opened this issue Jan 24, 2021 · 3 comments
Open

shows all the vim scroll history when switching tab #333

hronro opened this issue Jan 24, 2021 · 3 comments
Milestone

Comments

@hronro
Copy link

hronro commented Jan 24, 2021

When switch to a tab which uses vim, it will shows all the vim scroll history in that tab.
This is pretty annoying especially when use vim for a long time.

@thewithz
Copy link

This happens to me fairly often.

@austinjones
Copy link
Owner

austinjones commented Jan 27, 2021

Yeah, I agree. I've been thinking about some algorithms that would trim down the scrollback buffer. But a few things I have tried in the past weren't fast enough. What makes it a challenge is that data from the beginning of a session may be necessary to reconstruct it. Apps set up a lot of terminal state on startup. To actually trim down the size, it's necessary to remove content from the middle of the buffer (and only after new content arrives that makes that past content unnecessary).

So I've been thinking that tab would separate the scrollback history into 'layers', which could be independently pruned. There would be a layer for stdout, and a layer for common types of terminal state. It should be very fast to update/prune, and fast enough to reconstruct when a session is reconnected.

And it should be compatible with 'unknown' ANSI codes, as those would be still echoed.

@austinjones austinjones added this to the 0.6.0 milestone Jan 30, 2021
@nothingnesses
Copy link
Contributor

This issue seems to be related to another issue that causes my alacritty terminal to crash when I've been editing files on it with kakoune for a while and I switch back to that tab.

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

4 participants