processors

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 11 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
	Sub        string
	Img        string
	Exec       string
	Terminal   bool
	Icon       string
	Searchable string
	Notifyable bool
	Class      string
}

type Processor

type Processor struct {
	Name   string `json:"name"`
	Prefix string `json:"prefix"`
}

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