summaryrefslogtreecommitdiff
path: root/doc/it/autogen/user/trigger_commands.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-08-15 12:36:01 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-08-15 12:36:01 +0200
commit50bedd10b6ccbfce11e171560c1f318764f5987b (patch)
treeadd4c9a7f23734d1f6823b23f77cc63c471f3e42 /doc/it/autogen/user/trigger_commands.adoc
parentcb8b60028b990c509048e6d2d2a95adcd03c1292 (diff)
downloadweechat-50bedd10b6ccbfce11e171560c1f318764f5987b.zip
core: update translations
Diffstat (limited to 'doc/it/autogen/user/trigger_commands.adoc')
-rw-r--r--doc/it/autogen/user/trigger_commands.adoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/it/autogen/user/trigger_commands.adoc b/doc/it/autogen/user/trigger_commands.adoc
index de16fba34..ee161ede8 100644
--- a/doc/it/autogen/user/trigger_commands.adoc
+++ b/doc/it/autogen/user/trigger_commands.adoc
@@ -27,11 +27,12 @@ listdefault: list default triggers
addoff: add a trigger (disabled)
addreplace: add or replace an existing trigger
name: name of trigger
- hook: signal, hsignal, modifier, print, command, command_run, timer, config, focus
+ hook: signal, hsignal, modifier, line, print, command, command_run, timer, config, focus
arguments: arguments for the hook, depending on hook (separated by semicolons):
signal: name(s) of signal (required)
hsignal: name(s) of hsignal (required)
modifier: name(s) of modifier (required)
+ line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags
print: buffer, tags, message, strip colors
command: command (required), description, arguments, description of arguments, completion
command_run: command(s) (required)
@@ -69,7 +70,7 @@ When a trigger callback is called, following actions are performed, in this orde
1. check conditions; if false, exit
2. replace text using POSIX extended regular expression(s) (if defined in trigger)
3. execute command(s) (if defined in trigger)
- 4. exit with a return code (except for modifiers and focus)
+ 4. exit with a return code (except for modifier, line and focus)
5. perform post action
Examples (you can also look at default triggers with /trigger listdefault):