summaryrefslogtreecommitdiff
path: root/doc/en/autogen/user/trigger_commands.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en/autogen/user/trigger_commands.asciidoc')
-rw-r--r--doc/en/autogen/user/trigger_commands.asciidoc6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/en/autogen/user/trigger_commands.asciidoc b/doc/en/autogen/user/trigger_commands.asciidoc
index 5f3c36ac2..8624d9843 100644
--- a/doc/en/autogen/user/trigger_commands.asciidoc
+++ b/doc/en/autogen/user/trigger_commands.asciidoc
@@ -12,6 +12,7 @@
restart <name>|-all [<name>...]
show <name>
del <name>|-all [<name>...]
+ restore <name> [<name>...]
default -yes
monitor [<filter>]
@@ -54,7 +55,8 @@ return_code: return code in callback (ok (default), ok_eat, error)
show: show detailed info on a trigger (with some stats)
del: delete a trigger
-all: do action on all triggers
- default: restore default triggers
+ restore: restore trigger(s) with the default values (works only for default triggers)
+ default: delete all triggers and restore default ones
monitor: open the trigger monitor buffer, with optional filter:
filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; wildcard "*" is allowed in each trigger name
@@ -66,7 +68,7 @@ When a trigger callback is called, following actions are performed, in this orde
Examples (you can also look at default triggers with /trigger listdefault):
add text attributes *bold*, _underline_ and /italic/ (only in user messages):
- /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}$1${color:-bold}*== ==_(\S+)_==_${color:underline}$1${color:-underline}_== ==/(\S+)/==/${color:italic}$1${color:-italic}/"
+ /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re:1}${color:-italic}/"
hide nicklist bar on small terminals:
/trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"