Skip to content

Sticky scroll for terminal commands #172742

Closed
@nickserv

Description

@nickserv

Quoting @lunasorcery:

imagining a terminal emulator with sticky-scrolling, so if a command's output would push the command itself off the top of the screen, that command gets pinned to the top of the screen instead

This would bring VSCode's existing sticky scroll support to terminals for easier viewing and editing of commands with long outputs.

Suggested implementation

Use shell integration to track commands and render the currently scrolled output's command at the top of the editor in a sticky scroll if it doesn't fit on the screen.

Potential problems

If a command's output is larger than the terminal's buffer, its command may no longer exist. We may need to cache the last command if it's not already accessible by the shell integration.

Prior art

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions