Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandImpl ¶
type CommandImpl struct {
// contains filtered or unexported fields
}
func (CommandImpl) HasSession ¶
func (c CommandImpl) HasSession(id ID) (bool, error)
func (CommandImpl) JoinSession ¶
func (c CommandImpl) JoinSession(id ID) error
FIXME: this is not working
func (CommandImpl) NewSession ¶
func (c CommandImpl) NewSession(id ID, cfg SessionConfig) error
type Config ¶
type Config struct {
Sessions map[string]SessionConfig `json:"sessions"`
}
type FlagsAsConfig ¶
type FlagsAsConfig struct { // tmux flag: -f ConfigFile *string `json:"config_file" toml:"config_file"` Socket Socket `json:"socket" toml:"socket"` // tmux flag: -u TryUseUtf8 bool `json:"try_use_utf8" toml:"try_use_utf8"` // tmux flag: -v VerboseLogging bool `json:"verbose_logging" toml:"verbose_logging"` }
FlagsAsConfig allows to specify tmux flags in a structured way.
func (FlagsAsConfig) MarshalFlags ¶
func (f FlagsAsConfig) MarshalFlags(into *flags.ErrMut) (err error)
type FlagsAsString ¶
type FlagsAsString struct {
Flags []string `json:"flags" toml:"flags"`
}
FlagsAsString allows to specify flags passed to tmux as a string.
type IDMode ¶
type IDMode int
ENUM(
Index Name
)
func ParseIDMode ¶
ParseIDMode attempts to convert a string to a IDMode.
func (IDMode) MarshalText ¶
MarshalText implements the text marshaller method.
func (*IDMode) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type SessionConfig ¶
type SessionConfig struct { Directory *string `json:"directory"` SelectWindow *int `json:"select_window"` Windows []Window `json:"windows"` }
SessionConfig defines the layout of a tmux session
type Socket ¶
Click to show internal directories.
Click to hide internal directories.