Repository navigation
Conversation
5 of 6 tasks
tony
force-pushed
the
concept/snapshot-cell-search
branch
from
December 1, 2026 03:29
b387150 to
384d720
Compare
why: A mouse event needs a terminal column for a visible label. what: - Return ordered row and column spans for complete graphemes - Cover wide cells, written spaces, overlaps, and a real mouse target
why: Point readers of a concept branch to its tested mouse example. what: - Link to the guide in the same revision as the README.
why: A published package may predate the example under review. what: - Give readers the command that loads the source revision.
why: Callers need the import location for matches returned by snapshot
search.
what:
- Map CellSpan to the public terminal APIs
- Keep the README quickstart centered on the tested example
why: Record the branch's user-visible change in the unreleased notes. what: - Add the #133 entry under What's new in CHANGES
tony
force-pushed
the
concept/snapshot-cell-search
branch
from
December 3, 2026 02:53
384d720 to
5f4a47b
Compare
This branch was successfully deployed
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.
Summary
Snapshot.find_cells().libvt.terminal.CellSpanvalues.Closes #102.
In
界界界·Go Go, a Python string search findsGoat offset 4. A mouse needs columns 7 or 10.snapshot.find_cells("Go")returns both spans so the caller can pick the intended target.Try it
Run the Unicode search and mouse-target checks from a libvt checkout.
$ gh pr checkout 133 && uv run --frozen --all-groups --all-extras pytest -q tests/test_terminal.py tests/test_aio.py -k find_cellsTest plan