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.
Click to show internal directories.
Click to hide internal directories.