feat: add search with preview
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user