focus

package
v0.3.49 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SocketEnv overrides the app focus handoff socket path.
	SocketEnv = "QUESTMASTER_FOCUS_SOCKET"
)

Variables

This section is empty.

Functions

func DefaultSocketPath

func DefaultSocketPath() string

DefaultSocketPath returns the local socket path used by the app focus bridge.

func Send

func Send(ctx context.Context, socketPath string, direction Direction) error

Send delivers a focus handoff to the running native app and waits for an ack.

Types

type Direction

type Direction string

Direction is a ctrl+hjkl navigation direction.

const (
	Left  Direction = "left"
	Down  Direction = "down"
	Up    Direction = "up"
	Right Direction = "right"
)

func ParseDirection

func ParseDirection(input string) (Direction, error)

ParseDirection accepts both tmux/vim keys and canonical direction names.

Jump to

Keyboard shortcuts

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