Documentation
¶
Overview ¶
Package focus provides commands for managing focus in iTerm2.
This package implements focus management commands that allow users to:
- Monitor focus changes in real-time
- Get current focused window/tab/session
- Set focus to specific windows/tabs/sessions
- View focus change history
The focus system uses iTerm2's notification system to track focus changes and provides both synchronous operations (get/set) and asynchronous monitoring capabilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates the focus command with all subcommands.
Types ¶
type FocusEvent ¶
type FocusEvent struct {
Timestamp time.Time `json:"timestamp"`
Type string `json:"type"` // application, window, tab, session
ID string `json:"id,omitempty"` // window/tab/session ID
Status string `json:"status,omitempty"` // for windows: became_key, is_current, resigned_key
Active *bool `json:"active,omitempty"` // for application focus
Description string `json:"description"`
}
FocusEvent represents a focus change event
Click to show internal directories.
Click to hide internal directories.