Documentation ¶
Index ¶
Constants ¶
View Source
const ( ByScore criterion = iota // sort by score ByLength // sort by string length ByPosition // sort by match location )
Variables ¶
This section is empty.
Functions ¶
func MergeOffsets ¶
func MergeOffsets(matchOffsets []fzf.Offset) []fzf.Offset
Types ¶
type ByRelevance ¶
type ByRelevance []Result
ByRelevance is for sorting Items
func (ByRelevance) Len ¶
func (a ByRelevance) Len() int
func (ByRelevance) Less ¶
func (a ByRelevance) Less(i, j int) bool
func (ByRelevance) Swap ¶
func (a ByRelevance) Swap(i, j int)
type ByRelevanceTac ¶
type ByRelevanceTac []Result
ByRelevanceTac is for sorting Items
func (ByRelevanceTac) Len ¶
func (a ByRelevanceTac) Len() int
func (ByRelevanceTac) Less ¶
func (a ByRelevanceTac) Less(i, j int) bool
func (ByRelevanceTac) Swap ¶
func (a ByRelevanceTac) Swap(i, j int)
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) TrimLength ¶
type ItemBuilder ¶
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
func NewPattern ¶
func (Pattern) MatchChunk ¶
type Result ¶
func (*Result) HighlightResult ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func NewWrapper ¶
func (*Wrapper) SetPattern ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.