The trigger Tcl command
Defines or removes trigger's or provides information about existing macros
trigger define <optional options> <trigger-definition> trigger remove <trigger-id> trigger info [<trigger-id>]
To define a macro you can use the following definitions
<trigger-definition>:
<match-expression> <command-expression>
<optional options>
[-case | -nocase] ; Matches case sensitive / case insensitive
[-continue | -nocontinue] ; Continue finding looking for other matches, or stop matchin (continue is default for triggers)
[-nosub] ; In case of -regexp provide args() as words instead of the subresults
<match-expression>:
-cmd <command> | ; Matches the first word on a line
-globcmd <command> | ; Matches the first word on a line with the specified glob expression
-regexp <command> ; Matches the whole line with the specified regexp
<command-expression>
-command <tcl-code> |
-proc <tcl-procedurereturn value:
<trigger-id>