Add transcript search navigation

This commit is contained in:
Tuan-Lung Wang
2026-03-16 21:54:18 -07:00
parent 21191e1707
commit 5396defe86
8 changed files with 1134 additions and 117 deletions

View File

@@ -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

View File

@@ -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 "
" "

View File

@@ -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 "
" "

View File

@@ -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

View File

@@ -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 "

View File

@@ -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 "

View File

@@ -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 "