Documentation
¶
Index ¶
- func Attach(name string) error
- func DisplaySessions() (string, error)
- func GetCurrentSession() (string, error)
- func HasSession(name string) error
- func KillSession(name string) error
- func KillWindow(windowID string) error
- func ListSessions() ([]string, error)
- func ListWindows() ([]string, error)
- func Ls() ([]string, error)
- func NewSession(name string) error
- func NewSessionBuilder(name string) *sessionBuilder
- func NewWindow(name, command, directory string) error
- func SelectWindow(name string) error
- func Switch(name string) error
- func SwitchClient(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
Attach attaches the current tmux instance to the given session.
NOTE: We can't use the `scripts` package because (for some unknown reason to me) tmux` requires that we bind `stdout`, `stderr`, and `stdin` to the spawned process for it to work.
func DisplaySessions ¶
DisplaySessions dynamically renders all the current active sessions and allows you to traverse to them.
func GetCurrentSession ¶
GetCurrentSession returns the name of the current tmux session.
func ListSessions ¶
ListSessions returns a list of all the running Tmux sessions
func ListWindows ¶
ListWindows returns a list of window IDs in the current session.
func NewSessionBuilder ¶
func NewSessionBuilder(name string) *sessionBuilder
NewSessionBuilder creates a new session
func SelectWindow ¶
SelectWindow selects (focuses) a window by name.
func Switch ¶
Switch ensures that you create/switch/attach to a new session by name.
The value of `name` is supposed to be a directory path.
func SwitchClient ¶
SwitchClient switches the client to the given session.
Types ¶
This section is empty.