modules

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoogleURL     = "https://www.google.com/search?q=%TERM%"
	DuckDuckGoURL = "https://duckduckgo.com/?q=%TERM%"
	EcosiaURL     = "https://www.ecosia.org/search?q=%TERM%"
	YandexURL     = "https://yandex.com/search/?text=%TERM%"
)
View Source
const ApplicationsName = "applications"

Variables

This section is empty.

Functions

func Find added in v0.0.27

func Find(plugins []config.Plugin, name string) (config.Plugin, error)

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) IsSetup added in v0.1.1

func (a Applications) IsSetup() bool

func (Applications) KeepSort added in v0.1.4

func (Applications) KeepSort() bool

func (Applications) Name

func (a Applications) Name() string

func (Applications) Placeholder added in v0.1.1

func (a Applications) Placeholder() string

func (Applications) Prefix

func (a Applications) Prefix() string

func (Applications) Refresh added in v0.0.93

func (a Applications) Refresh()

func (*Applications) Setup added in v0.0.20

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

func (Applications) SetupData added in v0.1.1

func (a Applications) SetupData(_ *config.Config)

func (Applications) SwitcherOnly added in v0.1.0

func (a Applications) SwitcherOnly() 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) IsSetup added in v0.1.1

func (c Commands) IsSetup() bool

func (Commands) KeepSort added in v0.1.4

func (Commands) KeepSort() bool

func (Commands) Name added in v0.0.40

func (c Commands) Name() string

func (Commands) Placeholder added in v0.1.1

func (c Commands) Placeholder() string

func (Commands) Prefix added in v0.0.40

func (c Commands) Prefix() string

func (Commands) Refresh added in v0.0.93

func (c Commands) Refresh()

func (*Commands) Setup added in v0.0.40

func (c *Commands) Setup(cfg *config.Config)

func (*Commands) SetupData added in v0.1.1

func (c *Commands) SetupData(cfg *config.Config)

func (Commands) SwitcherOnly added in v0.1.0

func (c Commands) SwitcherOnly() bool

type CustomCommands added in v0.2.0

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

func (CustomCommands) Entries added in v0.2.0

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

func (CustomCommands) IsSetup added in v0.2.0

func (c CustomCommands) IsSetup() (_ bool)

func (CustomCommands) KeepSort added in v0.2.0

func (CustomCommands) KeepSort() bool

func (CustomCommands) Name added in v0.2.0

func (CustomCommands) Name() (_ string)

func (CustomCommands) Placeholder added in v0.2.0

func (c CustomCommands) Placeholder() (_ string)

func (CustomCommands) Prefix added in v0.2.0

func (c CustomCommands) Prefix() (_ string)

func (CustomCommands) Refresh added in v0.2.0

func (CustomCommands) Refresh()

func (*CustomCommands) Setup added in v0.2.0

func (c *CustomCommands) Setup(cfg *config.Config)

func (*CustomCommands) SetupData added in v0.2.0

func (c *CustomCommands) SetupData(cfg *config.Config)

func (CustomCommands) SwitcherOnly added in v0.2.0

func (c CustomCommands) SwitcherOnly() (_ bool)

type Dmenu added in v0.0.97

type Dmenu struct {
	Content     []string
	Separator   string
	LabelColumn int
	// contains filtered or unexported fields
}

func (Dmenu) Entries added in v0.0.97

func (d Dmenu) Entries(ctx context.Context, term string) []Entry

func (Dmenu) IsSetup added in v0.1.1

func (d Dmenu) IsSetup() bool

func (Dmenu) KeepSort added in v0.1.4

func (d Dmenu) KeepSort() bool

func (Dmenu) Name added in v0.0.97

func (Dmenu) Name() string

func (Dmenu) Placeholder added in v0.1.1

func (d Dmenu) Placeholder() string

func (Dmenu) Prefix added in v0.0.97

func (Dmenu) Prefix() string

func (Dmenu) Refresh added in v0.0.97

func (Dmenu) Refresh()

func (*Dmenu) Setup added in v0.0.97

func (d *Dmenu) Setup(cfg *config.Config)

func (*Dmenu) SetupData added in v0.1.1

func (d *Dmenu) SetupData(cfg *config.Config)

func (Dmenu) SwitcherOnly added in v0.1.0

func (Dmenu) SwitcherOnly() bool

type EngineInfo added in v0.0.83

type EngineInfo struct {
	Label string
	URL   string
}

type Entry

