Documentation
¶
Index ¶
- func CacheDir() string
- func ConfigDir() (string, bool)
- func ExactScore(input, target string) (float64, *[]int, int)
- func FileExists(filename string) bool
- func FromGob[T any](src string, dest *T) bool
- func FuzzyScore(input, target string) (float64, *[]int, int)
- func GetMD5Hash(text string) string
- func NewDebounce(after time.Duration) func(f func())
- func ThemeDir() (string, bool)
- func ThumbnailsDir() string
- func TmpDir() string
- func ToGob[T any](val *T, dest string)
- func TransformSeparator(sep string) string
- func WrapWithPrefix(prefix string, text string) string
- type Debouncer
- type Entry
- type MatchingType
- type Piped
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GetMD5Hash ¶ added in v0.11.14
func NewDebounce ¶ added in v0.10.14
func ThumbnailsDir ¶ added in v0.11.14
func ThumbnailsDir() string
func TransformSeparator ¶ added in v0.10.13
func WrapWithPrefix ¶ added in v0.12.17
Types ¶
type Debouncer ¶ added in v0.10.14
type Debouncer struct {
// contains filtered or unexported fields
}
type Entry ¶
type Entry struct {
Categories []string `mapstructure:"categories,omitempty" json:"categories,omitempty"`
Class string `mapstructure:"class,omitempty" json:"class,omitempty"`
DragDrop bool `mapstructure:"drag_drop,omitempty" json:"drag_drop,omitempty"`
DragDropData string `mapstructure:"drag_drop_data,omitempty" json:"drag_drop_data,omitempty"`
Env []string `mapstructure:"env,omitempty" json:"env,omitempty"`
Exec string `mapstructure:"exec,omitempty" json:"exec,omitempty"`
ExecAlt string `mapstructure:"exec_alt,omitempty" json:"exec_alt,omitempty"`
HideText bool `mapstructure:"hide_text,omitempty" json:"hide_text,omitempty"`
Icon string `mapstructure:"icon,omitempty" json:"icon,omitempty"`
Image string `mapstructure:"image,omitempty" json:"image,omitempty"`
InitialClass string `mapstructure:"initial_class,omitempty" json:"initial_class,omitempty"`
Label string `mapstructure:"label,omitempty" json:"label,omitempty"`
MatchFields int `mapstructure:"match_fields,omitempty" json:"match_fields,omitempty"`
Matching MatchingType `mapstructure:"matching,omitempty" json:"matching,omitempty"`
Path string `mapstructure:"path,omitempty" json:"path,omitempty"`
Prefer bool `mapstructure:"prefer,omitempty" json:"prefer,omitempty"`
RecalculateScore bool `mapstructure:"recalculate_score,omitempty" json:"recalculate_score,omitempty"`
ScoreFinal float64 `mapstructure:"score_final,omitempty" json:"score_final,omitempty"`
ScoreFuzzy float64 `mapstructure:"score_fuzzy,omitempty" json:"score_fuzzy,omitempty"`
Searchable string `mapstructure:"searchable,omitempty" json:"searchable,omitempty"`
Searchable2 string `mapstructure:"searchable2,omitempty" json:"searchable2,omitempty"`
Sub string `mapstructure:"sub,omitempty" json:"sub,omitempty"`
Terminal bool `mapstructure:"terminal,omitempty" json:"terminal,omitempty"`
TerminalTitleFlag string `mapstructure:"terminal_title_flag,omitempty" json:"terminal_title_flag,omitempty"`
Value string `mapstructure:"value,omitempty" json:"value,omitempty"`
// internal
DaysSinceUsed int `mapstructure:"-"`
File string `mapstructure:"-"`
HashIdent string `mapstructure:"-"`
Hide bool `mapstructure:"-"`
History bool `mapstructure:"-"`
IgnoreUnprefixed bool `mapstructure:"-"`
IsAction bool `mapstructure:"-"`
LastUsed time.Time `mapstructure:"-"`
MatchStartingPos int `mapstructure:"-"`
MatchedLabel string `mapstructure:"-"`
MatchedSub string `mapstructure:"-"`
Module string `mapstructure:"-"`
OnSelectPiped Piped `mapstructure:"-"`
OpenWindows uint `mapstructure:"-"`
Output string `mapstructure:"-"`
Piped Piped `mapstructure:"-"`
PipedAlt Piped `mapstructure:"-"`
Prefix string `mapstructure:"-"`
SingleModuleOnly bool `mapstructure:"-"`
SpecialFunc func(args ...any) `mapstructure:"-"`
SpecialFuncArgs []any `mapstructure:"-"`
Used int `mapstructure:"-"`
Weight int `mapstructure:"-"`
}
func (Entry) Identifier ¶
type MatchingType ¶
type MatchingType int
const ( Fuzzy MatchingType = iota AlwaysTop TopWhenFuzzyMatch AlwaysBottom AlwaysTopOnEmptySearch )
Click to show internal directories.
Click to hide internal directories.