feat(claudbg-6t38,claudbg-trk3): add gg/G vim-style jump navigation in transcript
gg (double-g): jump to top of transcript via pending_g chord detection. G (Shift+G): jump to bottom of transcript. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
ae337dcf94
commit
a6a0b9a0db
@ -1,10 +1,15 @@
|
|||||||
---
|
---
|
||||||
# claudbg-6t38
|
# claudbg-6t38
|
||||||
title: 'TUI: gg jumps to top of transcript'
|
title: 'TUI: gg jumps to top of transcript'
|
||||||
status: todo
|
status: completed
|
||||||
type: feature
|
type: feature
|
||||||
|
priority: normal
|
||||||
created_at: 2026-03-31T23:45:20Z
|
created_at: 2026-03-31T23:45:20Z
|
||||||
updated_at: 2026-03-31T23:45:20Z
|
updated_at: 2026-04-01T05:53:50Z
|
||||||
---
|
---
|
||||||
|
|
||||||
Add gg (double-g) keybinding in the transcript view to jump to the top of the transcript (vim-style gg navigation). Requires buffering single 'g' keypress to detect the chord.
|
Add gg (double-g) keybinding in the transcript view to jump to the top of the transcript (vim-style gg navigation). Requires buffering single 'g' keypress to detect the chord.
|
||||||
|
|
||||||
|
## Summary of Changes
|
||||||
|
|
||||||
|
Added `pending_g: bool` field to `AppState` (init to false). In `handle_transcript_event`, clear `pending_g` on any key that isn't 'g', then handle 'g': if `pending_g` was already set, scroll to top (gg); otherwise set `pending_g = true`.
|
||||||
|
|||||||
@ -1,10 +1,15 @@
|
|||||||
---
|
---
|
||||||
# claudbg-trk3
|
# claudbg-trk3
|
||||||
title: 'TUI: Shift+G jumps to bottom of transcript'
|
title: 'TUI: Shift+G jumps to bottom of transcript'
|
||||||
status: todo
|
status: completed
|
||||||
type: feature
|
type: feature
|
||||||
|
priority: normal
|
||||||
created_at: 2026-03-31T23:45:17Z
|
created_at: 2026-03-31T23:45:17Z
|
||||||
updated_at: 2026-03-31T23:45:17Z
|
updated_at: 2026-04-01T05:53:50Z
|
||||||
---
|
---
|
||||||
|
|
||||||
Add Shift+G keybinding in the transcript view to jump to the bottom of the transcript (vim-style G navigation).
|
Add Shift+G keybinding in the transcript view to jump to the bottom of the transcript (vim-style G navigation).
|
||||||
|
|
||||||
|
## Summary of Changes
|
||||||
|
|
||||||
|
Added `KeyCode::Char('G')` arm in `handle_transcript_event`: computes total rendered lines via `build_chat_lines` and sets `transcript_scroll` to `total_lines.saturating_sub(page_height)` — same clamping as PageDown, but jumps directly to bottom.
|
||||||
|
|||||||
Loading…
Reference in New Issue