Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTheme ¶
ApplyTheme updates all themed style variables from the given config theme. Must be called before tui.New().
Types ¶
type Action ¶
type Action string
Action identifies a user-facing operation triggered by a key binding.
const ( ActionNextChannel Action = "next_channel" ActionPrevChannel Action = "prev_channel" ActionQuit Action = "quit" ActionChat Action = "chat" ActionCommand Action = "command" ActionCancel Action = "cancel" ActionSubmit Action = "submit" ActionPaletteUp Action = "palette_up" ActionPaletteDown Action = "palette_down" ActionScrollUp Action = "scroll_up" ActionScrollDown Action = "scroll_down" ActionJoin Action = "join" ActionLeave Action = "leave" ActionMsg Action = "msg" ActionOpen Action = "open" ActionMe Action = "me" ActionNick Action = "nick" ActionTheme Action = "theme" ActionSet Action = "set" ActionIRCQuit Action = "irc_quit" ActionRawMode Action = "raw_mode" ActionPicker Action = "picker" )
type ArgType ¶
type ArgType int
ArgType identifies what kind of completion a command argument expects.
type Command ¶
type Command struct {
Name string
Aliases []string
Desc string
Args []ArgType // completion types for each positional argument
Syntax []string // e.g. ["<#channel:channel>", "[code:string]"]
Subcommands []Command // nested sub-subcommands
}
Command describes an IRC command available in the palette.
type KeyMap ¶
KeyMap holds resolved key bindings for all modes.
func BuildKeyMap ¶
func BuildKeyMap(cfg config.KeysConfig) KeyMap
BuildKeyMap constructs a KeyMap by merging user config onto defaults. User overrides individual keys; unspecified keys keep their defaults.
Click to show internal directories.
Click to hide internal directories.