summaryrefslogtreecommitdiff
path: root/doc/pl/autogen
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-01-26 10:15:35 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-01-26 10:15:35 +0100
commit6d217ca8c54b53a3741992c63eefb704fc9de906 (patch)
tree6ed90c91b7a6e162c29ed8e15e084a4d54c98214 /doc/pl/autogen
parent73a4901fe1f3ed884efcbb49d204d1466215f89c (diff)
downloadweechat-6d217ca8c54b53a3741992c63eefb704fc9de906.zip
doc: fix regex examples to be compatible with FreeBSD
The following special sequences are not supported in regular expressions on FreeBSD: - "\w": replaced with "[a-zA-Z0-9_]" - "\S": replaced with "[^ ]" (it should be "[^ \t\n\r\f\v]", but in practice only spaces could be a problem when we use this sequence).
Diffstat (limited to 'doc/pl/autogen')
-rw-r--r--doc/pl/autogen/user/trigger_commands.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/pl/autogen/user/trigger_commands.adoc b/doc/pl/autogen/user/trigger_commands.adoc
index f3a075ca2..4a52cfb45 100644
--- a/doc/pl/autogen/user/trigger_commands.adoc
+++ b/doc/pl/autogen/user/trigger_commands.adoc
@@ -75,7 +75,7 @@ Kiedy callback triggera jest wywoływany, wykonywane są następujące akcje, w
Przykłady (możesz też spojrzeć na domyślne triggery za pomocą /trigger listdefault):
dodaje atrybuty tekstu *bold*, _underline_ i /italic/ (tylko w wiadomościach użytkowników):
- /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}/"
+ /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/"
ukrywa pasek z nickami na małych terminalach:
/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"