Skip to content

Allow opt-in task toggles in read-only editors - #178

Open
yvos wants to merge 2 commits into
nodes-app:mainfrom
yvos:nofray/read-only-task-checkbox
Open

Allow opt-in task toggles in read-only editors#178
yvos wants to merge 2 commits into
nodes-app:mainfrom
yvos:nofray/read-only-task-checkbox

Conversation

@yvos

@yvos yvos commented Sep 3, 2026

Copy link
Copy Markdown

Adds an opt-in wrapper policy that keeps task checkboxes interactive while NSTextView remains non-editable. Qualification proved the existing isEditable=false path rejects shouldChangeText, which justifies a narrow opt-in API; the default stays fully read-only. Tests exercise the actual checkbox hit-test and click mutation path, prove ordinary edits remain rejected, cover second-of-two exact-range changes under LF and CRLF, verify the exact three-character onTextMutation callback, preserve the settled binding, and prove document-scoped undo and redo. Includes 6 focused tests; the full suite passes 476 tests in 69 suites. Follow-up embedder parity work discovered while implementing issue #173.

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.

1 participant