You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-copy highlighted text to clipboard on mouse-up (#446)
* Auto-copy highlighted text to clipboard on mouse-up
OpenTUI emits CliRenderEvents.SELECTION once when a drag-select finishes
(mouse-up). A new copyFinishedSelection handler writes the selected text
through the system clipboard port, flashes a status line with a char count
and preview, then clears the highlight so the selection does not linger.
Empty selections and mid-drag updates are no-ops.
The Alt+M flash copy is updated to name the new behavior, and docs/TUI.md
documents the drag-select-copy path alongside the existing Alt+M and Alt+C
chords.
* Polish drag-select auto-copy help text and wiring tests
Align Alt+M copy/help strings and docs with mouse-up clipboard copy,
and pin the SELECTION event path through a live shell.
* Collapse multi-line copy previews and clarify Alt+M help
Keep the status flash single-line for short drag-selects, and make the
help row describe mouse capture as a toggle with capture as the default.
{keys: "Ctrl+C",description: "interrupt the run, or clear the prompt when idle; press twice to exit"},
26
26
{keys: "Ctrl+G",description: "cancel the most recently queued or steered message before it dispatches"},
27
27
{keys: "Alt+C",description: "copy mode: pick a message, tool output, or diff; press again to close it"},
28
-
{keys: "Alt+M",description: "release the mouse to the terminal for native drag-select and copy; on by default for wheel scroll and click-to-expand"},
28
+
{keys: "Alt+M",description: "toggle DEC mouse capture (on by default: wheel scroll, click-to-expand, drag-to-copy); off restores native terminal drag-select"},
29
29
{keys: "Alt+E",description: "expand or collapse every collapsible row (tool call, diff, skill, reasoning)"},
30
30
{keys: "Alt+T",description: "show or hide the task list above the prompt"},
31
31
{keys: "Alt+O",description: "observe a live subagent session; a system row says so when there is none"},
0 commit comments