summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-07-24 22:29:07 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-07-24 22:43:48 +0200
commit68ad24f2df0ace9788da801137dacf43b7fe806a (patch)
treed0fa35877ef78fa2931393a15cc91235354134a0 /doc/it
parent1796634d83b90eeb97ede6c238e4092aca948304 (diff)
downloadweechat-68ad24f2df0ace9788da801137dacf43b7fe806a.zip
core: add option weechat.look.highlight_disable_regex and buffer property "highlight_disable_regex" (closes #1798)
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/includes/autogen_api_hdata.it.adoc2
-rw-r--r--doc/it/includes/autogen_user_options.it.adoc6
-rw-r--r--doc/it/weechat_plugin_api.it.adoc7
-rw-r--r--doc/it/weechat_user.it.adoc35
4 files changed, 48 insertions, 2 deletions
diff --git a/doc/it/includes/autogen_api_hdata.it.adoc b/doc/it/includes/autogen_api_hdata.it.adoc
index c7511454e..e2722ee5a 100644
--- a/doc/it/includes/autogen_api_hdata.it.adoc
+++ b/doc/it/includes/autogen_api_hdata.it.adoc
@@ -631,6 +631,8 @@ _text_search_input_   (string) +
_highlight_words_   (string) +
_highlight_regex_   (string) +
_highlight_regex_compiled_   (pointer) +
+_highlight_disable_regex_   (string) +
+_highlight_disable_regex_compiled_   (pointer) +
_highlight_tags_restrict_   (string) +
_highlight_tags_restrict_count_   (integer) +
_highlight_tags_restrict_array_   (pointer, array_size: "highlight_tags_restrict_count") +
diff --git a/doc/it/includes/autogen_user_options.it.adoc b/doc/it/includes/autogen_user_options.it.adoc
index 9457d0656..c5ae369d7 100644
--- a/doc/it/includes/autogen_user_options.it.adoc
+++ b/doc/it/includes/autogen_user_options.it.adoc
@@ -750,6 +750,12 @@
** valori: qualsiasi stringa
** valore predefinito: `+""+`
+* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
+** descrizione: pass:none[POSIX extended regular expression used to prevent any highlight from a message: this option has higher priority over other highlight options (if the string is found in the message, the highlight is disabled and the other options are ignored), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "<flash.*>", "(?-i)<Flash.*>"]
+** tipo: stringa
+** valori: qualsiasi stringa
+** valore predefinito: `+""+`
+
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** descrizione: pass:none[POSIX extended regular expression used to check if a message has highlight or not, at least one match in string must be surrounded by delimiters (chars different from: alphanumeric, "-", "_" and "|"), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "flashcode|flashy", "(?-i)FlashCode|flashy"]
** tipo: stringa
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index 391e47165..5f939470c 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -13785,6 +13785,8 @@ Argomenti:
** _text_search_input_: input salvato prima della ricerca nel testo
** _highlight_words_: elenco di parole da evidenziare
// TRANSLATION MISSING
+** _highlight_disable_regex_: POSIX extended regular expression for disabling highlight
+// TRANSLATION MISSING
** _highlight_regex_: POSIX extended regular expression for highlight
// TRANSLATION MISSING
** _highlight_tags_restrict_: restrict highlights to messages with these tags
@@ -13838,6 +13840,7 @@ Argomenti:
* _property_: nome proprietà:
** _plugin_: puntatore al plugin che ha creato questo buffer (NULL
per il buffer principale di WeeChat)
+** _highlight_disable_regex_compiled_: espressione regolare _highlight_disable_regex_ compilata
** _highlight_regex_compiled_: espressione regolare _highlight_regex_ compilata
Valore restituito:
@@ -13996,6 +13999,10 @@ Properties:
parole evidenziate nel buffer.
// TRANSLATION MISSING
+| highlight_disable_regex | | any string
+| POSIX extended regular expression for disabling highlight.
+
+// TRANSLATION MISSING
| highlight_regex | | qualsiasi stringa
| POSIX extended regular expression for highlight.
diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc
index 9911d28b3..35a983465 100644
--- a/doc/it/weechat_user.it.adoc
+++ b/doc/it/weechat_user.it.adoc
@@ -2393,6 +2393,37 @@ with `+/script install buffer_autoset.py+` and get help with `+/help buffer_auto
[[highlights]]
=== Highlights
+// TRANSLATION MISSING
+[[highlights_disable]]
+==== Disable highlights
+
+You can disable highlights with option
+<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
+(regular expression). +
+When a highlight is disabled with this option, the other highlight options are
+ignored.
+
+For example to disable any highlight on messages with a word beginning
+with "flash" between chevrons:
+
+----
+/set weechat.look.highlight_regex "<flash.*>"
+----
+
+This can also be set with the buffer property "highlight_disable_regex".
+
+Same example, specific to the current buffer:
+
+----
+/buffer set highlight_disable_regex <flash.*>
+----
+
+[NOTE]
+The buffer property "highlight_disable_regex" is not saved in configuration. +
+You can easily save it with the script _buffer_autoset.py_: you can install it
+with `+/script install buffer_autoset.py+` and get help with
+`+/help buffer_autoset+`.
+
[[highlights_words]]
==== Add words to highlight
@@ -2405,7 +2436,7 @@ You can add other words to highlight with the option
highlight your nick and "word1", "word2" and all words beginning with "test":
----
-/set weechat.look.highlight word1,word2,test*
+/set weechat.look.highlight "word1,word2,test*"
----
If you need a more specific rule for the word, you can use regular expressions
@@ -2413,7 +2444,7 @@ with the option <<option_weechat.look.highlight_regex,weechat.look.highlight_reg
for example to highlight words "flashcode", "flashcöde" and "flashy":
----
-/set weechat.look.highlight_regex flashc[oö]de|flashy
+/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----
The delimiters around words to highlight can be customized with the option