1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

buflist: add option buflist.format.indent

This commit is contained in:
Sébastien Helleu
2017-04-23 14:49:04 +02:00
parent 2606b8a5a3
commit 671c216eb3
29 changed files with 222 additions and 179 deletions
+18 -18
View File
@@ -8,29 +8,29 @@
----
/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)
- 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)
- ${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)
----
+6
View File
@@ -56,6 +56,12 @@
** Werte: beliebige Zeichenkette
** Standardwert: `+"${color:default},"+`
* [[option_buflist.format.indent]] *buflist.format.indent*
** Beschreibung: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /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
+1 -1
View File
@@ -26,7 +26,7 @@ The following variables can be used in these options:
- ${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)
- ${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)
+6
View File
@@ -56,6 +56,12 @@
** 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
+1 -1
View File
@@ -26,7 +26,7 @@ Les variables suivantes peuvent être utilisées dans ces options :
- ${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)
- ${indent} : indentation pour le nom (les tampons de canaux ou privés sont indentés) (évaluation de l'option buflist.format.indent)
- ${nick_prefix} : le préfixe du pseudo pour un cancl (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)
+6
View File
@@ -56,6 +56,12 @@
** 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
+1 -1
View File
@@ -26,7 +26,7 @@ The following variables can be used in these options:
- ${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)
- ${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)
+6
View File
@@ -56,6 +56,12 @@
** 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
+18 -18
View File
@@ -8,29 +8,29 @@
----
/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 オプションの評価結果)
- 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)
- ${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)
----
+6
View File
@@ -56,6 +56,12 @@
** 値: 未制約文字列
** デフォルト値: `+"${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 を参照してください)]
** タイプ: 文字列
+1 -1
View File
@@ -26,7 +26,7 @@ The following variables can be used in these options:
- ${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)
- ${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)
+6
View File
@@ -56,6 +56,12 @@
** 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