it2 session select

Select text in a session

Synopsis

it2 session select <session-id> <start-x> <start-y> <end-x> <end-y> [flags]

Description

Select text in a session using start and end coordinates.

Coordinates are 0-based with (0,0) at the top-left corner of the terminal.
You can then use 'it2 session copy' to copy the selected text.

Selection modes:
--mode character - Select by character (default)
--mode word - Select by word boundaries
--mode line - Select by whole lines
--mode smart - Smart selection
--mode box - Box/rectangular selection

Examples

Basic Selection

$ it2 session select session123 5 10 15 10

Multi-line Selection

$ it2 session select session123 0 5 20 8

Workflow Example

$ it2 session select session123 10 5 20 5  # Select text
$ it2 session copy session123              # Copy to clipboard

Options

--format (default "table")

Output format (table|json|yaml|text)

--mode (default "character")

Selection mode (character, word, line, smart, box)

--timeout (default "5s")

Command timeout

--url (default "ws://localhost:1912")

iTerm2 WebSocket URL

See Also