config

package
v0.0.0-...-1f0cc76 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() (string, error)

func SocketPath

func SocketPath() string

Types

type ClientConfig

type ClientConfig struct {
	DetachKeybind string   `toml:"detach_keybind"`
	ForwardEnv    []string `toml:"forward_env"`
}

type Config

type Config struct {
	Daemon  DaemonConfig  `toml:"daemon"`
	Client  ClientConfig  `toml:"client"`
	Session SessionConfig `toml:"session"`
}

func Default

func Default() *Config

func Load

func Load() (*Config, error)

func LoadFrom

func LoadFrom(path string) (*Config, error)

type DaemonConfig

type DaemonConfig struct {
	SocketPath               string `toml:"socket_path"`
	AutoExit                 bool   `toml:"auto_exit"`
	DefaultScrollback        uint32 `toml:"default_scrollback"`
	StatePersistence         bool   `toml:"state_persistence"`
	StatePersistenceInterval int    `toml:"state_persistence_interval"`
}

type SessionConfig

type SessionConfig struct {
	DefaultCommand string `toml:"default_command"`
	ResizePolicy   string `toml:"resize_policy"`
}

Jump to

Keyboard shortcuts

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