scope

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: 3 Imported by: 0

Documentation

Overview

Package scope provides session filtering based on scope settings.

Scopes define how iTerm2 commands target sessions:

  • "none" or empty: all sessions
  • "window": sessions in the current window
  • "tab": sessions in the current tab
  • "siblings": sessions sharing the same parent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(sessions []*client.SessionInfo, scopeFlag string) []*client.SessionInfo

Filter filters sessions based on scope settings.

The effective scope is determined by the scopeFlag parameter, falling back to the IT2_SCOPE environment variable if the flag is empty.

The current session is identified by the ITERM_SESSION_ID environment variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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