Skip to content

feat(tui): collapse large composer pastes - #167

Open
BrendanChou wants to merge 1 commit into
clabby:mainfrom
BrendanChou:feat/collapse-large-pastes
Open

feat(tui): collapse large composer pastes#167
BrendanChou wants to merge 1 commit into
clabby:mainfrom
BrendanChou:feat/collapse-large-pastes

Conversation

@BrendanChou

@BrendanChou BrendanChou commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • automatically collapse pastes of at least 1,000 characters or more than 8 lines into compact blue tokens with character and line counts
  • preserve the exact original text structurally for submission, copy, history, image offsets, saved drafts, and the external editor
  • make tokens atomic for cursor movement and deletion, and expand them on click
  • use semantic pasted text for @ and $ mention boundaries
  • add composer.paste_display = "auto" | "inline" with startup and live-reload propagation

Validation

  • just test -p tact (801 passed)
  • just clippy -p tact
  • just check-fmt
  • independent correctness and simplicity reviews: no actionable findings

@clabby

clabby commented Aug 18, 2026

Copy link
Copy Markdown
Owner

I'm not a huge fan of this behavior personally. The composer does cap the number of lines it'll render at once, were you running into issues?

@BrendanChou
BrendanChou force-pushed the feat/collapse-large-pastes branch 2 times, most recently from 1288362 to 2446b1e Compare August 18, 2026 18:51
@BrendanChou
BrendanChou force-pushed the feat/collapse-large-pastes branch from 2446b1e to b9cbb31 Compare August 18, 2026 19:09
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

Successfully merging this pull request may close these issues.

2 participants