app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package app provides commands for controlling the iTerm2 application.

The app commands provide functionality to interact with iTerm2 as a whole, including activation, window listing, and variable management. These commands are essential for getting context about the current state of iTerm2.

Key features:

  • activate: Bring iTerm2 to the foreground
  • list-windows: List all terminal windows with their structure
  • get-variable: Get application-level variables (including current context)
  • set-variable: Set user-defined application variables

The get-variable command is particularly useful for getting the current session, tab, or window ID:

it2 app get-variable id        # Current session ID
it2 app get-variable tab.id    # Current tab ID
it2 app get-variable windowId  # Current window ID

Examples:

it2 app activate --raise-all
it2 app list-windows
it2 app get-variable effectiveTheme
it2 app set-variable user.myvar "value"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the app command with all subcommands.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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