Repository navigation
feat(compose): readline keys, word wrap and a comment_width setting - #131
Merged
Merged
Conversation
Contributor
Author
|
@backnotprop this and my other 3 PRs are huge QoL improvements for comment editing. I'm using a local fork of plannotator-tui with these patches and it works flawlessly so far and makes the experience much more familiar to other TUIs, like claude code itself. Would super appreciate your reviews 🙏🏻 thanks |
sebastianst
force-pushed
the
seb/compose-box
branch
from
November 10, 2026 09:07
084981e to
b08e8a2
Compare
Word and line editing keys that work in most TUI inputs, Up/Down by display row so a wrapped paragraph can be navigated, and Esc asks before throwing away a changed draft. Ctrl+H deletes a word because many terminals send it for Ctrl+Backspace. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The box wrapped mid-word at a fixed 48 columns. It now wraps at word boundaries to its real width, capped by `[ui] comment_width`, and keeps one column free so the cursor can sit past a full row. A title too long for the top border continues on the bottom border, so `esc cancels` is no longer cut off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sebastianst
force-pushed
the
seb/compose-box
branch
from
November 15, 2026 15:55
b08e8a2 to
c338afe
Compare
1 task
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.
Makes the comment box comfortable for more than a line or two.
Ctrl+U/Ctrl+K.Ctrl+Hdeletes a word because many terminals send it forCtrl+Backspace.Escasks first if the text changed.[ui] comment_width: sets the box width, 48 by default and 38 at least. A narrower pane still narrows it.esc cancelsis no longer cut off.🤖 Co-created with Claude Opus 5.5