Documentation
¶
Overview ¶
Package zellij discovers and inspects Zellij terminal multiplexer environments.
It provides helpers for detecting the current Zellij session and pane, listing active panes, and capturing pane screens.
Index ¶
- func CapturePane(ctx context.Context, pane mux.Pane) (mux.ScreenSnapshot, error)
- func CapturePaneWithOptions(ctx context.Context, pane mux.Pane, options CaptureOptions) (mux.ScreenSnapshot, error)
- func Current() registry.MultiplexerContext
- func CurrentWithEnv(env Env) registry.MultiplexerContext
- func ListPanes(ctx context.Context) ([]mux.Pane, error)
- func ListPanesWithOptions(ctx context.Context, options ListOptions) ([]mux.Pane, error)
- type CaptureOptions
- type CommandRunner
- type Env
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapturePane ¶
func CapturePaneWithOptions ¶
func CapturePaneWithOptions(ctx context.Context, pane mux.Pane, options CaptureOptions) (mux.ScreenSnapshot, error)
func Current ¶
func Current() registry.MultiplexerContext
func CurrentWithEnv ¶
func CurrentWithEnv(env Env) registry.MultiplexerContext
func ListPanesWithOptions ¶
Types ¶
type CaptureOptions ¶
type CaptureOptions struct {
Run CommandRunner
}
type ListOptions ¶
type ListOptions struct {
Run CommandRunner
LookPath func(string) (string, error)
}
Click to show internal directories.
Click to hide internal directories.