modules

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationsName = "applications"

Variables

This section is empty.

Functions

func Find added in v0.0.27

func Find(modules []config.Module, name string) *config.Module

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(ctx context.Context, _ 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

func (Applications) SwitcherExclusive added in v0.0.31

func (a Applications) SwitcherExclusive() bool

type Commands added in v0.0.40

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

func (Commands) Entries added in v0.0.40

func (c Commands) Entries(ctx context.Context, term string) []Entry

func (Commands) Name added in v0.0.40

func (c Commands) Name() string

func (Commands) Prefix added in v0.0.40

func (c Commands) Prefix() string

func (Commands) Setup added in v0.0.40

func (cc Commands) Setup(cfg *config.Config) Workable

func (Commands) SwitcherExclusive added in v0.0.40

func (c Commands) SwitcherExclusive() bool

type Entry

type Entry struct {
	Label            string       `json:"label,omitempty"`
	Sub              string       `json:"sub,omitempty"`
	Exec             string       `json:"exec,omitempty"`
	RawExec          []string     `json:"raw_exec,omitempty"`
	Terminal         bool         `json:"terminal,omitempty"`
	Piped            Piped        `json:"piped,omitempty"`
	Icon             string       `json:"icon,omitempty"`
	IconIsImage      bool         `json:"icon_is_image,omitempty"`
	DragDrop         bool         `json:"drag_drop,omitempty"`
	DragDropData     string       `json:"drag_drop_data,omitempty"`
	Image            string       `json:"image,omitempty"`
	HideText         bool         `json:"hide_text,omitempty"`
	Categories       []string     `json:"categories,omitempty"`
	Searchable       string       `json:"searchable,omitempty"`
	MatchFields      int          `json:"match_fields,omitempty"`
	Class            string       `json:"class,omitempty"`
	History          bool         `json:"history,omitempty"`
	Matching         MatchingType `json:"matching,omitempty"`
	RecalculateScore bool         `json:"recalculate_score,omitempty"`
	ScoreFinal       float64      `json:"score_final,omitempty"`
	ScoreFuzzy       float64      `json:"score_fuzzy,omitempty"`
	Used             int          `json:"-"`
	DaysSinceUsed    int          `json:"-"`
	LastUsed         time.Time    `json:"-"`
}

func (Entry) Identifier

func (e Entry) Identifier() string

type External

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

func (External) Entries

func (e External) Entries(ctx context.Context, 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

func (External) SwitcherExclusive added in v0.0.31

func (e External) SwitcherExclusive() bool

type Finder added in v0.0.43

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

func (Finder) Entries added in v0.0.43

func (f Finder) Entries(ctx context.Context, term string) []Entry

func (Finder) Name added in v0.0.43

func (f Finder) Name() string

func (Finder) Prefix added in v0.0.43

func (f Finder) Prefix() string

func (Finder) Setup added in v0.0.43

func (Finder) Setup(cfg *config.Config) Workable

func (Finder) SwitcherExclusive added in v0.0.43

func (f Finder) SwitcherExclusive() bool

type Hyprland

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

func (Hyprland) Entries

func (Hyprland) Entries(ctx context.Context, 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

func (Hyprland) SwitcherExclusive added in v0.0.31

func (h Hyprland) SwitcherExclusive() bool

type MatchingType added in v0.0.20

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

type Piped added in v0.0.27

type Piped struct {
	Content string `json:"content,omitempty"`
	Type    string `json:"type,omitempty"`
}

type Runner

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

func (Runner) Entries

func (r Runner) Entries(ctx context.Context, 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

func (Runner) SwitcherExclusive added in v0.0.31

func (r Runner) SwitcherExclusive() bool

type SSH added in v0.0.41

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

func (SSH) Entries added in v0.0.41

func (s SSH) Entries(ctx context.Context, term string) []Entry

func (SSH) Name added in v0.0.41

func (s SSH) Name() string

func (SSH) Prefix added in v0.0.41

func (s SSH) Prefix() string

func (SSH) Setup added in v0.0.41

func (SSH) Setup(cfg *config.Config) Workable

func (SSH) SwitcherExclusive added in v0.0.41

func (s SSH) SwitcherExclusive() bool

type Switcher added in v0.0.31

type Switcher struct {
	Procs map[string][]Workable
	// contains filtered or unexported fields
}

func (Switcher) Entries added in v0.0.31

func (s Switcher) Entries(ctx context.Context, term string) []Entry

func (Switcher) Name added in v0.0.31

func (s Switcher) Name() string

func (Switcher) Prefix added in v0.0.31

func (s Switcher) Prefix() string

func (Switcher) Setup added in v0.0.31

func (s Switcher) Setup(cfg *config.Config) Workable

func (Switcher) SwitcherExclusive added in v0.0.31

func (s Switcher) SwitcherExclusive() bool

type Websearch

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

func (Websearch) Entries

func (w Websearch) Entries(ctx context.Context, 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

func (Websearch) SwitcherExclusive added in v0.0.31

func (w Websearch) SwitcherExclusive() bool

type Workable added in v0.0.20

type Workable interface {
	Entries(ctx context.Context, term string) []Entry
	Prefix() string
	Name() string
	SwitcherExclusive() bool
	Setup(cfg *config.Config) Workable
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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