tmux

package
v0.0.0-...-a88671f Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachToSession

func AttachToSession(session TmuxSession)

func CreateNewSession

func CreateNewSession(session TmuxSession) error

func IsInTmux

func IsInTmux() bool

func IsTmuxAvailable

func IsTmuxAvailable() bool

func SwitchToSession

func SwitchToSession(session TmuxSession)

Types

type PaneSplit

type PaneSplit struct {
	Direction string
	Size      string
	Command   string
	Path      string
}

type TmuxSession

type TmuxSession struct {
	Name     string
	Path     string
	Attached bool
	Env      map[string]string
	Command  string
	Split    PaneSplit
	Windows  []TmuxWindow
}

func ListExistingSessions

func ListExistingSessions() ([]TmuxSession, error)

type TmuxWindow

type TmuxWindow struct {
	Path    string
	Env     map[string]string
	Command string
}

Jump to

Keyboard shortcuts

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