mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 16:53:14 +02:00
trigger: rename "once action" to "post action"
This commit is contained in:
@@ -2986,10 +2986,9 @@ A trigger has the following options (names are
|
||||
The return code of callback (default is `ok`, which should be used in almost
|
||||
all triggers, the other values are rarely used).
|
||||
|
||||
| once_action | `none`, `disable`, `delete` |
|
||||
Action to take with the trigger after the trigger executes once (default is
|
||||
`none` which should be used in almost all triggers, the other values are
|
||||
rarely used).
|
||||
| post_action | `none`, `disable`, `delete` |
|
||||
Action to take on the trigger after execution (default is `none` which should
|
||||
be used in almost all triggers, the other values are rarely used).
|
||||
|===
|
||||
|
||||
For example, the default _beep_ trigger has following options:
|
||||
@@ -3002,7 +3001,7 @@ trigger.trigger.beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
|
||||
trigger.trigger.beep.regex = ""
|
||||
trigger.trigger.beep.command = "/print -beep"
|
||||
trigger.trigger.beep.return_code = ok
|
||||
trigger.trigger.beep.once_action = none
|
||||
trigger.trigger.beep.post_action = none
|
||||
----
|
||||
|
||||
[[trigger_execution]]
|
||||
@@ -3014,8 +3013,8 @@ order, if triggers are globally enabled and if the trigger itself is enabled:
|
||||
. check trigger conditions: if false, exit
|
||||
. replace text in trigger using regular expression(s)
|
||||
. execute command(s)
|
||||
. exit with a return code (except for hooks _modifier_ and _focus_).
|
||||
. perform once action (when not `none`)
|
||||
. exit with a return code (except for hooks _modifier_ and _focus_)
|
||||
. perform post action (if different from `none`).
|
||||
|
||||
[[trigger_hook_arguments]]
|
||||
==== Hook arguments
|
||||
|
||||
Reference in New Issue
Block a user