plugins

package
v1.99.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Filename = ".fox_plugins"
)

Variables

View Source
var (
	Input chan string
)

Functions

func Close

func Close()

Types

type Func

type Func func(path, base, dir string)

type Plugin

type Plugin struct {
	Name     string   `toml:"Name"`
	Prompt   string   `toml:"Prompt"`
	Pattern  string   `toml:"Pattern"`
	Options  string   `toml:"Options"`
	Commands []string `toml:"Commands"`
	// contains filtered or unexported fields
}

func (*Plugin) Execute

func (p *Plugin) Execute(file, base string, fn Func)

func (*Plugin) Match

func (p *Plugin) Match(s string) bool

type Plugins

type Plugins struct {
	Autostart map[string]Plugin `toml:"Autostart"`
	Hotkey    map[string]Plugin `toml:"Hotkey"`
}

func New

func New() *Plugins

func (*Plugins) Autostarts

func (ps *Plugins) Autostarts() []Plugin

Jump to

Keyboard shortcuts

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