summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/de/autogen/user/buflist_commands.adoc40
-rw-r--r--doc/de/autogen/user/buflist_options.adoc18
-rw-r--r--doc/de/autogen/user/script_options.adoc10
-rw-r--r--doc/de/autogen/user/weechat_commands.adoc11
-rw-r--r--doc/en/autogen/user/buflist_commands.adoc6
-rw-r--r--doc/en/autogen/user/buflist_options.adoc18
-rw-r--r--doc/en/autogen/user/script_options.adoc10
-rw-r--r--doc/en/autogen/user/weechat_commands.adoc11
-rw-r--r--doc/en/weechat_plugin_api.en.adoc12
-rw-r--r--doc/fr/autogen/user/buflist_commands.adoc8
-rw-r--r--doc/fr/autogen/user/buflist_options.adoc18
-rw-r--r--doc/fr/autogen/user/script_options.adoc10
-rw-r--r--doc/fr/autogen/user/weechat_commands.adoc97
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc12
-rw-r--r--doc/it/autogen/user/buflist_commands.adoc6
-rw-r--r--doc/it/autogen/user/buflist_options.adoc18
-rw-r--r--doc/it/autogen/user/script_options.adoc10
-rw-r--r--doc/it/autogen/user/weechat_commands.adoc11
-rw-r--r--doc/it/weechat_plugin_api.it.adoc12
-rw-r--r--doc/ja/autogen/user/buflist_commands.adoc40
-rw-r--r--doc/ja/autogen/user/buflist_options.adoc18
-rw-r--r--doc/ja/autogen/user/script_options.adoc10
-rw-r--r--doc/ja/autogen/user/weechat_commands.adoc11
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc14
-rw-r--r--doc/pl/autogen/user/buflist_commands.adoc6
-rw-r--r--doc/pl/autogen/user/buflist_options.adoc18
-rw-r--r--doc/pl/autogen/user/script_options.adoc10
-rw-r--r--doc/pl/autogen/user/weechat_commands.adoc11
28 files changed, 282 insertions, 194 deletions
diff --git a/doc/de/autogen/user/buflist_commands.adoc b/doc/de/autogen/user/buflist_commands.adoc
index c9030a1cf..47622b722 100644
--- a/doc/de/autogen/user/buflist_commands.adoc
+++ b/doc/de/autogen/user/buflist_commands.adoc
@@ -8,29 +8,33 @@
----
/buflist refresh
-refresh: erzwingt eine Aktualisierung des "buflist" Bar-Item
+refresh: force the refresh of the "buflist" bar item
-Die einzelnen Zeilen mit Buffern die dargestellt werden mittels String-Evaluation (siehe /help eval für das Format), mittels folgenden Optionen:
- - buflist.look.display_conditions: Bedingungen um einen Buffer in der Liste darzustellen
- - buflist.format.buffer: Format für den Buffer, der nicht der aktuell dargestellte Buffer ist
- - buflist.format.buffer_current: Format für den aktuell dargestellten Buffer
+The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options:
+ - buflist.look.display_conditions: conditions to display a buffer in the list
+ - buflist.format.buffer: format for a buffer which is not current buffer
+ - buflist.format.buffer_current: format for the current buffer
-Die folgenden Variablen können für obige Optionen genutzt werden:
- - buffer data (siehe hdata "buffer" in API Dokumentation für eine vollständige Liste), zum Beispiel:
+The following variables can be used in these options:
+ - buffer data (see hdata "buffer" in API doc for a complete list), for example:
- ${buffer.number}
- ${buffer.name}
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
- - zusätzliche Variablen die durch buflist bereitgestellt werden:
- - ${format_buffer}: der evaluierte Wert der Option buflist.format.buffer; dies kann in der Option buflist.format.buffer_current genutzt werden um zum Beispiel die Hintergrundfarbe zu verändern
- - ${format_number}: eingerückte Numer mit Trennzeichen (evaluiert für Option buflist.format.number)
- - ${number}: eingerückte Nummer, zum Beispiel " 1", falls die Anzahl der Buffer zwischen 10 und 99 liegt
- - ${indent}: Einrückung für Name (Channel und private Buffer werden eingerückt)
- - ${nick_prefix}: Nick-Präfix für einen Channel (wird nur genutzt falls die Option buflist.look.nick_prefix aktiviert ist)
- - ${name}: der Kurzname (falls einer gesetzt ist), mit einem Rückgriff auf den Originalnamen
- - ${color_hotlist}: die Farbe mit der höchsten Priorität für den entsprechenden Buffer (wird evaluiert mit Option buflist.format.hotlist_xxx wobei xxx der entsprechende Level ist)
- - ${format_hotlist}: die formatierte Hotlist (wird evaluiert mit Option buflist.format.hotlist)
- - ${hotlist}: die Hotlist in der Rohform
- - ${format_lag}: die Verzögerung für einen IRC Server-Buffer, ist leer falls es keine Verzögerung gibt (wird evaluiert mit Option buflist.format.lag)
+ - irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
+ - irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
+ - extra variables added by buflist for convenience:
+ - ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
+ - ${format_number}: indented number with separator (evaluation of option buflist.format.number)
+ - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
+ - ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
+ - ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
+ - ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
+ - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
+ - ${name}: the short name (if set), with a fallback on the name
+ - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
+ - ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
+ - ${hotlist}: the raw hotlist
+ - ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
----
diff --git a/doc/de/autogen/user/buflist_options.adoc b/doc/de/autogen/user/buflist_options.adoc
index 0ed35362b..ec7d4d0a3 100644
--- a/doc/de/autogen/user/buflist_options.adoc
+++ b/doc/de/autogen/user/buflist_options.adoc
@@ -6,13 +6,13 @@
** Beschreibung: pass:none[Format für eine Zeile mit einem Buffer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
-** Standardwert: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+`
+** Standardwert: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** Beschreibung: pass:none[Format für die Zeile mit dem ausgewählten Buffer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
-** Standardwert: `+"${color:lightgreen,blue}${format_buffer}"+`
+** Standardwert: `+"${color:,blue}${format_buffer}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** Beschreibung: pass:none[Format der Hotlist (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
@@ -56,12 +56,24 @@
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:default},"+`
+* [[option_buflist.format.indent]] *buflist.format.indent*
+** Beschreibung: pass:none[Zeichenkette die beim Einrücken von Channel und privaten Buffern angezeigt wird (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
+** Typ: Zeichenkette
+** Werte: beliebige Zeichenkette
+** Standardwert: `+" "+`
+
* [[option_buflist.format.lag]] *buflist.format.lag*
** Beschreibung: pass:none[Format für die Anzeige der Verzögerungsanzeige für IRC Serverbuffer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
+* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
+** Beschreibung: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)]
+** Typ: Zeichenkette
+** Werte: beliebige Zeichenkette
+** Standardwert: `+"${color_nick_prefix}${nick_prefix}"+`
+
* [[option_buflist.format.number]] *buflist.format.number*
** Beschreibung: pass:none[Format für die Darstellung der Buffernummer, hierbei ist die Variable ${number} die eingerückte Nummer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
** Typ: Zeichenkette
@@ -69,7 +81,7 @@
** Standardwert: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
-** Beschreibung: pass:none[Bedingungen für die Darstellung eines Buffers (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
+** Beschreibung: pass:none[Bedingungen wann ein Buffer dargestellt werden soll (Hinweis: Inhalt ist evaluiert, siehe /help buflist); Beispielsweise werden Server-Buffer versteckt, sofern sie mit dem Core-Buffer zusammengefügt worden sind: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${buffer.hidden}==0"+`
diff --git a/doc/de/autogen/user/script_options.adoc b/doc/de/autogen/user/script_options.adoc
index 303e64778..cdfd3efe9 100644
--- a/doc/de/autogen/user/script_options.adoc
+++ b/doc/de/autogen/user/script_options.adoc
@@ -237,13 +237,7 @@
** Standardwert: `+"%h/script"+`
* [[option_script.scripts.url]] *script.scripts.url*
-** Beschreibung: pass:none[URL mit dem Dateinamen, welches die Liste der Skripten enthält; standardmäßig wird HTTPS genutzt, siehe Option script.scripts.url_force_https]
+** Beschreibung: pass:none[URL für Datei mit der Auflistung aller Skripten]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
-** Standardwert: `+"http://weechat.org/files/plugins.xml.gz"+`
-
-* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
-** Beschreibung: pass:none[HTTPS wird für das Herunterladen der Indexdatei und der Skripten bevorzugt; diese Einstellung sollte nur deaktiviert werden falls Probleme beim Herunterladen auftreten]
-** Typ: boolesch
-** Werte: on, off
-** Standardwert: `+on+`
+** Standardwert: `+"https://weechat.org/files/plugins.xml.gz"+`
diff --git a/doc/de/autogen/user/weechat_commands.adoc b/doc/de/autogen/user/weechat_commands.adoc
index dea4dcb2d..21943eca3 100644
--- a/doc/de/autogen/user/weechat_commands.adoc
+++ b/doc/de/autogen/user/weechat_commands.adoc
@@ -285,9 +285,9 @@ Some variables are replaced in expression, using the format ${variable}, variabl
1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
3. a string with chars to hide (format: "hide:char,string")
- 4. a string with max chars (format: "cut:max,suffix,string")
- or max chars displayed on screen (format: "cutscr:max,suffix,string")
- 5. a color (format: "color:xxx")
+ 4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
+ or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
+ 5. a color (format: "color:xxx", see "Plugin API reference", function "color")
6. an info (format: "info:name,arguments", arguments are optional)
7. current date/time (format: "date" or "date:format")
8. an environment variable (format: "env:XXX")
@@ -314,9 +314,8 @@ Examples (simple strings):
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
- /eval -n ${cut:2,+,test} ==> te+
- /eval -n ${cut:2,+,こんにちは世界} ==> こん+
- /eval -n ${cutscr:2,+,こんにちは世界} ==> こ+
+ /eval -n ${cut:3,+,test} ==> tes+
+ /eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
diff --git a/doc/en/autogen/user/buflist_commands.adoc b/doc/en/autogen/user/buflist_commands.adoc
index ca80e8765..abe134263 100644
--- a/doc/en/autogen/user/buflist_commands.adoc
+++ b/doc/en/autogen/user/buflist_commands.adoc
@@ -22,11 +22,15 @@ The following variables can be used in these options:
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
+ - irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
+ - irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
- extra variables added by buflist for convenience:
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- - ${indent}: indentation for name (channel and private buffers are indented)
+ - ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
+ - ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
+ - ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${name}: the short name (if set), with a fallback on the name
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
diff --git a/doc/en/autogen/user/buflist_options.adoc b/doc/en/autogen/user/buflist_options.adoc
index cb487694a..019d946f0 100644
--- a/doc/en/autogen/user/buflist_options.adoc
+++ b/doc/en/autogen/user/buflist_options.adoc
@@ -6,13 +6,13 @@
** description: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
-** default value: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+`
+** default value: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** description: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
-** default value: `+"${color:lightgreen,blue}${format_buffer}"+`
+** default value: `+"${color:,blue}${format_buffer}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** description: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
@@ -56,12 +56,24 @@
** values: any string
** default value: `+"${color:default},"+`
+* [[option_buflist.format.indent]] *buflist.format.indent*
+** description: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /help buflist)]
+** type: string
+** values: any string
+** default value: `+" "+`
+
* [[option_buflist.format.lag]] *buflist.format.lag*
** description: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
+* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
+** description: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)]
+** type: string
+** values: any string
+** default value: `+"${color_nick_prefix}${nick_prefix}"+`
+
* [[option_buflist.format.number]] *buflist.format.number*
** description: pass:none[format for buffer number, ${number} is the indented number (note: content is evaluated, see /help buflist)]
** type: string
@@ -69,7 +81,7 @@
** default value: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
-** description: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)]
+** description: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist); for example to hide server buffers if they are merged with core buffer: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
** type: string
** values: any string
** default value: `+"${buffer.hidden}==0"+`
diff --git a/doc/en/autogen/user/script_options.adoc b/doc/en/autogen/user/script_options.adoc
index 122b9768f..ce23b0272 100644
--- a/doc/en/autogen/user/script_options.adoc
+++ b/doc/en/autogen/user/script_options.adoc
@@ -237,13 +237,7 @@
** default value: `+"%h/script"+`
* [[option_script.scripts.url]] *script.scripts.url*
-** description: pass:none[URL for file with list of scripts; by default HTTPS is forced, see option script.scripts.url_force_https]
+** description: pass:none[URL for file with list of scripts]
** type: string
** values: any string
-** default value: `+"http://weechat.org/files/plugins.xml.gz"+`
-
-* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
-** description: pass:none[force use of HTTPS for downloads (index and scripts); you should disable this option only if you have problems with the downloads]
-** type: boolean
-** values: on, off
-** default value: `+on+`
+** default value: `+"https://weechat.org/files/plugins.xml.gz"+`
diff --git a/doc/en/autogen/user/weechat_commands.adoc b/doc/en/autogen/user/weechat_commands.adoc
index 1ceded3cd..aaa5bc7e7 100644
--- a/doc/en/autogen/user/weechat_commands.adoc
+++ b/doc/en/autogen/user/weechat_commands.adoc
@@ -285,9 +285,9 @@ Some variables are replaced in expression, using the format ${variable}, variabl
1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
3. a string with chars to hide (format: "hide:char,string")
- 4. a string with max chars (format: "cut:max,suffix,string")
- or max chars displayed on screen (format: "cutscr:max,suffix,string")
- 5. a color (format: "color:xxx")
+ 4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
+ or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
+ 5. a color (format: "color:xxx", see "Plugin API reference", function "color")
6. an info (format: "info:name,arguments", arguments are optional)
7. current date/time (format: "date" or "date:format")
8. an environment variable (format: "env:XXX")
@@ -314,9 +314,8 @@ Examples (simple strings):
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
- /eval -n ${cut:2,+,test} ==> te+
- /eval -n ${cut:2,+,こんにちは世界} ==> こん+
- /eval -n ${cutscr:2,+,こんにちは世界} ==> こ+
+ /eval -n ${cut:3,+,test} ==> tes+
+ /eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 461655410..2d3091af6 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -2043,19 +2043,27 @@ expanded to last):
`+********+`
| `+${cut:max,suffix,string}+` +
+ `+${cut:+max,suffix,string}+` +
(_WeeChat ≥ 1.8_) |
- String with `max` chars, and optional `suffix` if string is cut. |
+ String with `max` chars, and optional `suffix` if string is cut. +
+ With the format `+max`, the suffix is counted in max length. |
`+${cut:4,…,this is a test}+` +
+ `+${cut:+4,…,this is a test}+` +
`+${cut:2,>>,こんにちは世界}+` |
`+this…+` +
+ `+t…+` +
`+こん>>+`
| `+${cutscr:max,suffix,string}+` +
+ `+${cutscr:+max,suffix,string}+` +
(_WeeChat ≥ 1.8_) |
- String with `max` chars displayed on screen, and optional `suffix` if string is cut. |
+ String with `max` chars displayed on screen, and optional `suffix` if string is cut. +
+ With the format `+max`, the suffix is counted in max length. |
`+${cutscr:4,…,this is a test}+` +
+ `+${cutscr:+4,…,this is a test}+` +
`+${cutscr:2,>>,こんにちは世界}+` |
`+this…+` +
+ `+thi…+` +
`+こ>>+`
| `+${re:N}+` +
diff --git a/doc/fr/autogen/user/buflist_commands.adoc b/doc/fr/autogen/user/buflist_commands.adoc
index eb8dbc0db..9efd8f98e 100644
--- a/doc/fr/autogen/user/buflist_commands.adoc
+++ b/doc/fr/autogen/user/buflist_commands.adoc
@@ -22,12 +22,16 @@ Les variables suivantes peuvent être utilisées dans ces options :
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
+ - irc_server: données du serveur IRC, défini seulement sur un tampon IRC (voir le hdata "irc_server" dans la doc API)
+ - irc_channel: données du canal IRC, défini seulement sur un tampon de canal IRC (voir le hdata "irc_channel" dans la doc API)
- variables additionnelles ajoutées par buflist pour des raisons pratiques :
- ${format_buffer} : la valeur évaluée de l'option buflist.format.buffer ; peut être utilisée dans l'option buflist.format.buffer_current pour juste changer la couleur de fond par exemple
- ${format_number} : numéro indenté avec un séparateur (évaluation de l'option buflist.format.number)
- ${number} : numéro indenté, par exemple " 1" s'il y a entre 10 et 99 tampons
- - ${indent} : indentation pour le nom (les tampons de canaux ou privés sont indentés)
- - ${nick_prefix} : le préfixe du pseudo pour un cancl (défini seulement si l'option buflist.look.nick_prefix est activée)
+ - ${indent} : indentation pour le nom (les tampons de canaux ou privés sont indentés) (évaluation de l'option buflist.format.indent)
+ - ${format_nick_prefix} : le préfixe du pseudo en couleur pour un canal (évaluation de l'option buflist.format.nick_prefix)
+ - ${color_nick_prefix} : la couleur du préfixe du pseudo pour un canal (défini seulement si l'option buflist.look.nick_prefix est activée)
+ - ${nick_prefix} : le préfixe du pseudo pour un canal (défini seulement si l'option buflist.look.nick_prefix est activée)
- ${name} : le nom court (si défini), sinon le nom
- ${color_hotlist} : la couleur qui dépend du niveau de hotlist le plus élevé pour le tampon (évaluation de l'option buflist.format.hotlist_xxx où xxx est le niveau)
- ${format_hotlist} : la hotlist formatée (évaluation de l'option buflist.format.hotlist)
diff --git a/doc/fr/autogen/user/buflist_options.adoc b/doc/fr/autogen/user/buflist_options.adoc
index 360795c23..8dcd96dbc 100644
--- a/doc/fr/autogen/user/buflist_options.adoc
+++ b/doc/fr/autogen/user/buflist_options.adoc
@@ -6,13 +6,13 @@
** description: pass:none[format pour chaque ligne avec un tampon (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
-** valeur par défaut: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+`
+** valeur par défaut: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** description: pass:none[format pour la ligne avec le tampon courant (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
-** valeur par défaut: `+"${color:lightgreen,blue}${format_buffer}"+`
+** valeur par défaut: `+"${color:,blue}${format_buffer}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** description: pass:none[format pour la hotlist (note : le contenu est évalué, voir /help buflist)]
@@ -56,12 +56,24 @@
** valeurs: toute chaîne
** valeur par défaut: `+"${color:default},"+`
+* [[option_buflist.format.indent]] *buflist.format.indent*
+** description: pass:none[chaîne affichée pour indenter un tampon de canal ou privé (note : le contenu est évalué, voir /help buflist)]
+** type: chaîne
+** valeurs: toute chaîne
+** valeur par défaut: `+" "+`
+
* [[option_buflist.format.lag]] *buflist.format.lag*
** description: pass:none[format pour le lag sur un tampon de serveur IRC (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
+* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
+** description: pass:none[format pour un préfixe de pseudo sur un canal (note : le contenu est évalué, voir /help buflist)]
+** type: chaîne
+** valeurs: toute chaîne
+** valeur par défaut: `+"${color_nick_prefix}${nick_prefix}"+`
+
* [[option_buflist.format.number]] *buflist.format.number*
** description: pass:none[format pour un numéro de tampon, ${number} est le numéro indenté (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
@@ -69,7 +81,7 @@
** valeur par défaut: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
-** description: pass:none[conditions pour afficher un tampon (note : le contenu est évalué, voir /help buflist)]
+** description: pass:none[conditions pour afficher un tampon (note : le contenu est évalué, voir /help buflist) ; par exemple pour cacher les tampons de serveurs s'ils sont fusionnés avec le tampon "core" : "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"${buffer.hidden}==0"+`
diff --git a/doc/fr/autogen/user/script_options.adoc b/doc/fr/autogen/user/script_options.adoc
index 84f0df7b1..19658c412 100644
--- a/doc/fr/autogen/user/script_options.adoc
+++ b/doc/fr/autogen/user/script_options.adoc
@@ -237,13 +237,7 @@
** valeur par défaut: `+"%h/script"+`
* [[option_script.scripts.url]] *script.scripts.url*
-** description: pass:none[URL pour le fichier avec la liste des scripts ; par défaut HTTPS est forcé, voir l'option script.scripts.url_force_https]
+** description: pass:none[URL pour le fichier avec la liste des scripts]
** type: chaîne
** valeurs: toute chaîne
-** valeur par défaut: `+"http://weechat.org/files/plugins.xml.gz"+`
-
-* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
-** description: pass:none[forcer l'utilisation de HTTPS pour les téléchargements (index et scripts) ; vous ne devriez désactiver cette option que si vous avez des problèmes avec les téléchargements]
-** type: booléen
-** valeurs: on, off
-** valeur par défaut: `+on+`
+** valeur par défaut: `+"https://weechat.org/files/plugins.xml.gz"+`
diff --git a/doc/fr/autogen/user/weechat_commands.adoc b/doc/fr/autogen/user/weechat_commands.adoc
index d51d353cf..ddc286543 100644
--- a/doc/fr/autogen/user/weechat_commands.adoc
+++ b/doc/fr/autogen/user/weechat_commands.adoc
@@ -257,54 +257,54 @@ infolists : afficher des infos sur les infolists
/eval [-n|-s] <expression>
[-n] -c <expression1> <opérateur> <expression2>
- -n: display result without sending it to buffer (debug mode)
- -s: split expression before evaluating it (many commands can be separated by semicolons)
- -c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1")
-expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons
- operator: a logical or comparison operator:
- - logical operators:
- && boolean "and"
- || boolean "or"
- - comparison operators:
- == equal
- != not equal
- <= less or equal
- < less
- >= greater or equal
- > greater
- =~ is matching POSIX extended regex
- !~ is NOT matching POSIX extended regex
-
-An expression is considered as "true" if it is not NULL, not empty, and different from "0".
-The comparison is made using integers if the two expressions are valid integers.
-To force a string comparison, add double quotes around each expression, for example:
+ -n : afficher le résultat sans envoyer au tampon (mode debug)
+ -s : découper l'expression avant de l'évaluer (plusieurs commandes peuvent être séparées par des points-virgules)
+ -c : évaluer comme une condition : utiliser les opérateurs et les parenthèses, retourner une valeur booléenne ("0" ou "1")
+expression : expression à évaluer, les variables avec le format ${variable} sont remplacées (voir ci-dessous) ; plusieurs commandes peuvent être séparées par des points-virgules
+ opérateur : un opérateur logique ou de comparaison :
+ - opérateurs logiques :
+ && "et" booléen
+ || "ou" booléen
+ - opérateurs de comparaison :
+ == égal
+ != non égal
+ <= inférieur ou égal
+ < inférieur
+ >= supérieur ou égal
+ > supérieur
+ =~ correspond à l'expression régulière POSIX étendue
+ !~ ne correspond PAS à l'expression régulière POSIX étendue
+
+Une expression est considérée comme "vraie" si elle est non NULL, non vide, et différente de "0".
+La comparaison est faite en utilisant des entiers si les deux expressions sont des entiers valides.
+Pour forcer une comparaison de chaînes, ajoutez des guillemets autour de chaque expression, par exemple :
50 > 100 ==> 0
"50" > "100" ==> 1
-Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
- 1. an evaluated sub-string (format: "eval:xxx")
- 2. a string with escaped chars (format: "esc:xxx" or "\xxx")
- 3. a string with chars to hide (format: "hide:char,string")
- 4. a string with max chars (format: "cut:max,suffix,string")
- or max chars displayed on screen (format: "cutscr:max,suffix,string")
- 5. a color (format: "color:xxx")
- 6. an info (format: "info:name,arguments", arguments are optional)
- 7. current date/time (format: "date" or "date:format")
- 8. an environment variable (format: "env:XXX")
- 9. a ternary operator (format: "if:condition?value_if_true:value_if_false")
- 10. an option (format: "file.section.option")
- 11. a local variable in buffer
- 12. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
-Format for hdata can be one of following:
- hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed)
- hdata[list].var1.var2...: start with a hdata using a list, for example:
- ${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers
- ${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins
- hdata[pointer].var1.var2...: start with a hdata using a pointer, for example:
- ${buffer[0x1234abcd].full_name}: full name of the buffer with this pointer (can be used in triggers)
-For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
-
-Examples (simple strings):
+Des variables sont remplacées dans l'expression, en utilisant le format ${variable}, la variable pouvant être, par ordre de priorité :
+ 1. une sous-chaîne évaluée (format : "eval:xxx")
+ 2. une chaîne avec les caractères échappés (format : "esc:xxx" ou "\xxx")
+ 3. une chaîne avec des caractères à cacher (format : "hide:caractère,chaîne")
+ 4. une chaîne avec un maximum de caractères (format : "cut:max,suffixe,chaîne" ou "cut:+max,suffixe,chaîne")
+ ou un maximum de caractères affichés à l'écran (format : "cutscr:max,suffixe,chaîne" ou "cutscr:+max,suffixe,chaîne")
+ 5. une couleur (format : "color:xxx", voir la "Référence API extension", fonction "color")
+ 6. une info (format : "info:nom,paramètres", les paramètres sont optionnels)
+ 7. la date/heure courante (format : "date" ou "date:format")
+ 8. une variable d'environnement (format : "env:XXX")
+ 9. un opérateur ternaire (format : "if:condition?valeur_si_vrai:valeur_si_faux")
+ 10. une option (format : "fichier.section.option")
+ 11. une variable locale du tampon
+ 12. un hdata/variable (la valeur est automatiquement convertie en chaîne), par défaut "window" et "buffer" pointent vers la fenêtre et le tampon courants.
+Le format du hdata peut être le suivant :
+ hdata.var1.var2... : démarrer avec un hdata (le pointeur doit être connu), et demander les variables l'une après l'autre (d'autres hdata peuvent être suivis)
+ hdata[liste].var1.var2... : démarrer avec un hdata en utilisant une liste, par exemple :
+ ${buffer[gui_buffers].full_name} : nom complet du premier tampon dans la liste chaînée des tampons
+ ${plugin[weechat_plugins].name} : nom de la première extension dans la liste chaînée des extensions
+ hdata[pointeur].var1.var2... : démarrer avec un hdata en utilisant un pointeur, par exemple :
+ ${buffer[0x1234abcd].full_name} : nom complet du tampon avec ce pointeur (peut être utilisé dans les triggers)
+Pour le nom du hdata et des variables, voir la "Référence API extension", fonction "weechat_hdata_get".
+
+Exemples (chaînes simples) :
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
@@ -314,13 +314,12 @@ Examples (simple strings):
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
- /eval -n ${cut:2,+,test} ==> te+
- /eval -n ${cut:2,+,こんにちは世界} ==> こん+
- /eval -n ${cutscr:2,+,こんにちは世界} ==> こ+
+ /eval -n ${cut:3,+,test} ==> tes+
+ /eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
-Examples (conditions):
+Exemples (conditions) :
/eval -n -c ${window.buffer.number} > 2 ==> 0
/eval -n -c ${window.win_width} > 100 ==> 1
/eval -n -c (8 > 12) || (5 > 2) ==> 1
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 35586656f..6b1c94e25 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -2086,19 +2086,27 @@ première étendue à la dernière) :
`+************+`
| `+${cut:max,suffixe,chaîne}+` +
+ `+${cut:+max,suffixe,chaîne}+` +
(_WeeChat ≥ 1.8_) |
- Chaîne avec `max` caractères, et un `suffixe` facultatif si la chaîne est coupée. |
+ Chaîne avec `max` caractères, et un `suffixe` facultatif si la chaîne est coupée. +
+ Avec le format `+max`, le suffixe est compté dans la longueur maximale. |
`+${cut:4,…,ceci est un test}+` +
+ `+${cut:+4,…,ceci est un test}+` +
`+${cut:2,>>,こんにちは世界}+` |
`+ceci…+` +
+ `+c…+` +
`+こん>>+`
| `+${cutscr:max,suffixe,chaîne}+` +
+ `+${cutscr:+max,suffixe,chaîne}+` +
(_WeeChat ≥ 1.8_) |
- Chaîne avec `max` caractères affichés à l'écran, et un `suffixe` facultatif si la chaîne est coupée. |
+ Chaîne avec `max` caractères affichés à l'écran, et un `suffixe` facultatif si la chaîne est coupée. +
+ Avec le format `+max`, le suffixe est compté dans la longueur maximale. |
`+${cutscr:4,…,ceci est un test}+` +
+ `+${cutscr:+4,…,ceci est un test}+` +
`+${cutscr:2,>>,こんにちは世界}+` |
`+ceci…+` +
+ `+cec…+` +
`+こ>>+`
| `+${re:N}+` +
diff --git a/doc/it/autogen/user/buflist_commands.adoc b/doc/it/autogen/user/buflist_commands.adoc
index ca80e8765..abe134263 100644
--- a/doc/it/autogen/user/buflist_commands.adoc
+++ b/doc/it/autogen/user/buflist_commands.adoc
@@ -22,11 +22,15 @@ The following variables can be used in these options:
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
+ - irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
+ - irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
- extra variables added by buflist for convenience:
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- - ${indent}: indentation for name (channel and private buffers are indented)
+ - ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
+ - ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
+ - ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${name}: the short name (if set), with a fallback on the name
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
diff --git a/doc/it/autogen/user/buflist_options.adoc b/doc/it/autogen/user/buflist_options.adoc
index 30db597ec..2fcce8b17 100644
--- a/doc/it/autogen/user/buflist_options.adoc
+++ b/doc/it/autogen/user/buflist_options.adoc
@@ -6,13 +6,13 @@
** descrizione: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
-** valore predefinito: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+`
+** valore predefinito: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** descrizione: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
-** valore predefinito: `+"${color:lightgreen,blue}${format_buffer}"+`
+** valore predefinito: `+"${color:,blue}${format_buffer}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** descrizione: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
@@ -56,12 +56,24 @@
** valori: qualsiasi stringa
** valore predefinito: `+"${color:default},"+`
+* [[option_buflist.format.indent]] *buflist.format.indent*
+** descrizione: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /help buflist)]
+** tipo: stringa
+** valori: qualsiasi stringa
+** valore predefinito: `+" "+`
+
* [[option_buflist.format.lag]] *buflist.format.lag*
** descrizione: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
+* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
+** descrizione: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)]
+** tipo: stringa
+** valori: qualsiasi stringa
+** valore predefinito: `+"${color_nick_prefix}${nick_prefix}"+`
+
* [[option_buflist.format.number]] *buflist.format.number*
** descrizione: pass:none[format for buffer number, ${number} is the indented number (note: content is evaluated, see /help buflist)]
** tipo: stringa
@@ -69,7 +81,7 @@
** valore predefinito: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
-** descrizione: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)]
+** descrizione: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist); for example to hide server buffers if they are merged with core buffer: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${buffer.hidden}==0"+`
diff --git a/doc/it/autogen/user/script_options.adoc b/doc/it/autogen/user/script_options.adoc
index 01860fe15..fb2a484cc 100644
--- a/doc/it/autogen/user/script_options.adoc
+++ b/doc/it/autogen/user/script_options.adoc
@@ -237,13 +237,7 @@
** valore predefinito: `+"%h/script"+`
* [[option_script.scripts.url]] *script.scripts.url*
-** descrizione: pass:none[URL for file with list of scripts; by default HTTPS is forced, see option script.scripts.url_force_https]
+** descrizione: pass:none[URL for file with list of scripts]
** tipo: stringa
** valori: qualsiasi stringa
-** valore predefinito: `+"http://weechat.org/files/plugins.xml.gz"+`
-
-* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
-** descrizione: pass:none[force use of HTTPS for downloads (index and scripts); you should disable this option only if you have problems with the downloads]
-** tipo: bool
-** valori: on, off
-** valore predefinito: `+on+`
+** valore predefinito: `+"https://weechat.org/files/plugins.xml.gz"+`
diff --git a/doc/it/autogen/user/weechat_commands.adoc b/doc/it/autogen/user/weechat_commands.adoc
index 1c1915e83..fdffcf0ce 100644
--- a/doc/it/autogen/user/weechat_commands.adoc
+++ b/doc/it/autogen/user/weechat_commands.adoc
@@ -285,9 +285,9 @@ Some variables are replaced in expression, using the format ${variable}, variabl
1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
3. a string with chars to hide (format: "hide:char,string")
- 4. a string with max chars (format: "cut:max,suffix,string")
- or max chars displayed on screen (format: "cutscr:max,suffix,string")
- 5. a color (format: "color:xxx")
+ 4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
+ or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
+ 5. a color (format: "color:xxx", see "Plugin API reference", function "color")
6. an info (format: "info:name,arguments", arguments are optional)
7. current date/time (format: "date" or "date:format")
8. an environment variable (format: "env:XXX")
@@ -314,9 +314,8 @@ Examples (simple strings):
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
- /eval -n ${cut:2,+,test} ==> te+
- /eval -n ${cut:2,+,こんにちは世界} ==> こん+
- /eval -n ${cutscr:2,+,こんにちは世界} ==> こ+
+ /eval -n ${cut:3,+,test} ==> tes+
+ /eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index a0a5bbc88..647a392e4 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -2121,19 +2121,27 @@ expanded to last):
`+********+`
| `+${cut:max,suffix,string}+` +
+ `+${cut:+max,suffix,string}+` +
(_WeeChat ≥ 1.8_) |
- String with `max` chars, and optional `suffix` if string is cut. |
+ String with `max` chars, and optional `suffix` if string is cut. +
+ With the format `+max`, the suffix is counted in max length. |
`+${cut:4,…,this is a test}+` +
+ `+${cut:+4,…,this is a test}+` +
`+${cut:2,>>,こんにちは世界}+` |
`+this…+` +
+ `+t…+` +
`+こん>>+`
| `+${cutscr:max,suffix,string}+` +
+ `+${cutscr:+max,suffix,string}+` +
(_WeeChat ≥ 1.8_) |
- String with `max` chars displayed on screen, and optional `suffix` if string is cut. |
+ String with `max` chars displayed on screen, and optional `suffix` if string is cut. +
+ With the format `+max`, the suffix is counted in max length. |
`+${cutscr:4,…,this is a test}+` +
+ `+${cutscr:+4,…,this is a test}+` +
`+${cutscr:2,>>,こんにちは世界}+` |
`+this…+` +
+ `+thi…+` +
`+こ>>+`
| `+${re:N}+` +
diff --git a/doc/ja/autogen/user/buflist_commands.adoc b/doc/ja/autogen/user/buflist_commands.adoc
index 08d133408..02887ccd5 100644
--- a/doc/ja/autogen/user/buflist_commands.adoc
+++ b/doc/ja/autogen/user/buflist_commands.adoc
@@ -8,29 +8,33 @@
----
/buflist refresh
-refresh: 強制的に "buflist" バー要素の内容を最新の状態に更新します
+refresh: force the refresh of the "buflist" bar item
-各バッファエントリは文字列評価 (書式は /help eval を参照してください) を使って表示されます、以下のオプションで指定します:
- - buflist.look.display_conditions: バッファをリスト内に表示する条件
- - buflist.format.buffer: 現在のバッファ以外のバッファを表示する書式
- - buflist.format.buffer_current: 現在のバッファを表示する書式
+The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options:
+ - buflist.look.display_conditions: conditions to display a buffer in the list
+ - buflist.format.buffer: format for a buffer which is not current buffer
+ - buflist.format.buffer_current: format for the current buffer
-以下は上記オプションで使用可能な変数です:
- - バッファデータ (完全なリストは API リファレンスの hdata "buffer" を参照してください)、例:
+The following variables can be used in these options:
+ - buffer data (see hdata "buffer" in API doc for a complete list), for example:
- ${buffer.number}
- ${buffer.name}
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
- - buflist プラグインが利便性向上の目的で追加した変数:
- - ${format_buffer}: buflist.format.buffer オプションの評価結果; 例えば単に背景色を変えるなどの目的で、この変数を buflist.format.buffer_current オプションの中で使うことも可能です。
- - ${format_number}: 区切り文字を付けたインデント済み番号 (buflist.format.number オプションの評価結果)
- - ${number}: インデント済み番号、例えば 10 から 99 番のバッファがある場合に " 1"
- - ${indent}: 名前用のインデント (チャンネルとプライベートバッファがインデントされます)
- - ${nick_prefix}: チャンネルにおけるニックネームプレフィックス (buflist.look.nick_prefix オプションが有効化された場合のみ設定されます)
- - ${name}: 短縮名 (設定済みの場合)、未設定の場合には名前
- - ${color_hotlist}: 対象バッファのホットリストレベルの最大値に対応する色 (buflist.format.hotlist_xxx オプションの評価結果、xxx がレベル)
- - ${format_hotlist}: 評価後のホットリスト (buflist.format.hotlist オプションの評価結果)
- - ${hotlist}: 評価前のホットリスト
- - ${format_lag}: IRC サーババッファの遅延時間、遅延がない場合は空 (buflist.format.lag オプションの評価結果)
+ - irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
+ - irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
+ - extra variables added by buflist for convenience:
+ - ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
+ - ${format_number}: indented number with separator (evaluation of option buflist.format.number)
+ - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
+ - ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
+ - ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
+ - ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
+ - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
+ - ${name}: the short name (if set), with a fallback on the name
+ - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
+ - ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
+ - ${hotlist}: the raw hotlist
+ - ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
----
diff --git a/doc/ja/autogen/user/buflist_options.adoc b/doc/ja/autogen/user/buflist_options.adoc
index 1958352a9..ba3c4202d 100644
--- a/doc/ja/autogen/user/buflist_options.adoc
+++ b/doc/ja/autogen/user/buflist_options.adoc
@@ -6,13 +6,13 @@
** 説明: pass:none[各バッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
** タイプ: 文字列
** 値: 未制約文字列
-** デフォルト値: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+`
+** デフォルト値: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** 説明: pass:none[現在のバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
** タイプ: 文字列
** 値: 未制約文字列
-** デフォルト値: `+"${color:lightgreen,blue}${format_buffer}"+`
+** デフォルト値: `+"${color:,blue}${format_buffer}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** 説明: pass:none[ホットリストの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
@@ -56,12 +56,24 @@
** 値: 未制約文字列
** デフォルト値: `+"${color:default},"+`
+* [[option_buflist.format.indent]] *buflist.format.indent*
+** 説明: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /help buflist)]
+** タイプ: 文字列
+** 値: 未制約文字列
+** デフォルト値: `+" "+`
+
* [[option_buflist.format.lag]] *buflist.format.lag*
** 説明: pass:none[IRC サーババッファの遅延時間の表示書式 (注意: 値は評価されます、/help eval を参照してください)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
+* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
+** 説明: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)]
+** タイプ: 文字列
+** 値: 未制約文字列
+** デフォルト値: `+"${color_nick_prefix}${nick_prefix}"+`
+
* [[option_buflist.format.number]] *buflist.format.number*
** 説明: pass:none[バッファ番号の表示書式、${number} はインデント済み番号です (注意: 値は評価されます、/help eval を参照してください)]
** タイプ: 文字列
@@ -69,7 +81,7 @@
** デフォルト値: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
-** 説明: pass:none[バッファの表示条件 (注意: 値は評価されます、/help eval を参照してください)]
+** 説明: pass:none[バッファの表示条件 (注意: 値は評価されます、/help eval を参照してください); サーババッファがコアバッファにマージされている場合にサーババッファを隠す例: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${buffer.hidden}==0"+`
diff --git a/doc/ja/autogen/user/script_options.adoc b/doc/ja/autogen/user/script_options.adoc
index ec6482313..744c69906 100644
--- a/doc/ja/autogen/user/script_options.adoc
+++ b/doc/ja/autogen/user/script_options.adoc
@@ -237,13 +237,7 @@
** デフォルト値: `+"%h/script"+`
* [[option_script.scripts.url]] *script.scripts.url*
-** 説明: pass:none[スクリプトのリストを含むファイルの URL; デフォルトは強制的に HTTPS を使用、オプション script.scripts.url_force_https を参照]
+** 説明: pass:none[URL for file with list of scripts]
** タイプ: 文字列
** 値: 未制約文字列
-** デフォルト値: `+"http://weechat.org/files/plugins.xml.gz"+`
-
-* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
-** 説明: pass:none[ダウンロード (インデックスおよびスクリプト) の際に HTTPS を使うことを強制する; ダウンロードに問題がある場合のみこのオプションを無効化してください]
-** タイプ: ブール
-** 値: on, off
-** デフォルト値: `+on+`
+** デフォルト値: `+"https://weechat.org/files/plugins.xml.gz"+`
diff --git a/doc/ja/autogen/user/weechat_commands.adoc b/doc/ja/autogen/user/weechat_commands.adoc
index 52a32e616..08e1580b2 100644
--- a/doc/ja/autogen/user/weechat_commands.adoc
+++ b/doc/ja/autogen/user/weechat_commands.adoc
@@ -285,9 +285,9 @@ Some variables are replaced in expression, using the format ${variable}, variabl
1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
3. a string with chars to hide (format: "hide:char,string")
- 4. a string with max chars (format: "cut:max,suffix,string")
- or max chars displayed on screen (format: "cutscr:max,suffix,string")
- 5. a color (format: "color:xxx")
+ 4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
+ or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
+ 5. a color (format: "color:xxx", see "Plugin API reference", function "color")
6. an info (format: "info:name,arguments", arguments are optional)
7. current date/time (format: "date" or "date:format")
8. an environment variable (format: "env:XXX")
@@ -314,9 +314,8 @@ Examples (simple strings):
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
- /eval -n ${cut:2,+,test} ==> te+
- /eval -n ${cut:2,+,こんにちは世界} ==> こん+
- /eval -n ${cutscr:2,+,こんにちは世界} ==> こ+
+ /eval -n ${cut:3,+,test} ==> tes+
+ /eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 13382461f..62a648055 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -2048,20 +2048,30 @@ char *weechat_string_eval_expression (const char *expr,
`+${hide:*,password}+` |
`+********+`
+// TRANSLATION MISSING
| `+${cut:max,suffix,string}+` +
+ `+${cut:+max,suffix,string}+` +
(_WeeChat バージョン 1.8 以上で利用可_) |
- `string` の先頭 `max` 文字とオプションの `suffix` 文字 (`string` の文字数が `max` 文字を超える場合) |
+ `string` の先頭 `max` 文字とオプションの `suffix` 文字 (`string` の文字数が `max` 文字を超える場合) +
+ With the format `+max`, the suffix is counted in max length. |
`+${cut:4,…,this is a test}+` +
+ `+${cut:+4,…,this is a test}+` +
`+${cut:2,>>,こんにちは世界}+` |
`+this…+` +
+ `+t…+` +
`+こん>>+`
+// TRANSLATION MISSING
| `+${cutscr:max,suffix,string}+` +
+ `+${cutscr:+max,suffix,string}+` +
(_WeeChat バージョン 1.8 以上で利用可_) |
- `string` の先頭 `max` 文字 (半角文字幅換算) とオプションの `suffix` 文字 (`string` の文字数が `max` 文字を超える場合) |
+ `string` の先頭 `max` 文字 (半角文字幅換算) とオプションの `suffix` 文字 (`string` の文字数が `max` 文字を超える場合) +
+ With the format `+max`, the suffix is counted in max length. |
`+${cutscr:4,…,this is a test}+` +
+ `+${cutscr:+4,…,this is a test}+` +
`+${cutscr:2,>>,こんにちは世界}+` |
`+this…+` +
+ `+thi…+` +
`+こ>>+`
| `+${re:N}+` +
diff --git a/doc/pl/autogen/user/buflist_commands.adoc b/doc/pl/autogen/user/buflist_commands.adoc
index ca80e8765..abe134263 100644
--- a/doc/pl/autogen/user/buflist_commands.adoc
+++ b/doc/pl/autogen/user/buflist_commands.adoc
@@ -22,11 +22,15 @@ The following variables can be used in these options:
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
+ - irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
+ - irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
- extra variables added by buflist for convenience:
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- - ${indent}: indentation for name (channel and private buffers are indented)
+ - ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
+ - ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
+ - ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${name}: the short name (if set), with a fallback on the name
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
diff --git a/doc/pl/autogen/user/buflist_options.adoc b/doc/pl/autogen/user/buflist_options.adoc
index 37d619348..11cdb5377 100644
--- a/doc/pl/autogen/user/buflist_options.adoc
+++ b/doc/pl/autogen/user/buflist_options.adoc
@@ -6,13 +6,13 @@
** opis: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
-** domyślna wartość: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+`
+** domyślna wartość: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** opis: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
-** domyślna wartość: `+"${color:lightgreen,blue}${format_buffer}"+`
+** domyślna wartość: `+"${color:,blue}${format_buffer}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** opis: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
@@ -56,12 +56,24 @@
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:default},"+`
+* [[option_buflist.format.indent]] *buflist.format.indent*
+** opis: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /help buflist)]
+** typ: ciąg
+** wartości: dowolny ciąg
+** domyślna wartość: `+" "+`
+
* [[option_buflist.format.lag]] *buflist.format.lag*
** opis: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
+* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
+** opis: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)]
+** typ: ciąg
+** wartości: dowolny ciąg
+** domyślna wartość: `+"${color_nick_prefix}${nick_prefix}"+`
+
* [[option_buflist.format.number]] *buflist.format.number*
** opis: pass:none[format for buffer number, ${number} is the indented number (note: content is evaluated, see /help buflist)]
** typ: ciąg
@@ -69,7 +81,7 @@
** domyślna wartość: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
-** opis: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)]
+** opis: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist); for example to hide server buffers if they are merged with core buffer: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${buffer.hidden}==0"+`
diff --git a/doc/pl/autogen/user/script_options.adoc b/doc/pl/autogen/user/script_options.adoc
index bb85e1089..5e732e262 100644
--- a/doc/pl/autogen/user/script_options.adoc
+++ b/doc/pl/autogen/user/script_options.adoc
@@ -237,13 +237,7 @@
** domyślna wartość: `+"%h/script"+`
* [[option_script.scripts.url]] *script.scripts.url*
-** opis: pass:none[adres pliku z listą skryptów; domyśłnie wymuszany jest protokół HTTPS, zobacz opcje script.scripts.url_force_https]
+** opis: pass:none[URL for file with list of scripts]
** typ: ciąg
** wartości: dowolny ciąg
-** domyślna wartość: `+"http://weechat.org/files/plugins.xml.gz"+`
-
-* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
-** opis: pass:none[wymusza użycie HTTPS do pobierania (listy i skryptów); powinieneś wyłączyć tą opcję tylko jeśli występują problemy z pobieraniem]
-** typ: bool
-** wartości: on, off
-** domyślna wartość: `+on+`
+** domyślna wartość: `+"https://weechat.org/files/plugins.xml.gz"+`
diff --git a/doc/pl/autogen/user/weechat_commands.adoc b/doc/pl/autogen/user/weechat_commands.adoc
index 7e12c1d30..fa6395d45 100644
--- a/doc/pl/autogen/user/weechat_commands.adoc
+++ b/doc/pl/autogen/user/weechat_commands.adoc
@@ -285,9 +285,9 @@ Some variables are replaced in expression, using the format ${variable}, variabl
1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
3. a string with chars to hide (format: "hide:char,string")
- 4. a string with max chars (format: "cut:max,suffix,string")
- or max chars displayed on screen (format: "cutscr:max,suffix,string")
- 5. a color (format: "color:xxx")
+ 4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
+ or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
+ 5. a color (format: "color:xxx", see "Plugin API reference", function "color")
6. an info (format: "info:name,arguments", arguments are optional)
7. current date/time (format: "date" or "date:format")
8. an environment variable (format: "env:XXX")
@@ -314,9 +314,8 @@ Examples (simple strings):
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
- /eval -n ${cut:2,+,test} ==> te+
- /eval -n ${cut:2,+,こんにちは世界} ==> こん+
- /eval -n ${cutscr:2,+,こんにちは世界} ==> こ+
+ /eval -n ${cut:3,+,test} ==> tes+
+ /eval -n ${cut:+3,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big