summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-04-12 09:30:56 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-04-12 09:30:56 +0200
commit8bdd540df72c3a609e9d51a5c52cf2d65f96d79b (patch)
treef448d1bcda0cdb4769dd87abaa42c5cf06407ced /doc/it
parentc9329f6fb1805da4c18cdcb1d4da3077bd434ed9 (diff)
downloadweechat-8bdd540df72c3a609e9d51a5c52cf2d65f96d79b.zip
trigger: evaluate arguments of command when the trigger is created (closes #1472)
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/autogen/user/trigger_commands.adoc2
-rw-r--r--doc/it/weechat_user.it.adoc11
2 files changed, 7 insertions, 6 deletions
diff --git a/doc/it/autogen/user/trigger_commands.adoc b/doc/it/autogen/user/trigger_commands.adoc
index 2c24cb6f2..2b6c772dc 100644
--- a/doc/it/autogen/user/trigger_commands.adoc
+++ b/doc/it/autogen/user/trigger_commands.adoc
@@ -34,7 +34,7 @@ listdefault: list default triggers
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: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, see /help eval)
command_run: command(s) (required)
timer: interval (required), align on second, max calls
config: name(s) of option (required)
diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc
index 7637aa7e7..29650f526 100644
--- a/doc/it/weechat_user.it.adoc
+++ b/doc/it/weechat_user.it.adoc
@@ -4131,12 +4131,13 @@ The arguments depend on the hook used. They are separated by semicolons.
| command |
1. command name (priority allowed) (required) +
- 2. description +
- 3. arguments +
- 4. description of arguments +
- 5. completion |
+ 2. description (evaluated, see command <<command_weechat_eval,/eval>>) +
+ 3. arguments (evaluated, see command <<command_weechat_eval,/eval>>) +
+ 4. description of arguments (evaluated, see command <<command_weechat_eval,/eval>>) +
+ 5. completion (evaluated, see command <<command_weechat_eval,/eval>>) |
`+test+` +
- `+5000\|test+` |
+ `+5000\|test+` +
+ `+test;test command;arg1 arg2;arg1: description 1${\n}arg2: description 2+` |
link:weechat_plugin_api.it.html#_hook_command[hook_command]
| command_run |