summaryrefslogtreecommitdiff
path: root/doc/it/weechat_user.it.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-08-15 09:07:01 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-08-15 09:07:01 +0200
commit51bda896c8ec4c8b424ba731944758bbae9e5855 (patch)
tree1a77d1c7fef1f84355f041e1367384834859b2d1 /doc/it/weechat_user.it.adoc
parent66d11b7e46c4335034c476620e73222db94fd876 (diff)
downloadweechat-51bda896c8ec4c8b424ba731944758bbae9e5855.zip
doc: add list of variables that can be updated by type of trigger (user guide)
Diffstat (limited to 'doc/it/weechat_user.it.adoc')
-rw-r--r--doc/it/weechat_user.it.adoc30
1 files changed, 17 insertions, 13 deletions
diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc
index 4cf31acea..5fa7d1d4d 100644
--- a/doc/it/weechat_user.it.adoc
+++ b/doc/it/weechat_user.it.adoc
@@ -3975,20 +3975,24 @@ variable of the hashtable). +
If _var_ is not specified, the default variable is used, it depends on hook
type:
-[width="50%",cols="4,5m",options="header"]
-|===
-| Hook | Default variable
-| signal | tg_signal_data
-| hsignal |
-| modifier | tg_string
-| line | message
-| print | tg_message
-| command | tg_argv_eol1
-| command_run | tg_command
-| timer | tg_remaining_calls
-| config | tg_value
-| focus |
+[width="100%",cols="2,3,7",options="header"]
|===
+| Hook | Default variable | Update allowed ^(1)^
+| signal | tg_signal_data |
+| hsignal | |
+| modifier | tg_string | tg_string
+| line | message | buffer, buffer_name, y, date, date_printed, str_time, tags, notify_level, highlight, prefix, message
+| print | tg_message |
+| command | tg_argv_eol1 |
+| command_run | tg_command |
+| timer | tg_remaining_calls |
+| config | tg_value |
+| focus | |
+|===
+
+[NOTE]
+^(1)^ All variables can be updated in the trigger, but only these variables
+have an effect on the value returned by the trigger and used by WeeChat.
Many regular expressions can be separated by a space, for example:
"/regex1/replace1/var1 /regex2/replace2/var2".