Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirQuerier ¶
DirQuerier returns ranked directory suggestions for a typed fragment.
func NewZoxideDirQuerier ¶
func NewZoxideDirQuerier() DirQuerier
NewZoxideDirQuerier returns the production zoxide-backed directory querier, or nil when zoxide is unavailable.
type DirQuerierFunc ¶
DirQuerierFunc adapts a function to DirQuerier.
type Suggestions ¶
type Suggestions struct {
Suggestions []string `json:"suggestions"`
Recents []string `json:"recents"`
}
Suggestions is the directory data served to native clients.
func Query ¶
func Query(store *state.Store, querier DirQuerier, query string, limit int) (Suggestions, error)
Query ranks zoxide candidates and recent session directories with the same fuzzy matcher used by the retired terminal picker.
Click to show internal directories.
Click to hide internal directories.