feat(tui): add toggle to follow bash output in collapsed view#10
Closed
feat(tui): add toggle to follow bash output in collapsed view#10
Conversation
goniz
commented
Apr 3, 2026
| const limited = createMemo(() => { | ||
| if (expanded() || !overflow()) return output() | ||
| if (ctx.bashFollowCollapsed()) { | ||
| return ["…", ...lines().slice(-10)].join("\n") |
Owner
Author
There was a problem hiding this comment.
This can be expensive cpu wise when a long and fast-pace output is streaming.
Propose a more efficient impl to stream the tail output
4347909 to
26bb119
Compare
26bb119 to
9f60546
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes anomalyco#14247
Type of change
What does this PR do?
Added a new toggle in the TUI that allows to toggle the Bash collapsed output view between showing the head of the output (default today) and showing the tail -f view of the output.
How did you verify your code works?
Ran some long commands that output and used the toggle to check it works.
Eg
find /Screenshots / recordings
8607D626-CFD5-49A8-9D43-1CC0F4041E6D.Copy.mov
Checklist