Documentation
¶
Index ¶
- Variables
- func Get(config string) error
- func SetupConfigOnDisk()
- func SetupDefaultThemeOnDisk()
- type AI
- type ActivationLabelWidget
- type ActivationMode
- type ActivationModifiers
- type AiKeys
- type AiListWrapper
- type AiScroll
- type Anchors
- type Anthropic
- type AnthropicPrompt
- type ApplicationActions
- type Applications
- type Bar
- type BarEntry
- type BarEntryWrapper
- type BarWrapper
- type Blacklist
- type BookmarkEntry
- type BookmarkGroup
- type Bookmarks
- type Box
- type BoxWidget
- type Builtins
- type Calc
- type Clipboard
- type Commands
- type Config
- type CustomCommand
- type CustomCommands
- type Dmenu
- type Emojis
- type EventType
- type Events
- type Finder
- type GeneralModule
- type ImageWidget
- type Keys
- type LabelWidget
- type List
- type ListItemWidget
- type ListWrapper
- type Margins
- type Plugin
- type PromptWidget
- type Runner
- type SSH
- type Scroll
- type Search
- type SearchWidget
- type SearchWrapper
- type SpinnerWidget
- type Switcher
- type Symbols
- type TextWrapper
- type Translation
- type UI
- type UICfg
- type Websearch
- type WebsearchEntry
- type Widget
- type Window
- type Windows
- type XdphPicker
Constants ¶
This section is empty.
Variables ¶
View Source
var Themes embed.FS
Functions ¶
func SetupConfigOnDisk ¶ added in v0.12.3
func SetupConfigOnDisk()
func SetupDefaultThemeOnDisk ¶ added in v0.12.3
func SetupDefaultThemeOnDisk()
Types ¶
type AI ¶ added in v0.9.0
type AI struct { GeneralModule `koanf:",squash"` Anthropic Anthropic `koanf:"anthropic"` }
type ActivationLabelWidget ¶
type ActivationLabelWidget struct { LabelWidget `koanf:",squash"` Overlay bool `koanf:"overlay"` HideModifier bool `koanf:"hide_modifier"` }
type ActivationMode ¶
type ActivationModifiers ¶ added in v0.11.0
type AiListWrapper ¶ added in v0.9.2
type AiListWrapper struct { BoxWidget `koanf:",squash"` Item LabelWidget `koanf:"item"` }
type AiScroll ¶ added in v0.9.0
type AiScroll struct { Widget `koanf:",squash"` List AiListWrapper `koanf:"list"` OverlayScrolling bool `koanf:"overlay_scrolling"` HScrollbarPolicy string `koanf:"h_scrollbar_policy"` VScrollbarPolicy string `koanf:"v_scrollbar_policy"` }
type Anthropic ¶ added in v0.9.0
type Anthropic struct {
Prompts []AnthropicPrompt `koanf:"prompts"`
}
type AnthropicPrompt ¶ added in v0.9.10
type ApplicationActions ¶ added in v0.9.10
type Applications ¶
type Applications struct { GeneralModule `koanf:",squash"` Actions ApplicationActions `koanf:"actions"` Cache bool `koanf:"cache"` ContextAware bool `koanf:"context_aware"` PrioritizeNew bool `koanf:"prioritize_new"` ShowGeneric bool `koanf:"show_generic"` }
type BarEntryWrapper ¶ added in v0.8.0
type BarEntryWrapper struct { BoxWidget `koanf:",squash"` Icon ImageWidget `koanf:"icon"` Label LabelWidget `koanf:"label"` }
type BarWrapper ¶ added in v0.8.0
type BarWrapper struct { BoxWidget `koanf:",squash"` Position string `koanf:"position"` Entry BarEntryWrapper `koanf:"entry"` }
type BookmarkEntry ¶ added in v0.10.0
type BookmarkGroup ¶ added in v0.10.1
type BookmarkGroup struct { Label string `koanf:"label"` Prefix string `koanf:"prefix"` IgnoreUnprefixed bool `koanf:"ignore_unprefixed"` Entries []BookmarkEntry `koanf:"entries"` }
type Bookmarks ¶ added in v0.10.0
type Bookmarks struct { GeneralModule `koanf:",squash"` Groups []BookmarkGroup `koanf:"groups"` Entries []BookmarkEntry `koanf:"entries"` }
type Box ¶
type Box struct { BoxWidget `koanf:",squash"` Scroll Scroll `koanf:"scroll"` AiScroll AiScroll `koanf:"ai_scroll"` Revert bool `koanf:"revert"` Search SearchWrapper `koanf:"search"` Bar BarWrapper `koanf:"bar"` }
type Builtins ¶
type Builtins struct { Applications Applications `koanf:"applications"` AI AI `koanf:"ai"` Bookmarks Bookmarks `koanf:"bookmarks"` Calc Calc `koanf:"calc"` Clipboard Clipboard `koanf:"clipboard"` Commands Commands `koanf:"commands"` CustomCommands CustomCommands `koanf:"custom_commands"` Emojis Emojis `koanf:"emojis"` Finder Finder `koanf:"finder"` Runner Runner `koanf:"runner"` SSH SSH `koanf:"ssh"` Switcher Switcher `koanf:"switcher"` Symbols Symbols `koanf:"symbols"` Websearch Websearch `koanf:"websearch"` Windows Windows `koanf:"windows"` XdphPicker XdphPicker `koanf:"xdph_picker"` Translation Translation `koanf:"translation"` }
type Calc ¶ added in v0.7.0
type Calc struct { GeneralModule `koanf:",squash"` RequireNumber bool `koanf:"require_number"` }
type Clipboard ¶
type Clipboard struct { GeneralModule `koanf:",squash"` AvoidLineBreaks bool `koanf:"avoid_line_breaks"` ImageHeight int `koanf:"image_height"` MaxEntries int `koanf:"max_entries"` Exec string `koanf:"exec"` }
type Commands ¶
type Commands struct {
GeneralModule `koanf:",squash"`
}
type Config ¶
type Config struct { ActivationMode ActivationMode `koanf:"activation_mode"` AsWindow bool `koanf:"as_window"` Bar Bar `koanf:"bar"` Builtins Builtins `koanf:"builtins"` CloseWhenOpen bool `koanf:"close_when_open"` DisableClickToClose bool `koanf:"disable_click_to_close"` Keys Keys `koanf:"keys"` Disabled []string `koanf:"disabled"` Events Events `koanf:"events"` ForceKeyboardFocus bool `koanf:"force_keyboard_focus"` HotreloadTheme bool `koanf:"hotreload_theme"` IgnoreMouse bool `koanf:"ignore_mouse"` AppLaunchPrefix string `koanf:"app_launch_prefix"` List List `koanf:"list"` Locale string `koanf:"locale"` Monitor string `koanf:"monitor"` Plugins []Plugin `koanf:"plugins"` Search Search `koanf:"search"` Terminal string `koanf:"terminal"` TerminalTitleFlag string `koanf:"terminal_title_flag"` Theme string `koanf:"theme"` ThemeBase []string `koanf:"theme_base"` Timeout int `koanf:"timeout"` Available []string `koanf:"-"` Hidden []string `koanf:"-"` IsService bool `koanf:"-"` }
var Cfg *Config
type CustomCommand ¶
type CustomCommands ¶
type CustomCommands struct { GeneralModule `koanf:",squash"` Commands []CustomCommand `koanf:"commands"` }
type Emojis ¶
type Emojis struct { GeneralModule `koanf:",squash"` Exec string `koanf:"exec"` ExecAlt string `koanf:"exec_alt"` ShowUnqualified bool `koanf:"show_unqualified"` }
type Finder ¶
type Finder struct { GeneralModule `koanf:",squash"` UseFD bool `koanf:"use_fd"` IgnoreGitIgnore bool `koanf:"ignore_gitignore"` Concurrency int `koanf:"concurrency"` PreviewImages bool `koanf:"preview_images"` }
type GeneralModule ¶
type GeneralModule struct { AutoSelect bool `koanf:"auto_select"` Blacklist []Blacklist `koanf:"blacklist"` Delay int `koanf:"delay"` EagerLoading bool `koanf:"eager_loading"` ExternalConfig bool `koanf:"external_config"` Hidden bool `koanf:"hidden"` History bool `koanf:"history"` Icon string `koanf:"icon"` KeepSort bool `koanf:"keep_sort"` MinChars int `koanf:"min_chars"` Name string `koanf:"name"` Placeholder string `koanf:"placeholder"` Prefix string `koanf:"prefix"` Refresh bool `koanf:"refresh"` ShowIconWhenSingle bool `koanf:"show_icon_when_single"` ShowSubWhenSingle bool `koanf:"show_sub_when_single"` SwitcherOnly bool `koanf:"switcher_only"` Theme string `koanf:"theme"` ThemeBase []string `koanf:"theme_base"` Typeahead bool `koanf:"typeahead"` Weight int `koanf:"weight"` OnSelect string `koanf:"on_select"` OutputPlaceholder string `koanf:"output_placeholder"` // internal HasInitialSetup bool `koanf:"-"` IsSetup bool `koanf:"-"` }
type ImageWidget ¶
type Keys ¶ added in v0.11.0
type Keys struct { AcceptTypeahead []string `koanf:"accept_typeahead"` ActivationModifiers ActivationModifiers `koanf:"activation_modifiers"` TriggerLabels string `koanf:"trigger_labels"` Ai AiKeys `koanf:"ai"` Close []string `koanf:"close"` Next []string `koanf:"next"` Prev []string `koanf:"prev"` RemoveFromHistory []string `koanf:"remove_from_history"` ResumeQuery []string `koanf:"resume_query"` ToggleExactSearch []string `koanf:"toggle_exact_search"` }
type LabelWidget ¶
type List ¶
type List struct { Cycle bool `koanf:"cycle"` DynamicSub bool `koanf:"dynamic_sub"` KeyboardScrollStyle string `koanf:"keyboard_scroll_style"` MaxEntries int `koanf:"max_entries"` Placeholder string `koanf:"placeholder"` ShowInitialEntries bool `koanf:"show_initial_entries"` SingleClick bool `koanf:"single_click"` VisibilityThreshold int `koanf:"visibility_threshold"` }
type ListItemWidget ¶
type ListItemWidget struct { BoxWidget `koanf:",squash"` Revert bool `koanf:"revert"` ActivationLabel ActivationLabelWidget `koanf:"activation_label"` Icon ImageWidget `koanf:"icon"` Text TextWrapper `koanf:"text"` }
type ListWrapper ¶
type ListWrapper struct { AlwaysShow bool `koanf:"always_show"` Grid bool `koanf:"grid"` Item ListItemWidget `koanf:"item"` MarkerColor string `koanf:"marker_color"` MaxHeight int `koanf:"max_height"` MaxWidth int `koanf:"max_width"` MinHeight int `koanf:"min_height"` MinWidth int `koanf:"min_width"` Orientation string `koanf:"orientation"` Placeholder LabelWidget `koanf:"placeholder"` Widget `koanf:",squash"` }
type Plugin ¶
type Plugin struct { GeneralModule `koanf:",squash"` Cmd string `koanf:"cmd"` CmdAlt string `koanf:"cmd_alt"` Entries []util.Entry `koanf:"entries"` LabelColumn int `koanf:"label_column"` Matching util.MatchingType `koanf:"matching"` RecalculateScore bool `koanf:"recalculate_score,omitempty"` ResultColumn int `koanf:"result_column"` Separator string `koanf:"separator"` Src string `koanf:"src"` SrcOnce string `koanf:"src_once"` Terminal bool `koanf:"terminal"` Parser string `koanf:"parser"` KvSeparator string `koanf:"kv_separator"` Output bool `koanf:"output"` Keywords []string `koanf:"keywords"` }
type PromptWidget ¶
type PromptWidget struct { LabelWidget `koanf:",squash"` ImageWidget `koanf:",squash"` Text string `koanf:"text"` Icon string `koanf:"icon"` }
type SSH ¶
type SSH struct { GeneralModule `koanf:",squash"` ConfigFile string `koanf:"config_file"` HostFile string `koanf:"host_file"` }
type Scroll ¶
type Scroll struct { Widget `koanf:",squash"` List ListWrapper `koanf:"list"` OverlayScrolling bool `koanf:"overlay_scrolling"` HScrollbarPolicy string `koanf:"h_scrollbar_policy"` VScrollbarPolicy string `koanf:"v_scrollbar_policy"` }
type SearchWidget ¶
type SearchWidget struct {
Widget `koanf:",squash"`
}
type SearchWrapper ¶
type SearchWrapper struct { BoxWidget `koanf:",squash"` Revert bool `koanf:"revert"` Input SearchWidget `koanf:"input"` Prompt PromptWidget `koanf:"prompt"` Clear ImageWidget `koanf:"clear"` Spinner SpinnerWidget `koanf:"spinner"` }
type SpinnerWidget ¶
type SpinnerWidget struct {
Widget `koanf:",squash"`
}
type Switcher ¶
type Switcher struct {
GeneralModule `koanf:",squash"`
}
type Symbols ¶ added in v0.9.8
type Symbols struct { GeneralModule `koanf:",squash"` AfterCopy string `koanf:"after_copy"` }
type TextWrapper ¶
type TextWrapper struct { BoxWidget `koanf:",squash"` Label LabelWidget `koanf:"label"` Revert bool `koanf:"revert"` Sub LabelWidget `koanf:"sub"` }
type Translation ¶ added in v0.12.0
type Translation struct { GeneralModule `koanf:",squash"` Provider string `koanf:"provider"` }
type UI ¶
type UI struct { Anchors Anchors `koanf:"anchors"` Fullscreen bool `koanf:"fullscreen"` IgnoreExclusive bool `koanf:"ignore_exclusive"` Window Window `koanf:"window"` // internal AlignMap map[string]gtk.Align `koanf:"-"` IconSizeMap map[string]gtk.IconSize `koanf:"-"` IconSizeIntMap map[string]int `koanf:"-"` JustifyMap map[string]gtk.Justification `koanf:"-"` OrientationMap map[string]gtk.Orientation `koanf:"-"` ScrollPolicyMap map[string]gtk.PolicyType `koanf:"-"` }
func (*UI) InitUnitMaps ¶
func (u *UI) InitUnitMaps()
type Websearch ¶
type Websearch struct { GeneralModule `koanf:",squash"` Entries []WebsearchEntry `koanf:"entries"` }
type WebsearchEntry ¶ added in v0.9.7
type Widget ¶
type Widget struct { CssClasses []string `koanf:"css_classes"` HAlign string `koanf:"h_align"` HExpand bool `koanf:"h_expand"` Height int `koanf:"height"` Hide bool `koanf:"hide"` Margins Margins `koanf:"margins"` Name string `koanf:"name"` Opacity float64 `koanf:"opacity"` VAlign string `koanf:"v_align"` VExpand bool `koanf:"h_expand"` Width int `koanf:"width"` }
type Windows ¶
type Windows struct {
GeneralModule `koanf:",squash"`
}
type XdphPicker ¶ added in v0.11.4
type XdphPicker struct {
GeneralModule `koanf:",squash"`
}
Click to show internal directories.
Click to hide internal directories.