config

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Align

type Align struct {
	Horizontal string  `json:"horizontal,omitempty"`
	Vertical   string  `json:"vertical,omitempty"`
	Width      int     `json:"width,omitempty"`
	Margins    Margins `json:"margins,omitempty"`
}

type Clipboard added in v0.0.27

type Clipboard struct {
	ImageHeight int `json:"image_height,omitempty"`
	MaxEntries  int `json:"max_entries,omitempty"`
}

type Config

type Config struct {
	Placeholder           string    `json:"placeholder,omitempty"`
	NotifyOnFail          bool      `json:"notify_on_fail,omitempty"`
	ShowInitialEntries    bool      `json:"show_initial_entries,omitempty"`
	ShellConfig           string    `json:"shell_config,omitempty"`
	Terminal              string    `json:"terminal,omitempty"`
	Orientation           string    `json:"orientation,omitempty"`
	Fullscreen            bool      `json:"fullscreen,omitempty"`
	Modules               []Module  `json:"modules,omitempty"`
	External              []Module  `json:"external,omitempty"`
	Icons                 Icons     `json:"icons,omitempty"`
	Align                 Align     `json:"align,omitempty"`
	List                  List      `json:"list,omitempty"`
	Search                Search    `json:"search,omitempty"`
	DisableActivationMode bool      `json:"disable_activation_mode,omitempty"`
	Clipboard             Clipboard `json:"clipboard,omitempty"`
	Runner                Runner    `json:"runner,omitempty"`
}

func Get

func Get() *Config

type Icons

type Icons struct {
	Hide        bool `json:"hide,omitempty"`
	Size        int  `json:"size,omitempty"`
	ImageHeight int  `json:"image_height,omitempty"`
}

type List

type List struct {
	MarginTop   int  `json:"margin_top,omitempty"`
	Height      int  `json:"height,omitempty"`
	AlwaysShow  bool `json:"always_show,omitempty"`
	FixedHeight bool `json:"fixed_height,omitempty"`
}

type Margins

type Margins struct {
	Top    int `json:"top,omitempty"`
	Bottom int `json:"bottom,omitempty"`
	End    int `json:"end,omitempty"`
	Start  int `json:"start,omitempty"`
}

type Module

type Module struct {
	Prefix            string `json:"prefix,omitempty"`
	Name              string `json:"name,omitempty"`
	Src               string `json:"src,omitempty"`
	Cmd               string `json:"cmd,omitempty"`
	Transform         bool   `json:"transform,omitempty"`
	History           bool   `json:"history,omitempty"`
	SwitcherExclusive bool   `json:"switcher_exclusive,omitempty"`
}

type Runner added in v0.0.34

type Runner struct {
	Excludes []string
	Includes []string
}
type Search struct {
	Delay     int  `json:"delay,omitempty"`
	HideIcons bool `json:"hide_icons,omitempty"`
}

Jump to

Keyboard shortcuts

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