Documentation
¶
Index ¶
- type MatchLocation
- type NavigationState
- type SearchState
- func (s *SearchState) ExecuteSearch(files []diff.FileChange)
- func (s *SearchState) GetCurrentMatch() *MatchLocation
- func (s *SearchState) GetMatchesForLine(fileIdx, hunkIdx, lineIdx int) []MatchLocation
- func (s *SearchState) IsCurrentMatch(fileIdx, hunkIdx, lineIdx int) bool
- func (s *SearchState) IsLineMatch(fileIdx, hunkIdx, lineIdx int) bool
- func (s *SearchState) MatchCount() int
- func (s *SearchState) NextMatch() *MatchLocation
- func (s *SearchState) PrevMatch() *MatchLocation
- func (s *SearchState) RestoreOriginalState() NavigationState
- func (s *SearchState) SaveOriginalState(nav NavigationState)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchLocation ¶
type NavigationState ¶
type NavigationState struct {
}
type SearchState ¶
type SearchState struct {
Query string
Matches []MatchLocation
CurrentIdx int
OriginalState NavigationState
IsActive bool
IsCaseSensitive bool
}
func NewSearchState ¶
func NewSearchState() *SearchState
func (*SearchState) ExecuteSearch ¶
func (s *SearchState) ExecuteSearch(files []diff.FileChange)
func (*SearchState) GetCurrentMatch ¶
func (s *SearchState) GetCurrentMatch() *MatchLocation
func (*SearchState) GetMatchesForLine ¶
func (s *SearchState) GetMatchesForLine(fileIdx, hunkIdx, lineIdx int) []MatchLocation
func (*SearchState) IsCurrentMatch ¶
func (s *SearchState) IsCurrentMatch(fileIdx, hunkIdx, lineIdx int) bool
func (*SearchState) IsLineMatch ¶
func (s *SearchState) IsLineMatch(fileIdx, hunkIdx, lineIdx int) bool
func (*SearchState) MatchCount ¶
func (s *SearchState) MatchCount() int
func (*SearchState) NextMatch ¶
func (s *SearchState) NextMatch() *MatchLocation
func (*SearchState) PrevMatch ¶
func (s *SearchState) PrevMatch() *MatchLocation
func (*SearchState) RestoreOriginalState ¶
func (s *SearchState) RestoreOriginalState() NavigationState
func (*SearchState) SaveOriginalState ¶
func (s *SearchState) SaveOriginalState(nav NavigationState)
Click to show internal directories.
Click to hide internal directories.