Atoms: text an app marks is one unit, and Replace (ATC-191) #2

Merged
merge-queue merged 1 commit from atc-191-atoms into main 2026-11-23 20:40:12 -08:00
Owner

Work package: ATC-191, objects picked from at-claude's menu.

Added

  • SetAtoms(pattern): every stretch of the message the pattern matches is one unit. The cursor steps over it and never stops inside it, Backspace and Delete take it whole, a word or line deletion that would cut into it takes all of it, it wraps to a row of its own unless wider than a row, and Styles.Atom draws it (unset, it draws as the message).
  • Replace(line, start, end, text): text in place of part of a line as one undoable change, the cursor after it.

Left alone: with no pattern set, nothing changes, so gvoice-tui is unaffected. Atoms are plain text in the message, so Value, SetValue, pastes, undo and drafts carry them with no extra state.

🤖 Generated with Claude Code

Work package: [ATC-191](https://openproject.home.romaine.life/wp/ATC-191), objects picked from at-claude's menu. **Added** - `SetAtoms(pattern)`: every stretch of the message the pattern matches is one unit. The cursor steps over it and never stops inside it, Backspace and Delete take it whole, a word or line deletion that would cut into it takes all of it, it wraps to a row of its own unless wider than a row, and `Styles.Atom` draws it (unset, it draws as the message). - `Replace(line, start, end, text)`: text in place of part of a line as one undoable change, the cursor after it. **Left alone**: with no pattern set, nothing changes, so gvoice-tui is unaffected. Atoms are plain text in the message, so `Value`, `SetValue`, pastes, undo and drafts carry them with no extra state. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ATC-191 Atoms: text the app marks is one unit, and Replace
All checks were successful
Suite default / check-fetches (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 6s
Suite go / check-test-linux (pull_request) Successful in 6s
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / home-sync (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / dispatch (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / dispatch (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 5s
Suite default / reused-checks (pull_request) Successful in 4s
Suite go / scope (pull_request) Successful in 5s
Suite default / scope (pull_request) Successful in 5s
Suite release / scope (pull_request) Successful in 5s
Suite go / check-services (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Successful in 58s
Suite go / reused-checks (pull_request) Successful in 4s
merge-queue landed on main
8c71712112
SetAtoms makes each stretch of the message a pattern matches an atom: the
cursor steps over it and never stops inside it, Backspace, Delete and word
deletions take it whole, it wraps whole, and Styles.Atom draws it. Replace
puts text in place of part of a line as one change, for an app turning a typed
word into what was picked for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merge-queue deleted branch atc-191-atoms 2026-11-23 20:40:12 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/composer!2
No description provided.