jump

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatJumpCommand

func FormatJumpCommand(sessionName string) string

FormatJumpCommand returns a human-readable description of the jump command.

func ITerm2FocusByTTY added in v0.13.0

func ITerm2FocusByTTY(tty string) (bool, error)

ITerm2FocusByTTY brings the iTerm2 pane attached to tty (e.g. /dev/ttys031) to the front. It reports false, without error, when no pane has that tty.

func ITerm2FocusLocate added in v0.13.0

func ITerm2FocusLocate(tty string) (string, bool, error)

ITerm2FocusLocate focuses the pane like ITerm2FocusByTTY and also says where it is ("tab 3 · pane 1 of 4"), so a jump to a split pane next to the current one is not mistaken for nothing happening.

func ITerm2SplitPane

func ITerm2SplitPane(command string) error

ITerm2SplitPane creates a horizontal split in the current iTerm2 session and runs the given command in the new pane.

func IsITerm2

func IsITerm2() bool

IsITerm2 returns true if the current terminal is iTerm2.

func IsInsideTmux

func IsInsideTmux() bool

IsInsideTmux returns true if we're running inside a tmux session.

func IsTmuxAvailable

func IsTmuxAvailable() bool

IsTmuxAvailable checks if tmux is installed.

func SuspendAndAttach

func SuspendAndAttach(sessionName string) *exec.Cmd

SuspendAndAttach returns an exec.Cmd that attaches to (or switches to) a tmux session. Suitable for use with tea.ExecProcess.

func TTYForPID added in v0.13.0

func TTYForPID(pid int) string

TTYForPID returns the controlling terminal of pid as /dev/ttysNNN, or "" when the process has none (background or headless).

func TmuxAttach

func TmuxAttach(sessionName string) error

TmuxAttach attaches to a tmux session, taking over the current terminal.

func TmuxHasSession

func TmuxHasSession(sessionName string) bool

TmuxHasSession checks if a tmux session exists.

func TmuxSendKeys

func TmuxSendKeys(sessionName, keys string) error

TmuxSendKeys sends keystrokes to a tmux session.

Types

This section is empty.

Jump to

Keyboard shortcuts

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