1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 00:25:41 +02:00

core: update translations

This commit is contained in:
Sébastien Helleu
2017-03-25 15:12:47 +01:00
parent f54ed11f1d
commit fb66eeec79
34 changed files with 2391 additions and 529 deletions
+33
View File
@@ -0,0 +1,33 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_buflist_buflist]]
* `+buflist+`: bar item with list of buffers
----
/buflist refresh
refresh: force the refresh of the "buflist" bar item
The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options:
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current 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}
- 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
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${indent}: indentation for name (channel and private buffers are indented)
- ${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)
----
+20 -8
View File
@@ -3,49 +3,61 @@
// DO NOT EDIT BY HAND!
//
* [[option_buflist.format.buffer]] *buflist.format.buffer*
** Beschreibung: pass:none[format of each line with a buffer]
** Beschreibung: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:green}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** Beschreibung: pass:none[format for the line with current buffer]
** Beschreibung: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:lightgreen,blue}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** Beschreibung: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+" ${color:green}(${hotlist}${color:green})"+`
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
** Beschreibung: pass:none[format for a buffer with hotlist level "highlight"]
** Beschreibung: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:magenta}"+`
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
** Beschreibung: pass:none[format for a buffer with hotlist level "low"]
** Beschreibung: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:white}"+`
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
** Beschreibung: pass:none[format for a buffer with hotlist level "message"]
** Beschreibung: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:brown}"+`
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
** Beschreibung: pass:none[format for a buffer not in hotlist]
** Beschreibung: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:default}"+`
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
** Beschreibung: pass:none[format for a buffer with hotlist level "private"]
** Beschreibung: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:green}"+`
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
** Beschreibung: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:default},"+`
* [[option_buflist.format.lag]] *buflist.format.lag*
** Beschreibung: pass:none[format for lag on an irc server buffer]
** Beschreibung: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
File diff suppressed because it is too large Load Diff
+33
View File
@@ -0,0 +1,33 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_buflist_buflist]]
* `+buflist+`: bar item with list of buffers
----
/buflist refresh
refresh: force the refresh of the "buflist" bar item
The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options:
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current 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}
- 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
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${indent}: indentation for name (channel and private buffers are indented)
- ${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)
----
+20 -8
View File
@@ -3,49 +3,61 @@
// DO NOT EDIT BY HAND!
//
* [[option_buflist.format.buffer]] *buflist.format.buffer*
** description: pass:none[format of each line with a buffer]
** description: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+"${color:green}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** description: pass:none[format for the line with current buffer]
** 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}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** description: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+" ${color:green}(${hotlist}${color:green})"+`
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
** description: pass:none[format for a buffer with hotlist level "highlight"]
** description: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+"${color:magenta}"+`
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
** description: pass:none[format for a buffer with hotlist level "low"]
** description: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+"${color:white}"+`
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
** description: pass:none[format for a buffer with hotlist level "message"]
** description: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+"${color:brown}"+`
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
** description: pass:none[format for a buffer not in hotlist]
** description: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+"${color:default}"+`
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
** description: pass:none[format for a buffer with hotlist level "private"]
** description: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+"${color:green}"+`
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
** description: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
** type: string
** values: any string
** default value: `+"${color:default},"+`
* [[option_buflist.format.lag]] *buflist.format.lag*
** description: pass:none[format for lag on an irc server buffer]
** 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}]"+`
+21 -17
View File
@@ -285,13 +285,15 @@ 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 color (format: "color:xxx")
5. an info (format: "info:name,arguments", arguments are optional)
6. current date/time (format: "date" or "date:format")
7. an environment variable (format: "env:XXX")
8. an option (format: "file.section.option")
9. a local variable in buffer
10. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
4. a string with max chars (format: "cut: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:
@@ -302,16 +304,18 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings):
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:2,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
+33
View File
@@ -0,0 +1,33 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_buflist_buflist]]
* `+buflist+`: objet de barre avec la liste des tampons
----
/buflist refresh
refresh : forcer le rafraichissement de l'objet de barre "buflist"
Les lignes avec les tampons sont affichées en utilisant l'évaluation de chaînes (voir /help eval pour le format), avec deux options principales :
- buflist.format.buffer : format pour un tampon qui n'est pas le tampon courant
- buflist.format.buffer_current: format pour le tampon courant
Les variables suivantes peuvent être utilisées dans ces options :
- données du tampon (voir le hdata "buffer" dans la doc API pour une liste complète), par exemple :
- ${buffer.number}
- ${buffer.name}
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
- 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
- ${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)
- ${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)
- ${hotlist} : la hotlist brute
- ${format_lag} : le lag pour un tampon de serveur IRC, vide s'il n'y a pas de lag (évaluation de l'option buflist.format.lag)
----
+21 -9
View File
@@ -3,55 +3,67 @@
// DO NOT EDIT BY HAND!
//
* [[option_buflist.format.buffer]] *buflist.format.buffer*
** description: pass:none[format of each line with a buffer]
** 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: `+"${color:green}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** description: pass:none[format for the line with current buffer]
** 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}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** description: pass:none[format pour la hotlist (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+" ${color:green}(${hotlist}${color:green})"+`
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
** description: pass:none[format for a buffer with hotlist level "highlight"]
** description: pass:none[format pour un tampon avec la hotlist de niveau "highlight" (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"${color:magenta}"+`
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
** description: pass:none[format for a buffer with hotlist level "low"]
** description: pass:none[format pour un tampon avec la hotlist de niveau "low" (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"${color:white}"+`
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
** description: pass:none[format for a buffer with hotlist level "message"]
** description: pass:none[format pour un tampon avec la hotlist de niveau "message" (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"${color:brown}"+`
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
** description: pass:none[format for a buffer not in hotlist]
** description: pass:none[format pour un tampon qui n'est pas dans la hotlist (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"${color:default}"+`
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
** description: pass:none[format for a buffer with hotlist level "private"]
** description: pass:none[format pour un tampon avec la hotlist de niveau "private" (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"${color:green}"+`
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
** description: pass:none[séparateur pour les compteurs dans la hotlist (note : le contenu est évalué, voir /help buflist)]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"${color:default},"+`
* [[option_buflist.format.lag]] *buflist.format.lag*
** description: pass:none[format for lag on an irc server buffer]
** 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.look.sort]] *buflist.look.sort*
** description: pass:none[comma-separated list of fields to sort buffers; each field is a hdata variable of buffer; char "-" can be used before field to reverse order]
** description: pass:none[liste de champs séparés par des virgules pour trier les tampons ; chaque champ est une variable hdata du tampon ; le caractère "-" peut être utilisé pour inverser l'ordre]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"number,-active"+`
+21 -17
View File
@@ -285,13 +285,15 @@ Des variables sont remplacées dans l'expression, en utilisant le format ${varia
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 couleur (format : "color:xxx")
5. une info (format : "info:nom,paramètres", les paramètres sont optionnels)
6. la date/heure courante (format : "date" ou "date:format")
7. une variable d'environnement (format : "env:XXX")
8. une option (format : "fichier.section.option")
9. une variable locale du tampon
10. 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.
4. une chaîne avec un maximum de caractères (format : "cut:max,suffixe,chaîne")
5. une couleur (format : "color:xxx")
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 :
@@ -302,16 +304,18 @@ Le format du hdata peut être le suivant :
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
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:2,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
Exemples (conditions) :
/eval -n -c ${window.buffer.number} > 2 ==> 0
+33
View File
@@ -0,0 +1,33 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_buflist_buflist]]
* `+buflist+`: bar item with list of buffers
----
/buflist refresh
refresh: force the refresh of the "buflist" bar item
The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options:
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current 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}
- 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
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${indent}: indentation for name (channel and private buffers are indented)
- ${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)
----
+20 -8
View File
@@ -3,49 +3,61 @@
// DO NOT EDIT BY HAND!
//
* [[option_buflist.format.buffer]] *buflist.format.buffer*
** descrizione: pass:none[format of each line with a buffer]
** descrizione: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${color:green}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** descrizione: pass:none[format for the line with current buffer]
** 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}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** descrizione: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+" ${color:green}(${hotlist}${color:green})"+`
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
** descrizione: pass:none[format for a buffer with hotlist level "highlight"]
** descrizione: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${color:magenta}"+`
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
** descrizione: pass:none[format for a buffer with hotlist level "low"]
** descrizione: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${color:white}"+`
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
** descrizione: pass:none[format for a buffer with hotlist level "message"]
** descrizione: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${color:brown}"+`
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
** descrizione: pass:none[format for a buffer not in hotlist]
** descrizione: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${color:default}"+`
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
** descrizione: pass:none[format for a buffer with hotlist level "private"]
** descrizione: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${color:green}"+`
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
** descrizione: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"${color:default},"+`
* [[option_buflist.format.lag]] *buflist.format.lag*
** descrizione: pass:none[format for lag on an irc server buffer]
** 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}]"+`
+21 -17
View File
@@ -285,13 +285,15 @@ 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 color (format: "color:xxx")
5. an info (format: "info:name,arguments", arguments are optional)
6. current date/time (format: "date" or "date:format")
7. an environment variable (format: "env:XXX")
8. an option (format: "file.section.option")
9. a local variable in buffer
10. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
4. a string with max chars (format: "cut: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:
@@ -302,16 +304,18 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings):
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
/eval -n ${cut:2,+,test} ==> te+
/eval -n ${date:%H:%M:%S} ==> 07:46:40
/eval -n ${if:${info:term_width}>80?big:small} ==> big
Examples (conditions):
/eval -n -c ${window.buffer.number} > 2 ==> 0
+33
View File
@@ -0,0 +1,33 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_buflist_buflist]]
* `+buflist+`: bar item with list of buffers
----
/buflist refresh
refresh: force the refresh of the "buflist" bar item
The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options:
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current 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}
- 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
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${indent}: indentation for name (channel and private buffers are indented)
- ${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)
----
+20 -8
View File
@@ -3,49 +3,61 @@
// DO NOT EDIT BY HAND!
//
* [[option_buflist.format.buffer]] *buflist.format.buffer*
** 説明: pass:none[format of each line with a buffer]
** 説明: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:green}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** 説明: pass:none[format for the line with current buffer]
** 説明: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:lightgreen,blue}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** 説明: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+" ${color:green}(${hotlist}${color:green})"+`
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
** 説明: pass:none[format for a buffer with hotlist level "highlight"]
** 説明: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:magenta}"+`
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
** 説明: pass:none[format for a buffer with hotlist level "low"]
** 説明: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:white}"+`
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
** 説明: pass:none[format for a buffer with hotlist level "message"]
** 説明: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:brown}"+`
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
** 説明: pass:none[format for a buffer not in hotlist]
** 説明: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:default}"+`
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
** 説明: pass:none[format for a buffer with hotlist level "private"]
** 説明: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:green}"+`
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
** 説明: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"${color:default},"+`
* [[option_buflist.format.lag]] *buflist.format.lag*
** 説明: pass:none[format for lag on an irc server buffer]
** 説明: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
File diff suppressed because it is too large Load Diff
+33
View File
@@ -0,0 +1,33 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_buflist_buflist]]
* `+buflist+`: bar item with list of buffers
----
/buflist refresh
refresh: force the refresh of the "buflist" bar item
The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options:
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current 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}
- 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
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${indent}: indentation for name (channel and private buffers are indented)
- ${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)
----
+20 -8
View File
@@ -3,49 +3,61 @@
// DO NOT EDIT BY HAND!
//
* [[option_buflist.format.buffer]] *buflist.format.buffer*
** opis: pass:none[format of each line with a buffer]
** 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ść: `+"${color:green}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
** opis: pass:none[format for the line with current buffer]
** 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}${number}.${indent}${color_hotlist}${name}"+`
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
** opis: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+" ${color:green}(${hotlist}${color:green})"+`
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
** opis: pass:none[format for a buffer with hotlist level "highlight"]
** opis: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:magenta}"+`
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
** opis: pass:none[format for a buffer with hotlist level "low"]
** opis: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:white}"+`
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
** opis: pass:none[format for a buffer with hotlist level "message"]
** opis: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:brown}"+`
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
** opis: pass:none[format for a buffer not in hotlist]
** opis: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:default}"+`
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
** opis: pass:none[format for a buffer with hotlist level "private"]
** opis: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:green}"+`
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
** opis: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"${color:default},"+`
* [[option_buflist.format.lag]] *buflist.format.lag*
** opis: pass:none[format for lag on an irc server buffer]
** 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}]"+`
File diff suppressed because it is too large Load Diff
+129 -18
View File
File diff suppressed because it is too large Load Diff
+140 -18
View File
File diff suppressed because it is too large Load Diff
+129 -18
View File
File diff suppressed because it is too large Load Diff
+197 -36
View File
File diff suppressed because it is too large Load Diff
+128 -18
View File
File diff suppressed because it is too large Load Diff
+149 -18
View File
File diff suppressed because it is too large Load Diff
+144 -18
View File
File diff suppressed because it is too large Load Diff
+146 -18
View File
File diff suppressed because it is too large Load Diff
+144 -18
View File
File diff suppressed because it is too large Load Diff
+149 -18
View File
File diff suppressed because it is too large Load Diff
+128 -18
View File
File diff suppressed because it is too large Load Diff
+118 -18
View File
File diff suppressed because it is too large Load Diff
+117 -18
View File
File diff suppressed because it is too large Load Diff
+11 -9
View File
@@ -7268,16 +7268,17 @@ command_init ()
" 1. an evaluated sub-string (format: \"eval:xxx\")\n"
" 2. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n"
" 3. a string with chars to hide (format: \"hide:char,string\")\n"
" 4. a color (format: \"color:xxx\")\n"
" 5. an info (format: \"info:name,arguments\", arguments are "
" 4. a string with max chars (format: \"cut:max,suffix,string\")\n"
" 5. a color (format: \"color:xxx\")\n"
" 6. an info (format: \"info:name,arguments\", arguments are "
"optional)\n"
" 6. current date/time (format: \"date\" or \"date:format\")\n"
" 7. an environment variable (format: \"env:XXX\")\n"
" 8. a ternary operator (format: "
"if:condition?value_if_true:value_if_false)\n"
" 9. an option (format: \"file.section.option\")\n"
" 10. a local variable in buffer\n"
" 11. a hdata name/variable (the value is automatically converted "
" 7. current date/time (format: \"date\" or \"date:format\")\n"
" 8. an environment variable (format: \"env:XXX\")\n"
" 9. a ternary operator (format: "
"\"if:condition?value_if_true:value_if_false\")\n"
" 10. an option (format: \"file.section.option\")\n"
" 11. a local variable in buffer\n"
" 12. a hdata name/variable (the value is automatically converted "
"to string), by default \"window\" and \"buffer\" point to current "
"window/buffer.\n"
"Format for hdata can be one of following:\n"
@@ -7306,6 +7307,7 @@ command_init ()
" /eval -n ${window.buffer.number} ==> 1\n"
" /eval -n ${\\t} ==> <tab>\n"
" /eval -n ${hide:-,${relay.network.password}} ==> --------\n"
" /eval -n ${cut:2,+,test} ==> te+\n"
" /eval -n ${date:%H:%M:%S} ==> 07:46:40\n"
" /eval -n ${if:${info:term_width}>80?big:small} ==> big\n"
"\n"
+6 -6
View File
@@ -70,7 +70,7 @@ buflist_command_init ()
"buflist",
N_("bar item with list of buffers"),
"refresh",
N_("refresh: force the refresh of the buflist bar item\n"
N_("refresh: force the refresh of the \"buflist\" bar item\n"
"\n"
"The lines with buffers are displayed using string evaluation "
"(see /help eval for the format), with two main options:\n"
@@ -92,19 +92,19 @@ buflist_command_init ()
"buflist.format.buffer_current to just change the background color "
"for example\n"
" - ${number}: indented number, for example \" 1\" if there "
"are between 10 and 99 buffers opened\n"
"are between 10 and 99 buffers\n"
" - ${indent}: indentation for name (channel and private "
"buffers are indented)\n"
" - ${name}: the short name (if set), with a fallback on the "
"name\n"
" - ${color_hotlist}: the color depending on the highest "
"hotlist level for the buffer, which is the content of option "
"buflist.format.hotlist_xxx (xxx is the level)\n"
"hotlist level for the buffer (evaluation of option "
"buflist.format.hotlist_xxx where xxx is the level)\n"
" - ${format_hotlist}: the formatted hotlist (evaluation "
"of option buflist.format.hotlist)\n"
" - ${hotlist}: the raw hotlist\n"
" - ${format_lag}: the lag for an IRC server buffer "
"(empty if there's no lag)\n"),
" - ${format_lag}: the lag for an IRC server buffer, empty if "
"there's no lag (evaluation of option buflist.format.lag)"),
"refresh",
&buflist_command_buflist, NULL, NULL);
}
+1 -1
View File
@@ -247,7 +247,7 @@ buflist_config_init ()
buflist_config_format_lag = weechat_config_new_option (
buflist_config_file, ptr_section,
"lag", "string",
N_("format for lag on an irc server buffer "
N_("format for lag on an IRC server buffer "
"(note: content is evaluated, see /help buflist)"),
NULL, 0, 0,
" ${color:green}[${color:brown}${lag}${color:green}]",