Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IgnoredCmd is list of commands ignored by save session IgnoredCmd []string // DefaultCmd is a command used when the command is ignored DefaultCmd string )
Functions ¶
func BuildSession ¶
BuildSession build a session based on Session structure
func IsSessionExists ¶
IsSessionExists check if a session name is available on tmux or not
func SaveSessionToFile ¶
SaveSessionToFile save a session struct to a file name
Types ¶
type Command ¶
type Command struct {
Parts []string
}
Command is a helper for executable command inside tmux pane
type Pane ¶
type Pane struct { Commands []string `yaml:"commands"` Focus bool `yaml:"focus,omitempty"` Root string `yaml:"root,omitempty"` // contains filtered or unexported fields }
Pane handle each pane (single command line) in tmux
type Session ¶
type Session struct { // This is set from command line. Attach bool `yaml:"-"` Name string `yaml:"name,omitempty"` Windows []Window `yaml:"windows"` }
Session handle a tmux session, each session contain many Window
func LoadSession ¶
LoadSession loads session from a bytes slice
func LoadSessionFromFile ¶
LoadSessionFromFile try to load a session from file
type Window ¶
type Window struct { Name string `yaml:"name"` // This is some kind of incompatibility with teamocil, But I need to each pane have its own start path // The value from config is ignored here Root string `yaml:"root,omitempty"` Layout string `yaml:"layout"` Panes []interface{} `yaml:"panes"` RealPane []Pane `yaml:"-"` }
Window handle tmux window, each window can have multiple pane. tmux has limit for pane count base window layout
Click to show internal directories.
Click to hide internal directories.