Repository navigation
type: choose where text lands and read the caret - #137
Merged
Merged
Conversation
Add marker-notation placements, replace, caret/selection read-back, view assertions, and cursor movement keys. Cover semantic and virtual delivery in the todo host and document the protocol and recipes.
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.
Closes #136
Summary
typecan now place text at a caret or selection instead of only appending,replacetypes over one occurrence through the widget edit path, and editable nodes/read-backs expose marker-notationviewplus character-offsetcaretandselection. Assertions can check all three in one predicate, and semantic/virtual cursor keys coverLeft,Right,Home, andEnd.Public API
typeacceptsat(marker notation),before/afterwith one-basednth,start,end, andreplace_all; omission keeps the released append-at-end behavior.replaceop and CLI/MCP command selects one occurrence ofoldand typesnewover it through the widget edit path.UiNodes andtype/replaceread-backs reportview,caret, andselection;caret_selectionandtext_placementare publichello.featurescapabilities.assertandwait_untilacceptviewin marker notation.keyacceptsLeft,Right,Home, andEnd.Verification
cargo test --workspace: 753 passed, 0 failed (44 suites).cargo fmt --all -- --check: pass.cargo clippy --workspace --exclude todo --all-targets -- -D warnings: pass.--all-features, recipe default, CLI--no-default-features, CLI--features jev): pass.examples/recipes/todo-text-editing.json: 31 steps pass on headless and the real macOS desktop todo host.examples/recipes/todo-text-editing-virtual.json: 31 steps pass through virtual delivery on the real macOS desktop todo host.Host plugs that consume the published crate need the follow-up named in the issue after this API is released.