it2 selection set
Set text selection range
Synopsis
it2 selection set [<session-id>] [flags]
Description
Set text selection using coordinates.
Coordinates can be specified as:
--start-x, --start-y, --end-x, --end-y (individual coordinates)
--start "x,y" --end "x,y" (coordinate pairs)
--range "x1,y1:x2,y2" (full range)
Options
-
--end - End position as 'x,y'
-
--end-x(default -1) - End column (0-based)
-
--end-y(default -1) - End row (0-based)
-
--mode(default "character") - Selection mode: character, word, line, smart, box, whole-line
-
--range - Full range as 'x1,y1:x2,y2'
-
--start - Start position as 'x,y'
-
--start-x(default -1) - Start column (0-based)
-
--start-y(default -1) - Start row (0-based)
Options inherited from parent commands
-
--format(default "text") - Output format (text, json, yaml) - affects how command results are displayed
-
--timeout - Timeout for API operations - how long to wait for iTerm2 to respond
-
--url - WebSocket URL for iTerm2 API - typically ws://localhost:1912 for local iTerm2
See Also
- it2 selection - Text selection operations in iTerm2
- it2 selection clear - Clear current text selection
- it2 selection get - Get current text selection