settings

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panel

type Panel struct {
	// contains filtered or unexported fields
}

Panel is the settings dialog body. Open it with c.Dialogs().Show(DialogOpts{Body: panel.Layout, ...}).

func New

func New(lang *langsrv.Service, scripts *scriptsrv.Service, install func(language string), onAppearance func(domain.GlobalConfigSpec)) *Panel

New builds the settings panel. install installs the default language server for a language (config key); it backs the Install buttons.

func (*Panel) Cancel

func (p *Panel) Cancel()

func (*Panel) Dirty

func (p *Panel) Dirty() bool

func (*Panel) Draft

func (p *Panel) Draft() domain.GlobalConfig

func (*Panel) Layout

func (p *Panel) Layout(c *ui.Ctx) ui.View

func (*Panel) LoadDefaults

func (p *Panel) LoadDefaults()

func (*Panel) PathWarn

func (p *Panel) PathWarn() bool

func (*Panel) Prepare

func (p *Panel) Prepare()

func (*Panel) Save

func (p *Panel) Save() error

func (*Panel) SetSecrets

func (p *Panel) SetSecrets(d secretui.Deps)

SetSecrets wires the secret key flows into the Security category.

Jump to

Keyboard shortcuts

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