Skip to content

File Changed

Configuration for file-changed hooks with path-based command execution.

Commands run when a watched file changes on disk. Observational.

Map of file-path patterns to command configurations. Keys are glob patterns matched against the changed file path (e.g., “.rs”, “src/**”, "").

AttributeValue
Typeobject
Default{}

This section uses the following nested type definitions:

Configuration for individual file-changed commands with optional messages.

Properties:

PropertyTypeDefaultDescription
maxOutputLines`integernull`null
message`stringnull`null
notifyPerCommand`booleannull`null
runstring-The shell command to execute
showCommand`booleannull`true
showStderr`booleannull`null
showStdout`booleannull`null
timeout`integernull`null