modules

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationsName = "applications"

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Generic Entry   `json:"generic,omitempty"`
	Actions []Entry `json:"actions,omitempty"`
}

type Applications

type Applications struct {
	// contains filtered or unexported fields
}

func (Applications) Entries

func (a Applications) Entries(_ string) []Entry

func (Applications) Name

func (a Applications) Name() string

func (Applications) Prefix

func (a Applications) Prefix() string

func (Applications) Setup added in v0.0.20

func (a Applications) Setup(cfg *config.Config) Workable

type Entry

type Entry struct {
	Label             string       `json:"label,omitempty"`
	Sub               string       `json:"sub,omitempty"`
	Exec              string       `json:"exec,omitempty"`
	Terminal          bool         `json:"terminal,omitempty"`
	Icon              string       `json:"icon,omitempty"`
	IconIsImage       bool         `json:"icon_is_image,omitempty"`
	HideText          bool         `json:"hide_text,omitempty"`
	Categories        []string     `json:"categories,omitempty"`
	Notifyable        bool         `json:"notifyable,omitempty"`
	Class             string       `json:"class,omitempty"`
	History           bool         `json:"history,omitempty"`
	HistoryIdentifier string       `json:"history_identifier,omitempty"`
	Matching          MatchingType `json:"matching,omitempty"`
	ScoreFinal        float64      `json:"score_final,omitempty"`
	MinScoreToInclude float64      `json:"min_score_to_include,omitempty"`
	ScoreFuzzy        int          `json:"score_fuzzy,omitempty"`
	Identifier        string       `json:"-"`
	Used              int          `json:"-"`
	DaysSinceUsed     int          `json:"-"`
	LastUsed          time.Time    `json:"-"`
}

type External

type External struct {
	ModuleName string
	// contains filtered or unexported fields
}

func (External) Entries

func (e External) Entries(term string) []Entry

func (External) Name

func (e External) Name() string

func (External) Prefix

func (e External) Prefix() string

func (External) Setup added in v0.0.20

func (e External) Setup(cfg *config.Config) Workable

type Hyprland

type Hyprland struct {
	// contains filtered or unexported fields
}

func (Hyprland) Entries

func (Hyprland) Entries(term string) []Entry

func (Hyprland) Name

func (Hyprland) Name() string

func (Hyprland) Prefix

func (h Hyprland) Prefix() string

func (Hyprland) Setup added in v0.0.20

func (h Hyprland) Setup(cfg *config.Config) Workable

type MatchingType added in v0.0.20

type MatchingType int
const (
	Fuzzy MatchingType = iota
	AlwaysTop
	AlwaysBottom
)

type Runner

type Runner struct {
	ShellConfig string
	// contains filtered or unexported fields
}

func (Runner) Entries

func (r Runner) Entries(term string) []Entry

func (Runner) Name

func (Runner) Name() string

func (Runner) Prefix

func (r Runner) Prefix() string

func (Runner) Setup added in v0.0.20

func (r Runner) Setup(cfg *config.Config) Workable

type Websearch

type Websearch struct {
	// contains filtered or unexported fields
}

func (Websearch) Entries

func (w Websearch) Entries(term string) []Entry

func (Websearch) Name

func (Websearch) Name() string

func (Websearch) Prefix

func (w Websearch) Prefix() string

func (Websearch) Setup added in v0.0.20

func (w Websearch) Setup(cfg *config.Config) Workable

type Workable added in v0.0.20

type Workable interface {
	Entries(term string) []Entry
	Prefix() string
	Name() string
	Setup(cfg *config.Config) Workable
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL