processors

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 13 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 {
	Apps []Application `json:"apps,omitempty"`
	Prfx string        `json:"prfx,omitempty"`
}

func GetApplications

func GetApplications() *Applications

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) SetPrefix

func (a *Applications) SetPrefix(val string)

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"`
	Searchable      string    `json:"searchable,omitempty"`
	Categories      []string  `json:"categories,omitempty"`
	Notifyable      bool      `json:"notifyable,omitempty"`
	Class           string    `json:"class,omitempty"`
	History         bool      `json:"history,omitempty"`
	Identifier      string    `json:"-"`
	Used            int       `json:"-"`
	DaysSinceUsed   int       `json:"-"`
	LastUsed        time.Time `json:"-"`
	ScoreFuzzy      int       `json:"-"`
	ScoreFuzzyFinal float64   `json:"-"`
}

type External added in v0.0.6

type External struct {
	Prfx    string
	Nme     string
	Src     string
	Cmd     string
	History bool
}

func (External) Entries added in v0.0.6

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

func (External) Name added in v0.0.6

func (e External) Name() string

func (External) Prefix added in v0.0.6

func (e External) Prefix() string

func (*External) SetPrefix added in v0.0.6

func (e *External) SetPrefix(val string)

type Processor

type Processor struct {
	Prefix  string `json:"prefix,omitempty"`
	Name    string `json:"name,omitempty"`
	Src     string `json:"src,omitempty"`
	Cmd     string `json:"cmd,omitempty"`
	History bool   `json:"history,omitempty"`
}

type Runner

type Runner struct {
	Prfx        string
	ShellConfig string
	Aliases     map[string]string
}

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) SetPrefix

func (r *Runner) SetPrefix(val string)

type Websearch

type Websearch struct {
	Prfx string
}

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) SetPrefix

func (w *Websearch) SetPrefix(val string)

Jump to

Keyboard shortcuts

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