mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 05:16:38 +02:00
buflist: add variable ${index_displayed}
This commit is contained in:
@@ -13,6 +13,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
- core: add option weechat.completion.cycle
|
||||
- core: add hdata for hooks
|
||||
- api: add functions util_parse_int, util_parse_long and util_parse_longlong
|
||||
- buflist: add variable `${index_displayed}`
|
||||
|
||||
### Removed
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-10-27 08:26+0100\n"
|
||||
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7013,6 +7013,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "list of bar items"
|
||||
msgid "buflist bar items"
|
||||
|
||||
@@ -28,7 +28,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-11-09 11:00+0100\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <kde-i18n-de@kde.org>\n"
|
||||
@@ -7962,6 +7962,12 @@ msgstr ""
|
||||
" - ${format_tls_version}: Indikator der TLS Version für den Serverbuffer, "
|
||||
"Channels bleiben unberührt (evaluiert aus Option buflist.format.tls_version)"
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
msgid "buflist bar items"
|
||||
msgstr "Buflist Bar-Items"
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-10-27 08:26+0100\n"
|
||||
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7194,6 +7194,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "list of bar items"
|
||||
msgid "buflist bar items"
|
||||
|
||||
@@ -23,8 +23,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"PO-Revision-Date: 2025-11-28 18:40+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-11-28 18:42+0100\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -7811,6 +7811,15 @@ msgstr ""
|
||||
"serveur courant, vide pour les canaux (évaluation de l'option "
|
||||
"buflist.format.tls_version)"
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
" - ${index_displayed} : index de la ligne affichée dans l'objet de barre "
|
||||
"(démarre à 0, seuls les tampons affichés incrémentent cet index, voir "
|
||||
"l'option buflist.look.display_conditions"
|
||||
|
||||
msgid "buflist bar items"
|
||||
msgstr "objets de barre de buflist"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-10-27 08:27+0100\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -6653,6 +6653,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "buflist bar items"
|
||||
msgstr "Aliaszok listája:\n"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-10-27 08:27+0100\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7139,6 +7139,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "list of bar items"
|
||||
msgid "buflist bar items"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-11-01 16:08+0100\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
@@ -7362,6 +7362,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "list of bar items"
|
||||
msgid "buflist bar items"
|
||||
|
||||
@@ -24,7 +24,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-11-24 00:14+0100\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7769,6 +7769,12 @@ msgstr ""
|
||||
" - ${format_tls_version}: wskaźnik wersji TLS w buforze serwera, pusty "
|
||||
"dla kanałów (wynik przetworzenia opcji buflist.format.tls_version)"
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
msgid "buflist bar items"
|
||||
msgstr "elementy paska buflist"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-10-27 08:27+0100\n"
|
||||
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
@@ -7407,6 +7407,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "list of bar items"
|
||||
msgid "buflist bar items"
|
||||
|
||||
+7
-1
@@ -23,7 +23,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-10-27 08:27+0100\n"
|
||||
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7037,6 +7037,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "list of bar items"
|
||||
msgid "buflist bar items"
|
||||
|
||||
@@ -23,7 +23,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-10-27 08:27+0100\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -6694,6 +6694,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "buflist bar items"
|
||||
msgstr "Список сокращений:\n"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-11-24 14:27+0400\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7562,6 +7562,12 @@ msgstr ""
|
||||
" - ${format_tls_version}: индикатор TLS верзије за серверски бафер, "
|
||||
"празно за канале (резултат израчунавања опције buflist.format.tls_version)"
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
msgid "buflist bar items"
|
||||
msgstr "ставке buflist траке"
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2025-11-01 16:08+0100\n"
|
||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7330,6 +7330,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "list of bar items"
|
||||
msgid "buflist bar items"
|
||||
|
||||
+7
-1
@@ -23,7 +23,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:38+0100\n"
|
||||
"POT-Creation-Date: 2025-11-28 18:41+0100\n"
|
||||
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -6209,6 +6209,12 @@ msgid ""
|
||||
"empty for channels (evaluation of option buflist.format.tls_version)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" - ${index_displayed}: index of line displayed in the bar item (starts at "
|
||||
"0, only buffers displayed increment this index, see option "
|
||||
"buflist.look.display_conditions"
|
||||
msgstr ""
|
||||
|
||||
msgid "buflist bar items"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
|
||||
int item_index, num_buffers, is_channel, is_private, is_list;
|
||||
int i, j, length_max_number, current_buffer, number, prev_number, priority;
|
||||
int rc, count, line_number, line_number_current_buffer;
|
||||
int hotlist_priority_number;
|
||||
int hotlist_priority_number, index_displayed;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
@@ -350,6 +350,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
|
||||
prev_number = -1;
|
||||
line_number = 0;
|
||||
line_number_current_buffer = 0;
|
||||
index_displayed = 0;
|
||||
|
||||
buflist = weechat_string_dyn_alloc (256);
|
||||
|
||||
@@ -658,6 +659,10 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
|
||||
if (current_buffer)
|
||||
line_number_current_buffer = line_number;
|
||||
prev_number = number;
|
||||
snprintf (str_number, sizeof (str_number), "%d", index_displayed);
|
||||
weechat_hashtable_set (buflist_hashtable_extra_vars,
|
||||
"index_displayed", str_number);
|
||||
index_displayed++;
|
||||
|
||||
/* add newline between each buffer (if needed) */
|
||||
if (weechat_config_boolean (buflist_config_look_add_newline)
|
||||
|
||||
@@ -196,7 +196,10 @@ buflist_command_init (void)
|
||||
"there's no lag (evaluation of option buflist.format.lag)"),
|
||||
N_(" - ${format_tls_version}: indicator of TLS version for a server "
|
||||
"buffer, empty for channels (evaluation of option "
|
||||
"buflist.format.tls_version)")),
|
||||
"buflist.format.tls_version)"),
|
||||
N_(" - ${index_displayed}: index of line displayed in the bar "
|
||||
"item (starts at 0, only buffers displayed increment this index, "
|
||||
"see option buflist.look.display_conditions")),
|
||||
"enable|disable|toggle"
|
||||
" || bar"
|
||||
" || refresh %(buflist_items_used)|%*",
|
||||
|
||||
Reference in New Issue
Block a user