kitty_create_marker
Create markers to highlight text patterns in a kitty window using literal strings, regular expressions, or custom Python functions.
Instructions
Create a marker that highlights text matching a pattern in a kitty window. Marker types: "text"/"itext" for literal matches, "regex"/"iregex" for regex matches, "function" for custom Python functions. Color groups 1-3 use different highlight colors as configured in kitty.conf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| self | No | Target the window this command runs in. | |
| match | No | Window match expression. | |
| marker_spec | Yes | Marker specification: first element is the type (text, itext, regex, iregex, function), followed by pairs of <color_group> <pattern>. Example: ["text", "1", "ERROR", "2", "WARNING"] or ["regex", "1", "\\bERROR\\b"]. Required. |