mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
Expand keyboard navigation and selection in the transcript (#57221)
## What changed - Add word motions (`w`, `b`, `e`), logical line boundaries, page and half-page motions, and jumps to the transcript's beginning and end. Honor configured pager bindings for navigation. - Add whole-line selection with `V` and active-end swapping with `o`. - Adopt existing mouse selections when entering select mode, preserving selection units and endpoint bounds so keyboard motions can adjust the range. ## Testing Add regression tests for word motion across entries, reverse whole-line selection, empty-line boundaries, configured pager motion, final-grapheme selection, endpoint swapping, and caret placement after copying. GitOrigin-RevId: f0cd05900f2a7a15840777cee4d50659a2c8b134
This commit is contained in:
@@ -83,6 +83,10 @@ impl Selection {
|
||||
self.origin = origin;
|
||||
self.unit = unit;
|
||||
}
|
||||
|
||||
pub(super) fn unit(&self) -> SelectionUnit {
|
||||
self.unit
|
||||
}
|
||||
}
|
||||
|
||||
impl TranscriptView {
|
||||
|
||||
Reference in New Issue
Block a user