[FEATURE] add search with preview #1

Merged
ysandler merged 1 commits from feature/search-with-preview into main 2026-02-02 20:37:13 -06:00
Owner

Search Overlay Feature

Summary

Implement a search overlay for filtering and navigating cues. Press s to open a centered modal, type to filter, use j/k to navigate, and press Enter to seek to the selected cue. Audio continues playing while search
is open.

Changes

  • internal/ui/search/search.go — New search component with real-time filtering, results list, and preview pane
  • internal/ui/styles.go — Added SearchMatchStyle and SearchSelectedStyle
  • internal/app/keys.go — Added Search keybinding (s key)
  • internal/ui/legend/legend.go — Added search to Nav legend
  • internal/ui/transcript/transcript.go — Added AllCues() accessor
  • internal/app/app.go — Integrated search overlay into app

Features

  • Centered modal with two-column layout (results + preview)
  • Real-time filtering with case-insensitive text matching
  • Match highlighting and result navigation
  • Full cue preview with timestamps and surrounding context
  • Enter to seek, Esc to close without seeking

Testing

  1. go build ./…
  2. Run: ./playback audio.mp3 -t transcript.srt
  3. Press s to open search
  4. Type to filter, j/k to navigate, Enter to seek, Esc to close
# Search Overlay Feature ## Summary Implement a search overlay for filtering and navigating cues. Press `s` to open a centered modal, type to filter, use `j`/`k` to navigate, and press `Enter` to seek to the selected cue. Audio continues playing while search is open. ## Changes - **`internal/ui/search/search.go`** — New search component with real-time filtering, results list, and preview pane - **`internal/ui/styles.go`** — Added `SearchMatchStyle` and `SearchSelectedStyle` - **`internal/app/keys.go`** — Added `Search` keybinding (`s` key) - **`internal/ui/legend/legend.go`** — Added search to Nav legend - **`internal/ui/transcript/transcript.go`** — Added `AllCues()` accessor - **`internal/app/app.go`** — Integrated search overlay into app ## Features - Centered modal with two-column layout (results + preview) - Real-time filtering with case-insensitive text matching - Match highlighting and result navigation - Full cue preview with timestamps and surrounding context - Enter to seek, Esc to close without seeking ## Testing 1. `go build ./…` 2. Run: `./playback audio.mp3 -t transcript.srt` 3. Press `s` to open search 4. Type to filter, `j`/`k` to navigate, `Enter` to seek, `Esc` to close
ysandler added 1 commit 2026-02-02 20:36:48 -06:00
ysandler merged commit 61c9f78fad into main 2026-02-02 20:37:13 -06:00
ysandler deleted branch feature/search-with-preview 2026-02-02 20:37:13 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ysandler/playback#1