it2 text highlight

Temporarily highlight text patterns

Synopsis

it2 text highlight <session-id> <pattern> [flags]

Description

Temporarily highlight text patterns in the session buffer.

This creates temporary visual highlighting without modifying the actual text.

Examples:
it2 text highlight session123 "error"
it2 text highlight session123 "\b\w+@\w+\.\w+\b" --regex --color red
it2 text highlight session123 "" --clear

Options

--background

Background color for highlight

--case-sensitive

Case sensitive search

--clear

Clear existing highlights

--color (default "yellow")

Highlight color (yellow, red, green, blue, cyan, magenta)

--duration (default 5)

Highlight duration in seconds (0 = permanent until cleared)

--format (default "table")

Output format (table|json|yaml|text)

--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