Gim/internal/core/search.go
2026-04-09 14:36:18 -07:00

23 lines
332 B
Go

package core
type SearchState struct {
Query string
Forword bool
Cursor int
// History is editor wide
History []string
HistoryCursor int
}
func NewSearchState() SearchState {
return SearchState{
Query: "",
Forword: true,
Cursor: 0,
History: []string{},
HistoryCursor: 0,
}
}