mirror of
https://github.com/openai/codex.git
synced 2026-04-28 02:11:08 +03:00
Add transcript search navigation
This commit is contained in:
@@ -156,8 +156,12 @@ impl App {
|
||||
..
|
||||
}) = event
|
||||
{
|
||||
// First Esc in transcript overlay: begin backtrack preview at latest user message.
|
||||
self.begin_overlay_backtrack_preview(tui);
|
||||
if self.overlay.as_ref().is_some_and(Overlay::consumes_escape) {
|
||||
self.overlay_forward_event(tui, event)?;
|
||||
} else {
|
||||
// First Esc in transcript overlay: begin backtrack preview at latest user message.
|
||||
self.begin_overlay_backtrack_preview(tui);
|
||||
}
|
||||
Ok(true)
|
||||
} else {
|
||||
// Not in backtrack mode: forward events to the overlay widget.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,6 @@ expression: term.backend()
|
||||
"~ "
|
||||
"~ "
|
||||
"───────────────────────────────── 100% ─"
|
||||
" ↑/↓ to scroll pgup/pgdn to page hom"
|
||||
" q to quit "
|
||||
" <↑>/<↓> to scroll <pgup>/<pgdn> to pa"
|
||||
" <q> to quit "
|
||||
" "
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
source: tui/src/pager_overlay.rs
|
||||
assertion_line: 798
|
||||
expression: term.backend()
|
||||
---
|
||||
"/ S T A T I C / / / / / "
|
||||
@@ -8,6 +7,6 @@ expression: term.backend()
|
||||
"should wrap when "
|
||||
"rendered within a narrow"
|
||||
"─────────────────── 0% ─"
|
||||
" ↑/↓ to scroll pgup/pg"
|
||||
" q to quit "
|
||||
" <↑>/<↓> to scroll <pg"
|
||||
" <q> to quit "
|
||||
" "
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
source: tui/src/pager_overlay.rs
|
||||
expression: snapshot
|
||||
---
|
||||
/ T R A N S C R I P T / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
|
||||
• Added foo.txt (+2 -0)
|
||||
1 +hello
|
||||
2 +world
|
||||
|
||||
• Added foo.txt (+2 -0)
|
||||
1 +hello
|
||||
2 +world
|
||||
─────────────────────────────────────────────────────────────────────────── 0% ─
|
||||
↑/↓ to scroll pgup/pgdn to page home/end to jump
|
||||
q to quit esc to edit prev
|
||||
/ T R A N S C R I P T / / / / / / / / / / / ┌User Prompts──────────────────────┐
|
||||
• Added foo.txt (+2 -0) │No user prompts yet. │
|
||||
1 +hello │ │
|
||||
2 +world │Add another turn │
|
||||
│and reopen Ctrl+T. │
|
||||
• Added foo.txt (+2 -0) │ │
|
||||
1 +hello │ │
|
||||
2 +world │ │
|
||||
─────────────────────────────────────── 0% ─└──────────────────────────────────┘
|
||||
<↑>/<↓> to scroll <pgup>/<pgdn> to page <home>/<end> to jump
|
||||
<q> to quit <a> hide side panel <e> expand all <d> show details <tab> s
|
||||
</>/<?> to search
|
||||
|
||||
@@ -9,6 +9,6 @@ expression: term.backend()
|
||||
"~ "
|
||||
"~ "
|
||||
"───────────────────────────────── 100% ─"
|
||||
" ↑/↓ to scroll pgup/pgdn to page hom"
|
||||
" q to quit esc to edit prev "
|
||||
" "
|
||||
" <↑>/<↓> to scroll <pgup>/<pgdn> to pa"
|
||||
" <q> to quit <a> hide side panel <e>"
|
||||
"</>/<?> to search "
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
source: tui/src/pager_overlay.rs
|
||||
expression: term.backend()
|
||||
---
|
||||
"/ T R A N S C R I P T / / / / / / / / / / / / / / / / / / / / / / / / / "
|
||||
" "
|
||||
"› Find the foo item "
|
||||
" "
|
||||
" "
|
||||
" Details... "
|
||||
" "
|
||||
"• Final answer that also mentions foo. "
|
||||
" "
|
||||
"› 2. Other prompt "
|
||||
"• (no response yet) "
|
||||
"~ "
|
||||
"───────────────────────────────────────────────────────────────── 100% ─"
|
||||
" <↑>/<↓> to scroll <pgup>/<pgdn> to page <home>/<end> to jump "
|
||||
" <q> to quit <a> hide side panel <e> expand all <d> show details "
|
||||
"Search /foo 1/3 › Find the foo item <n>/<N> <esc> clear "
|
||||
@@ -9,6 +9,6 @@ expression: term.backend()
|
||||
" "
|
||||
"gamma "
|
||||
"───────────────────────────────── 100% ─"
|
||||
" ↑/↓ to scroll pgup/pgdn to page hom"
|
||||
" q to quit esc to edit prev "
|
||||
" "
|
||||
" <↑>/<↓> to scroll <pgup>/<pgdn> to pa"
|
||||
" <q> to quit <a> hide side panel <e>"
|
||||
"</>/<?> to search "
|
||||
|
||||
Reference in New Issue
Block a user