feat(cli): add /diff-fold command to toggle diff line folding#3952
Conversation
|
One behavioral question before merge: as written, the session field's zero value flips the default from folded-at-40 to show-all — so after this lands every user's diffs dump fully into scrollback and |
Add a slash command that lets users toggle whether diffs show all lines or are folded to a limit (40 lines). The toggle is session-scoped and affects subsequent diff rendering without modifying historical content. - Replace diffScrollbackMaxLines constant with diffFoldLimit (40) - Add diffMaxLines field to chatTUI (default 0 = show all) - Add /diff-fold command with toggle logic using i18n messages - Register command in help listing and tab completion - Add i18n messages for en and zh locales Co-Authored-By: Claude noreply@anthropic.com
Co-Authored-By: Claude <noreply@anthropic.com>
c91e374 to
1d26e4c
Compare
You're right. I've changed the default state to folded. |
|
Confirmed the default-state fix — initializing |
Add a slash command that lets users toggle whether diffs show all lines or are folded to a limit (40 lines). The toggle is session-scoped and affects subsequent diff rendering without modifying historical content.