Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter interface {
Search(string, *SearchOption) ([]SearchResult, error)
}
func NewFilter ¶
func NewFilter(option *SearchOption) Filter
type SearchCommand ¶
type SearchCommand int
const ( RipGrep SearchCommand = iota FuzzySearch NoneCommand )
func CommandByName ¶
func CommandByName(v string) (SearchCommand, error)
type SearchMode ¶
type SearchMode int
const ( Regex SearchMode = iota HeadMatch WordMatch NoneMode )
func ModeByName ¶
func ModeByName(v string) (SearchMode, error)
type SearchOption ¶
type SearchOption struct { Command SearchCommand Mode SearchMode Case bool TargetDir string Limit int }
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.