Documentation
¶
Overview ¶
Package session stores the workspace layout restored at the next launch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type State ¶
type State struct {
Root string `json:"root"`
Split bool `json:"split"`
SplitVertical bool `json:"splitVertical"`
SplitWidth float32 `json:"splitWidth"`
SplitHeight float32 `json:"splitHeight"`
ActivePane int `json:"activePane"`
Left PaneState `json:"left"`
Right PaneState `json:"right"`
SidebarOpen bool `json:"sidebarOpen"`
SidebarWidth float32 `json:"sidebarWidth"`
}
State is the workspace of the last launch.
type TabState ¶
type TabState struct {
Path string `json:"path"`
ScrollY float32 `json:"scrollY"`
// Draft names the recovery copy of the document's unsaved text, when
// keeping unsaved content is on; Untitled is its number for a document
// without a file.
Draft string `json:"draft,omitempty"`
Untitled int `json:"untitled,omitempty"`
// Language is the language an untitled document was given in the status
// bar, by name; "" for none. A tab with a path takes its language from
// the file name.
Language string `json:"language,omitempty"`
}
TabState is one tab of a pane: the file it shows and where it was scrolled.
Click to show internal directories.
Click to hide internal directories.