search

package
v0.0.0-...-1fd5732 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	GetAllSlides() []string
	CurrentPage() int
	PageSize() int
	SetPage(page int)
}
type Search struct {
	Active          bool
	SearchTextInput textinput.Model
	// Store searched text slides
	Cache             []int
	CurrentCacheIndex int
}

func NewSearch

func NewSearch() Search

func (*Search) Begin

func (s *Search) Begin()

Begin starts a new search (deltes old buffers)

func (*Search) Done

func (s *Search) Done()

func (*Search) Execute

func (s *Search) Execute(m Model)

func (*Search) Next

func (s *Search) Next(m Model)

func (*Search) Previous

func (s *Search) Previous(m Model)

func (*Search) Query

func (s *Search) Query() string

func (*Search) SetQuery

func (s *Search) SetQuery(query string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL