tmux

package
v0.0.0-...-06c59fd Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdLine = &cmdLineRunner{}

Functions

func InsertText

func InsertText(runner cmdRunner, text string, bracketedPaste bool) error

func Run

func Run(runner cmdRunner, cmd any, args ...string) (out []byte, err error)

func RunInput

func RunInput(runner cmdRunner, input string, cmd any, args ...string) (out []byte, err error)

func Serialize

func Serialize(cmd any) (args []string)

Types

type CapturePane

type CapturePane struct {
	Pane   string `opt:"t"` // target pane
	StdOut bool   `opt:"b"` // dump to stdout
	Join   bool   `opt:"J"` // TODO:
	Escape bool   `opt:"e"`
	Start  string `opt:"S"`
	End    string `opt:"E"`
}

type LoadBuffer

type LoadBuffer struct {
	Name string `opt:"b"` // buffer name
	Path string // path to file
}

type PasteBuffer

type PasteBuffer struct {
	Name      string `opt:"b"` // buffer name
	Delete    bool   `opt:"d"` // delete buffer after pasting
	NoReplace bool   `opt:"r"` // do not replace separator
	Bracketed bool   `opt:"p"` // bracketed paste
}

type SendKeys

type SendKeys struct {
	Literal bool `opt:"l"` // processes the keys as literal UTF-8 characters
}

Jump to

Keyboard shortcuts

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