Documentation ¶
Index ¶
Constants ¶
View Source
const ( OkButtonExecute = OkButton("Execute") OkButtonPrint = OkButton("Print") )
Variables ¶
View Source
var (
ErrInvalidTheme = errors.New("invalid theme")
)
Functions ¶
func ApplyConfig ¶
Types ¶
type Config ¶
type Config struct {
Theme string `` /* 130-byte string literal not displayed */
}
func DefaultConfig ¶
func DefaultConfig() Config
func (*Config) GetSelectedTheme ¶
func (c *Config) GetSelectedTheme(system *system.System) style.ThemeValues
type NamedTheme ¶
type NamedTheme struct { Name string `yaml:"name"` Values style.ThemeValues `yaml:"values" head_comment:"A color can be created from a color name (W3C name) or by a hex value in the format #ffffff."` }
type TUI ¶ added in v1.0.0
type TUI interface { ApplyConfig(cfg Config, system *system.System) Print(m uimsg.Printable) PrintMessage(message string) PrintError(message string) Confirmation(confirm uimsg.Confirm, options ...confirm.Option) bool OpenEditor(path string, preferredEditor string) ShowLookup(snippets []model.Snippet) int ShowParameterForm(parameters []model.Parameter, okButton OkButton) ([]string, bool) ShowPicker(items []picker.Item, options ...tea.ProgramOption) (int, bool) ShowSync() sync.Screen }
type TUIOption ¶ added in v1.0.0
type TUIOption interface {
// contains filtered or unexported methods
}
TUIOption configures a TUI.
func WithScreen ¶
func WithScreen(screen tcell.Screen) TUIOption
WithScreen sets the screen for tview.
Click to show internal directories.
Click to hide internal directories.