Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDirectoryArgument = errors.New(
"expected a path to file, but found a directory",
)
Functions ¶
Types ¶
type App ¶
type App struct {
ConfigPath string
Root string
ShowPicker bool
Files []string
Editor *view.Editor
Model ui.Model
Reg *command.Registry
// contains filtered or unexported fields
}
App is one editor process: the paths resolved from the command line, the editor and its command registry, and the services attached to them. Build it with New, bring it up with Start, take it down with Stop
func New ¶ added in v0.1.31
New resolves the command line into the workspace root, the config path, and the files to open. It touches no editor state; call Start for that
func (*App) Start ¶ added in v0.2.3
Start brings the app up in order: editor and commands, named files, config and init files, the base options those establish, a saved session, then the attached services and the model
func (*App) WorkspaceTrusted ¶
WorkspaceTrusted reports whether the current workspace is trusted
Click to show internal directories.
Click to hide internal directories.