it2 text search
Search buffer contents for patterns
Synopsis
it2 text search <session-id> <pattern> [flags]
Description
Find text patterns in the session buffer with optional regex support.
Examples:
it2 text find session123 "error"
it2 text find session123 "log.*Error" --regex
it2 text find session123 "function\s+\w+" --regex --case-sensitive
Options
-
--case-sensitive - Case sensitive search
-
--format(default "table") - Output format (table|json|yaml|text)
-
--line-numbers (default true) - Show line numbers in results
-
--max-results(default 100) - Maximum number of results to return
-
--regex - Treat pattern as regular expression
-
--timeout(default "5s") - Command timeout
-
--url(default "ws://localhost:1912") - iTerm2 WebSocket URL
-
--whole-word - Match whole words only
See Also
- it2 text - Text and buffer operations in iTerm2
- it2 text clear-buffer - Clear screen buffer contents
- it2 text find - Find text in session buffer
- it2 text get-buffer - Get buffer contents of a session (alias to 'session get-buffer')
- it2 text get-contents - Get specific line ranges from a session buffer
- it2 text get-cursor - Get cursor position and state
- it2 text get-screen - Get current screen contents of a session
- it2 text highlight - Temporarily highlight text patterns
- it2 text inject - Inject data into a session as if it came from the program
- it2 text replace - Replace text in session buffer
- it2 text select - Control text selection in a session
- it2 text send - Send text to a session
- it2 text set-cursor - Set cursor position
- it2 text set-size - Set the terminal grid size for a session