type Entry struct {
	Label            string       `json:"label,omitempty"`
	Sub              string       `json:"sub,omitempty"`
	Exec             string       `json:"exec,omitempty"`
	ExecAlt          string       `json:"exec_alt,omitempty"`
	Terminal         bool         `json:"terminal,omitempty"`
	Piped            Piped        `json:"-"`
	PipedAlt         Piped        `json:"-"`
	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:"-"`
	SpecialLabel     string       `json:"special_label,omitempty"`
	LastUsed         time.Time    `json:"-"`
	InitialClass     string       `json:"initial_class,omitempty"`
	OpenWindows      uint         `json:"-"`
}

func (Entry) Identifier

func (e Entry) Identifier() string

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) IsSetup added in v0.1.1

func (f Finder) IsSetup() bool

func (Finder) KeepSort added in v0.1.4

func (Finder) KeepSort() bool

func (Finder) Name added in v0.0.43

func (f Finder) Name() string

func (Finder) Placeholder added in v0.1.1

func (f Finder) Placeholder() string

func (Finder) Prefix added in v0.0.43

func (f Finder) Prefix() string

func (Finder) Refresh added in v0.0.93

func (f Finder) Refresh()

func (*Finder) Setup added in v0.0.43

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

func (*Finder) SetupData added in v0.1.1

func (f *Finder) SetupData(cfg *config.Config)

func (Finder) SwitcherOnly added in v0.1.0

func (f Finder) SwitcherOnly() 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) GetWindowAmount added in v0.0.65

func (h *Hyprland) GetWindowAmount(class string) uint

func (Hyprland) IsSetup added in v0.1.1

func (h Hyprland) IsSetup() bool

func (Hyprland) KeepSort added in v0.1.4

func (Hyprland) KeepSort() bool

func (Hyprland) Name

func (Hyprland) Name() string

func (Hyprland) Placeholder added in v0.1.1

func (h Hyprland) Placeholder() string

func (Hyprland) Prefix

func (h Hyprland) Prefix() string

func (Hyprland) Refresh added in v0.0.93

func (h Hyprland) Refresh()

func (*Hyprland) Setup added in v0.0.20

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

func (*Hyprland) SetupData added in v0.1.1

func (h *Hyprland) SetupData(cfg *config.Config)

func (Hyprland) SwitcherOnly added in v0.1.0

func (h Hyprland) SwitcherOnly() 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 Plugin added in v0.1.0

type Plugin struct {
	General config.Plugin
	// contains filtered or unexported fields
}

func (Plugin) Entries added in v0.1.0

func (e Plugin) Entries(ctx context.Context, term string) []Entry

func (Plugin) IsSetup added in v0.1.1

func (e Plugin) IsSetup() bool

func (Plugin) KeepSort added in v0.1.4

func (p Plugin) KeepSort() bool

func (Plugin) Name added in v0.1.0

func (e Plugin) Name() string

func (Plugin) Placeholder added in v0.1.1

func (e Plugin) Placeholder() string

func (Plugin) Prefix added in v0.1.0

func (e Plugin) Prefix() string

func (*Plugin) Refresh added in v0.1.0

func (e *Plugin) Refresh()

func (*Plugin) Setup added in v0.1.0

func (e *Plugin) Setup(cfg *config.Config)

func (*Plugin) SetupData added in v0.1.1

func (e *Plugin) SetupData(cfg *config.Config)

func (Plugin) SwitcherOnly added in v0.1.0

func (e Plugin) SwitcherOnly() bool

type Runner

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

func (Runner) Entries

func (r Runner) Entries(ctx context.Context, term string) []Entry

func (Runner) IsSetup added in v0.1.1

func (r Runner) IsSetup() bool

func (Runner) KeepSort added in v0.1.4

func (Runner) KeepSort() bool

func (Runner) Name

func (Runner) Name() string

func (Runner) Placeholder added in v0.1.1

func (r Runner) Placeholder() string

func (Runner) Prefix

func (r Runner) Prefix() string

func (Runner) Refresh added in v0.0.93

func (r Runner) Refresh()

func (*Runner) Setup added in v0.0.20

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

func (*Runner) SetupData added in v0.1.1

func (r *Runner) SetupData(cfg *config.Config)

func (Runner) SwitcherOnly added in v0.1.0

func (r Runner) SwitcherOnly() 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) IsSetup added in v0.1.1

func (s SSH) IsSetup() bool

func (SSH) KeepSort added in v0.1.4

func (SSH) KeepSort() bool

func (SSH) Name added in v0.0.41

func (s SSH) Name() string

func (SSH) Placeholder added in v0.1.1

func (s SSH) Placeholder() string

func (SSH) Prefix added in v0.0.41

func (s SSH) Prefix() string

func (*SSH) Refresh added in v0.0.93

func (s *SSH) Refresh()

func (*SSH) Setup added in v0.0.41

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

func (*SSH) SetupData added in v0.1.1

func (s *SSH) SetupData(cfg *config.Config)

func (SSH) SwitcherOnly added in v0.1.0

func (s SSH) SwitcherOnly() bool

type Switcher added in v0.0.31

type Switcher struct {
	// 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) IsSetup added in v0.1.1

func (s Switcher) IsSetup() bool

func (Switcher) KeepSort added in v0.1.4

func (Switcher) KeepSort() bool

func (Switcher) Name added in v0.0.31

func (s Switcher) Name() string

func (Switcher) Placeholder added in v0.1.1

func (s Switcher) Placeholder() string

func (Switcher) Prefix added in v0.0.31

func (s Switcher) Prefix() string

func (Switcher) Refresh added in v0.0.93

func (s Switcher) Refresh()

func (*Switcher) Setup added in v0.0.31

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

func (*Switcher) SetupData added in v0.1.1

func (s *Switcher) SetupData(cfg *config.Config)

func (Switcher) SwitcherOnly added in v0.1.0

func (s Switcher) SwitcherOnly() 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) IsSetup added in v0.1.1

func (w Websearch) IsSetup() bool

func (Websearch) KeepSort added in v0.1.4

func (Websearch) KeepSort() bool

func (Websearch) Name

func (Websearch) Name() string

func (Websearch) Placeholder added in v0.1.1

func (w Websearch) Placeholder() string

func (Websearch) Prefix

func (w Websearch) Prefix() string

func (Websearch) Refresh added in v0.0.93

func (w Websearch) Refresh()

func (*Websearch) Setup added in v0.0.20

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

func (*Websearch) SetupData added in v0.1.1

func (w *Websearch) SetupData(_ *config.Config)

func (Websearch) SwitcherOnly added in v0.1.0

func (w Websearch) SwitcherOnly() bool

type Workable added in v0.0.20

type Workable interface {
	Entries(ctx context.Context, term string) []Entry
	Prefix() string
	Name() string
	Placeholder() string
	SwitcherOnly() bool
	IsSetup() bool
	Setup(cfg *config.Config)
	SetupData(cfg *config.Config)
	Refresh()
	KeepSort() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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