summaryrefslogtreecommitdiff
path: root/doc/en/autogen
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-01-22 13:48:42 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-01-22 13:48:42 +0100
commit5f6df8021b73c1da27161d238cd35180cce29727 (patch)
treedcb79e7db0ee27e94c8b433c68a5e2b2781a7c9f /doc/en/autogen
parent51491469e5c6311ccd9dd10830f62fd436af754f (diff)
downloadweechat-5f6df8021b73c1da27161d238cd35180cce29727.zip
core: add support of flags in regular expressions and highlight options, add irc options to customize/disable default nick highlight (task #11128)
New functions in C plugin API: - string_regex_flags - string_regcomp New irc options: - irc.look.highlight_server - irc.look.highlight_channel - irc.look.highlight_pv Regex flags are supported in following options/commands: - option weechat.look.highlight - option weechat.look.highlight_regex - options irc.look.highlight_{server|channel|pv} - option relay.network.allowed_ips - core command /filter - irc command /list - irc command /ignore - rmodifier command /rmodifier
Diffstat (limited to 'doc/en/autogen')
-rw-r--r--doc/en/autogen/user/irc_commands.txt4
-rw-r--r--doc/en/autogen/user/irc_options.txt15
-rw-r--r--doc/en/autogen/user/relay_options.txt2
-rw-r--r--doc/en/autogen/user/rmodifier_commands.txt2
-rw-r--r--doc/en/autogen/user/weechat_commands.txt1
-rw-r--r--doc/en/autogen/user/weechat_options.txt4
6 files changed, 23 insertions, 5 deletions
diff --git a/doc/en/autogen/user/irc_commands.txt b/doc/en/autogen/user/irc_commands.txt
index 42316c583..3d13c4263 100644
--- a/doc/en/autogen/user/irc_commands.txt
+++ b/doc/en/autogen/user/irc_commands.txt
@@ -172,6 +172,8 @@ reason: reason for quit
server: internal server name where ignore is working
channel: channel name where ignore is working
+Note: the regular expression can start with "(?-i)" to become case sensitive.
+
Examples:
ignore nick "toto" everywhere:
/ignore add toto
@@ -272,7 +274,7 @@ server_mask: list of servers must match this mask
channel: channel to list
server: server name
- regex: regular expression used to filter results
+ regex: regular expression used to filter results (case insensitive, can start by "(?-i)" to become case sensitive)
Examples:
list all channels on server (can be very slow on large networks):
diff --git a/doc/en/autogen/user/irc_options.txt b/doc/en/autogen/user/irc_options.txt
index d2cfb689b..c8b91b08e 100644
--- a/doc/en/autogen/user/irc_options.txt
+++ b/doc/en/autogen/user/irc_options.txt
@@ -158,6 +158,21 @@
** type: boolean
** values: on, off (default value: `on`)
+* [[option_irc.look.highlight_channel]] *irc.look.highlight_channel*
+** description: `comma separated list of words to highlight in channel buffers (case insensitive, use "(?-i)" at beginning of words to make them case sensitive; special variables $nick, $channel and $server are replaced by their value), these words are added to buffer local variable "highlight_words" only when buffer is created (it does not affect current buffers), an empty string disables default highlight on nick, examples: "$nick", "(?-i)$nick"`
+** type: string
+** values: any string (default value: `"$nick"`)
+
+* [[option_irc.look.highlight_pv]] *irc.look.highlight_pv*
+** description: `comma separated list of words to highlight in private buffers (case insensitive, use "(?-i)" at beginning of words to make them case sensitive; special variables $nick, $channel and $server are replaced by their value), these words are added to buffer local variable "highlight_words" only when buffer is created (it does not affect current buffers), an empty string disables default highlight on nick, examples: "$nick", "(?-i)$nick"`
+** type: string
+** values: any string (default value: `"$nick"`)
+
+* [[option_irc.look.highlight_server]] *irc.look.highlight_server*
+** description: `comma separated list of words to highlight in server buffers (case insensitive, use "(?-i)" at beginning of words to make them case sensitive; special variables $nick, $channel and $server are replaced by their value), these words are added to buffer local variable "highlight_words" only when buffer is created (it does not affect current buffers), an empty string disables default highlight on nick, examples: "$nick", "(?-i)$nick"`
+** type: string
+** values: any string (default value: `"$nick"`)
+
* [[option_irc.look.highlight_tags]] *irc.look.highlight_tags*
** description: `comma separated list of tags for messages that may produce highlight (usually any message from another user, not server messages,..)`
** type: string
diff --git a/doc/en/autogen/user/relay_options.txt b/doc/en/autogen/user/relay_options.txt
index e11887a88..a3cf672c9 100644
--- a/doc/en/autogen/user/relay_options.txt
+++ b/doc/en/autogen/user/relay_options.txt
@@ -49,7 +49,7 @@
** values: 0 .. 65535 (default value: `256`)
* [[option_relay.network.allowed_ips]] *relay.network.allowed_ips*
-** description: `regular expression with IPs allowed to use relay, example: "^(123.45.67.89|192.160.*)$"`
+** description: `regular expression with IPs allowed to use relay (case insensitive, use "(?-i)" at beginning to make it case sensitive), example: "^(123.45.67.89|192.160.*)$"`
** type: string
** values: any string (default value: `""`)
diff --git a/doc/en/autogen/user/rmodifier_commands.txt b/doc/en/autogen/user/rmodifier_commands.txt
index e9cf8cd65..18906369e 100644
--- a/doc/en/autogen/user/rmodifier_commands.txt
+++ b/doc/en/autogen/user/rmodifier_commands.txt
@@ -12,7 +12,7 @@ listdefault: list default rmodifiers
name: name of rmodifier
modifiers: comma separated list of modifiers
groups: action on groups found: comma separated list of groups (from 1 to 9) with optional "*" after number to hide group
- regex: regular expression
+ regex: regular expression (case insensitive, can start by "(?-i)" to become case sensitive)
del: delete a rmodifier
-all: delete all rmodifiers
default: restore default rmodifiers
diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt
index 1c223fb79..f04f5bdc0 100644
--- a/doc/en/autogen/user/weechat_commands.txt
+++ b/doc/en/autogen/user/weechat_commands.txt
@@ -219,6 +219,7 @@ disable: disable filters
- use '\t' to separate prefix from message, special chars like '|' must be escaped: '\|'
- if regex starts with '!', then matching result is reversed (use '\!' to start with '!')
- two regular expressions are created: one for prefix and one for message
+ - regex are case insensitive, they can start by "(?-i)" to become case sensitive
The default key alt+'=' toggles filtering on/off.
diff --git a/doc/en/autogen/user/weechat_options.txt b/doc/en/autogen/user/weechat_options.txt
index f35a1fa24..128f5a2ac 100644
--- a/doc/en/autogen/user/weechat_options.txt
+++ b/doc/en/autogen/user/weechat_options.txt
@@ -449,12 +449,12 @@
** values: on, off (default value: `off`)
* [[option_weechat.look.highlight]] *weechat.look.highlight*
-** description: `comma separated list of words to highlight (case insensitive comparison, words may begin or end with "*" for partial match)`
+** description: `comma separated list of words to highlight; case insensitive comparison (use "(?-i)" at beginning of words to make them case sensitive), words may begin or end with "*" for partial match; example: "test,(?-i)*toto*,flash*"`
** type: string
** values: any string (default value: `""`)
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
-** description: `regular expression used to check if a message has highlight or not, at least one match in string must be surrounded by word chars (alphanumeric, "-", "_" or "|"), regular expression is case sensitive, example: "FlashCode|flashy"`
+** description: `regular expression used to check if a message has highlight or not, at least one match in string must be surrounded by word chars (alphanumeric, "-", "_" or "|"), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "flashcode|flashy", "(?-i)FlashCode|flashy"`
** type: string
** values: any string (default value: `""`)