core-agent-ide/codex-rs/tui2/docs
Josh McKinney 0130a2fa40
feat(tui2): add multi-click transcript selection (#8471)
Support multi-click transcript selection using transcript/viewport
coordinates
(wrapped visual line index + content column), not terminal buffer
positions.

Gestures:
- double click: select word-ish token under cursor
- triple click: select entire wrapped line
- quad click: select paragraph (contiguous non-empty wrapped lines)
- quint+ click: select the entire history cell (all wrapped lines
belonging to a
  single `HistoryCell`, including blank lines inside the cell)

Selection expansion rebuilds the wrapped transcript view from
`HistoryCell::display_lines(width)` so boundaries match on-screen
wrapping during
scroll/resize/streaming reflow. Click grouping is resilient to minor
drag jitter
(some terminals emit tiny Drag events during clicks) and becomes more
tolerant as
the sequence progresses so quad/quint clicks are practical.

Tests cover expansion (word/line/paragraph/cell), sequence resets
(timing, motion,
line changes, real drags), drag jitter, and behavior on spacer lines
between
history cells (paragraph/cell selection prefers the cell above).
2025-12-23 21:05:06 +00:00
..
scroll_input_model.md feat(tui2): tune scrolling inpu based on (#8357) 2025-12-20 12:48:12 -08:00
streaming_wrapping_design.md WIP: Rework TUI viewport, history printing, and selection/copy (#7601) 2025-12-15 17:20:53 -08:00
tui_viewport_and_history.md feat(tui2): add multi-click transcript selection (#8471) 2025-12-23 21:05:06 +00:00