zellij

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 11 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapturePane

func CapturePane(ctx context.Context, pane mux.Pane) (mux.ScreenSnapshot, error)

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 ListPanes

func ListPanes(ctx context.Context) ([]mux.Pane, error)

func ListPanesWithOptions

func ListPanesWithOptions(ctx context.Context, options ListOptions) ([]mux.Pane, error)

Types

type CaptureOptions

type CaptureOptions struct {
	Run CommandRunner
}

type CommandRunner

type CommandRunner func(context.Context, ...string) (string, error)

type Env

type Env struct {
	SessionName string
	PaneID      string
}

type ListOptions

type ListOptions struct {
	Run      CommandRunner
	LookPath func(string) (string, error)
}

Jump to

Keyboard shortcuts

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