config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pane

type Pane struct {
	Dir     string   `toml:"dir"`
	Zoom    bool     `toml:"zoom"`
	Split   string   `toml:"split"`
	Scripts []string `toml:"scripts"`
}

Pane contains a pane configuration

type Session

type Session struct {
	Name          string   `toml:"name"`
	Dir           string   `toml:"dir"`
	ClearPanes    bool     `toml:"clear-panes"`
	SelectWindow  string   `toml:"select-window"`
	SelectPane    int      `toml:"select-pane"`
	WindowScripts []string `toml:"window-scripts"`
	Windows       []Window `toml:"windows"`
}

Session contains a tmux session configuration

func Parse

func Parse(reader io.ReadCloser) (Session, error)

Parse return a sessionConfig from a io.Reader

type Window

type Window struct {
	Name        string   `toml:"name"`
	Dir         string   `toml:"dir"`
	Layout      string   `toml:"layout"`
	Sync        bool     `toml:"sync"`
	Scripts     []string `toml:"scripts"`
	PaneScripts []string `toml:"pane-scripts"`
	Panes       []Pane   `toml:"panes"`
}

Window contains a window configuration

Jump to

Keyboard shortcuts

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