feat: add search with preview

This commit is contained in:
2026-02-02 20:32:19 -06:00
parent 2aa49faad5
commit 155d8c4c1d
7 changed files with 584 additions and 2 deletions

View File

@@ -209,6 +209,14 @@ func (m *Model) scrollToCue(cueIndex int) {
m.viewport.SetYOffset(offset)
}
// AllCues returns all cues from the transcript
func (m *Model) AllCues() []srt.Cue {
if m.transcript == nil {
return nil
}
return m.transcript.Cues
}
// View renders the transcript
func (m Model) View() string {
content := m.viewport.View()