Discover Packages
github.com/helloxz/zpad
internal
session
package
Version:
v0.3.2
Opens a new window with list of versions in this module.
Published: Nov 23, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package session stores the workspace layout restored at the next launch.
Exists reports whether dir has a session file.
Save writes s atomically to dir/session.json.
type PaneState struct {
Tabs []TabState `json:"tabs"`
Active int `json:"active"`
}
PaneState is the tabs of one pane and the one chosen.
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"`
}
State is the workspace of the last launch.
Default is the layout of a first launch.
Load reads dir/session.json. A missing or corrupt file returns the
defaults; a corrupt one is kept as session.json.bak.
type TabState struct {
Path string `json:"path"`
ScrollY float32 `json:"scrollY"`
}
TabState is one tab of a pane: the file it shows and where it was
scrolled.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.