wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.8k stars 754 forks source link

Implement sticky command feature? #5053

Open clamydo opened 7 months ago

clamydo commented 7 months ago

Is your feature request related to a problem? Please describe. When scrolling to long outputs of a commands I sometimes loose track if I have scrolled pass a second command. Think multiple runs of cargo build - "hmm, am I in the output of the last execution or one of the many previous ones?"

Describe the solution you'd like A possible aid could be to let the command 'stick around' on top of the scrollback, similar to the VSCode Terminal (see https://code.visualstudio.com/docs/terminal/shell-integration#_sticky-scroll). Like a sticky header that is decoupled from the rest of the output.

Is something like that feasible?

Describe alternatives you've considered Shell integration via OSC 133 actually helps quite a lot, aka ScrollToPrompt().

Additional context Add any other context or screenshots about the feature request here.

wadjoh commented 2 months ago

iTerm2 just recently added this and their implementation seems to work well for me. Clicking the sticky command will jump the window up to that command.

Relevant Release Notes:

  • If you use shell integration and the output of a command goes past the top of the screen, the command will be shown at the top.