tui: mouse selection + copy (OSC 52, /copy) #127

Merged
hermes merged 1 commits from feat/mouse-select into main 2026-10-06 12:08:37 +00:00
Collaborator

Drag in the chat selects text (reverse video), release copies it via OSC 52 (works over SSH/tmux with set -g set-clipboard on). Double click = word, triple = line. Dragging past the top/bottom edge scrolls. Selection uses content coordinates, so it survives scrolling; cleared on key press, resize, plain click. New /copy copies the last assistant answer. Clamped to 100 KB. No new dependency beyond base64 (already in workspace). Tests: extraction (wrap, reversed drag, wide chars), word/line pick, paint, OSC 52, mouse flow. cargo test -p hx-tui -p hx-core green.

Drag in the chat selects text (reverse video), release copies it via OSC 52 (works over SSH/tmux with `set -g set-clipboard on`). Double click = word, triple = line. Dragging past the top/bottom edge scrolls. Selection uses content coordinates, so it survives scrolling; cleared on key press, resize, plain click. New `/copy` copies the last assistant answer. Clamped to 100 KB. No new dependency beyond `base64` (already in workspace). Tests: extraction (wrap, reversed drag, wide chars), word/line pick, paint, OSC 52, mouse flow. `cargo test -p hx-tui -p hx-core` green.
hermes added 1 commit 2026-10-06 12:03:40 +00:00
hermes merged commit a0fb5ed7f7 into main 2026-10-06 12:08:37 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#127