modules

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 26 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

View Source
var (
	DmenuSocketAddrGet   = filepath.Join(util.TmpDir(), "walker-dmenu.sock")
	DmenuSocketAddrReply = filepath.Join(util.TmpDir(), "walker-dmenu-reply.sock")
)

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) History added in v0.4.0

func (a Applications) History() bool

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

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

func (Applications) Typeahead added in v0.4.0

func (a Applications) Typeahead() 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) History added in v0.4.0

func (c Commands) History() bool

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

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

func (Commands) Typeahead added in v0.4.0

func (c Commands) Typeahead() 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) History added in v0.4.0

func (c CustomCommands) History() bool

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

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)

func (CustomCommands) Typeahead added in v0.4.0

func (c CustomCommands) Typeahead() bool

type Dmenu added in v0.0.97

type Dmenu struct {
	Content     []string
	Separator   string
	LabelColumn int
	IsService   bool
	// 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) History added in v0.4.0

func (Dmenu) History() bool

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) ListenForReply added in v0.5.0

func (d Dmenu) ListenForReply()

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) Reply added in v0.5.0

func (Dmenu) Reply(res string)

func (Dmenu) Send added in v0.5.0

func (d Dmenu) Send()

func (*Dmenu) SetSeparator added in v0.5.0

func (d *Dmenu) SetSeparator(sep string)

func (*Dmenu) Setup added in v0.0.97

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

func (*Dmenu) SetupData added in v0.1.1

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

func (*Dmenu) StartListening added in v0.5.0

func (d *Dmenu) StartListening()

func (Dmenu) SwitcherOnly added in v0.1.0

func (Dmenu) SwitcherOnly() bool

func (Dmenu) Typeahead added in v0.4.0

func (Dmenu) Typeahead() bool

type EngineInfo added in v0.0.83

type EngineInfo struct {
	Label string
	URL   string
}

type Entry

type Entry struct {
	Categories       []string          `json:"categories,omitempty"`
	Class            string            `json:"class,omitempty"`
	DragDrop         bool              `json:"drag_drop,omitempty"`
	DragDropData     string            `json:"drag_drop_data,omitempty"`
	Exec             string            `json:"exec,omitempty"`
	ExecAlt          string            `json:"exec_alt,omitempty"`
	HideText         bool              `json:"hide_text,omitempty"`
	Icon             string            `json:"icon,omitempty"`
	IconIsImage      bool              `json:"icon_is_image,omitempty"`
	Image            string            `json:"image,omitempty"`
	InitialClass     string            `json:"initial_class,omitempty"`
	Label            string            `json:"label,omitempty"`
	MatchFields      int               `json:"match_fields,omitempty"`
	Matching         util.MatchingType `json:"matching,omitempty"`
	Path             string            `json:"path,omitempty"`
	RecalculateScore bool              `json:"recalculate_score,omitempty"`
	ScoreFinal       float64           `json:"score_final,omitempty"`
	ScoreFuzzy       float64           `json:"score_fuzzy,omitempty"`
	Searchable       string            `json:"searchable,omitempty"`
	SpecialLabel     string            `json:"special_label,omitempty"`
	Sub              string            `json:"sub,omitempty"`
	Terminal         bool              `json:"terminal,omitempty"`

	// internal
	DaysSinceUsed int       `json:"-"`
	History       bool      `json:"-"`
	LastUsed      time.Time `json:"-"`
	Module        string    `json:"-"`
	OpenWindows   uint      `json:"-"`
	Piped         Piped     `json:"-"`
	PipedAlt      Piped     `json:"-"`
	Used          int       `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) History added in v0.4.0

func (f Finder) History() bool

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

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

func (Finder) Typeahead added in v0.4.0

func (f Finder) Typeahead() 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) History added in v0.4.0

func (h Hyprland) History() bool

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

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

func (Hyprland) Typeahead added in v0.4.0

func (h Hyprland) Typeahead() bool

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) History added in v0.4.0

func (p Plugin) History() bool

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

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

func (Plugin) Typeahead added in v0.4.0

func (p Plugin) Typeahead() 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) History added in v0.4.0

func (r Runner) History() bool

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

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

func (Runner) Typeahead added in v0.4.0

func (r Runner) Typeahead() 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) History added in v0.4.0

func (s SSH) History() bool

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

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

func (SSH) Typeahead added in v0.4.0

func (s SSH) Typeahead() 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) History added in v0.4.0

func (s Switcher) History() bool

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

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

func (Switcher) Typeahead added in v0.4.0

func (s Switcher) Typeahead() 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) History added in v0.4.0

func (w Websearch) History() bool

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

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

func (Websearch) Typeahead added in v0.4.0

func (w Websearch) Typeahead() 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) bool
	SetupData(cfg *config.Config)
	Refresh()
	KeepSort() bool
	Typeahead() bool
	History() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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