一键导入
therminal-plugin
// Use when the user wants to customize therminal terminal output — highlight patterns, add clickable hotspots, render widgets, or emit events for orchestrators. Writes pattern pack TOML files.
// Use when the user wants to customize therminal terminal output — highlight patterns, add clickable hotspots, render widgets, or emit events for orchestrators. Writes pattern pack TOML files.
| name | therminal-plugin |
| description | Use when the user wants to customize therminal terminal output — highlight patterns, add clickable hotspots, render widgets, or emit events for orchestrators. Writes pattern pack TOML files. |
You are authoring a therminal pattern pack — a TOML file that makes terminal output interactive without writing any Rust or rebuilding therminal.
[[pattern]] block with a match regex, a scope, and an
action..toml file in ~/.config/therminal/patterns/.
Therminal hot-reloads it immediately — no restart.Minimal working pack:
[[pattern]]
name = "done-marker"
match = '^\s*DONE\s*$'
scope = "finalized_line"
action = "emit_event"
[[pattern]]
option, every action type, all widget kinds, and regex constraints.Read schema.md first if you need to understand a field. Go straight to cookbook.md if you know roughly what you want to build.
Load this skill when the user says things like:
cargo build errors clickable"[[pattern]]. For two actions on the same match, write two
patterns with the same match value.regex crate. No lookahead/lookbehind, no backreferences.
Named captures: (?P<name>...).pack_name and pattern name must match [a-z0-9_-]+.After writing a pack, tell the user to run:
therminal semantic patterns stats --pack <pack-name>
A status = "error" line means the pack failed to load. The error message
will pinpoint the problem.