Skip to content

add mouse selection#15

Open
mitchellh wants to merge 1 commit into
mainfrom
push-mmwrpxttnpuq
Open

add mouse selection#15
mitchellh wants to merge 1 commit into
mainfrom
push-mmwrpxttnpuq

Conversation

@mitchellh

Copy link
Copy Markdown
Contributor

Use libghostty selection APIs to implement mouse-driven text selection in Ghostling. Single-click drag now installs terminal-owned selection ranges, double-click selects and extends by word, and triple-click selects a line.

Selection state keeps a tracked grid reference for the drag anchor so it remains valid across terminal mutations. Mouse tracking continues to be forwarded to applications by default, while Shift overrides capture for terminal selection. Selected cells are rendered from render-state selection metadata, and the cursor changes to an I-beam over selectable grid cells.

This doesn't add copy yet.

Use libghostty selection APIs to implement mouse-driven text
selection in Ghostling. Single-click drag now installs terminal-owned
selection ranges, double-click selects and extends by word, and
triple-click selects a line.

Selection state keeps a tracked grid reference for the drag anchor so
it remains valid across terminal mutations. Mouse tracking continues to
be forwarded to applications by default, while Shift overrides capture
for terminal selection. Selected cells are rendered from render-state
selection metadata, and the cursor changes to an I-beam over selectable
grid cells.

This doesn't add copy yet.
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 27, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 31, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 31, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 31, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request May 31, 2026
pluiedev added a commit to Uzaaft/libghostty-rs that referenced this pull request Jun 1, 2026
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