From b67c7a4b29f9dac613f9dc938bc84c413f3a6f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 1 Jul 2017 16:07:43 +0200 Subject: [PATCH] buflist: add option buflist.look.add_newline (closes #1027) --- ChangeLog.adoc | 1 + doc/de/autogen/user/buflist_options.adoc | 6 ++++++ doc/en/autogen/user/buflist_options.adoc | 6 ++++++ doc/fr/autogen/user/buflist_options.adoc | 6 ++++++ doc/it/autogen/user/buflist_options.adoc | 6 ++++++ doc/ja/autogen/user/buflist_options.adoc | 6 ++++++ doc/pl/autogen/user/buflist_options.adoc | 6 ++++++ po/cs.po | 8 +++++++- po/de.po | 8 +++++++- po/es.po | 8 +++++++- po/fr.po | 14 ++++++++++++-- po/hu.po | 8 +++++++- po/it.po | 8 +++++++- po/ja.po | 8 +++++++- po/pl.po | 8 +++++++- po/pt.po | 8 +++++++- po/pt_BR.po | 8 +++++++- po/ru.po | 8 +++++++- po/tr.po | 8 +++++++- po/weechat.pot | 8 +++++++- src/plugins/buflist/buflist-bar-item.c | 3 ++- src/plugins/buflist/buflist-config.c | 12 ++++++++++++ src/plugins/buflist/buflist-config.h | 1 + 23 files changed, 148 insertions(+), 15 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 2036b6e4a..e31b57a08 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] New features:: + * buflist: add option buflist.look.add_newline (issue #1027) * fset: new plugin "fset" (fast set of WeeChat and plugins options) Bug fixes:: diff --git a/doc/de/autogen/user/buflist_options.adoc b/doc/de/autogen/user/buflist_options.adoc index 6b59b3569..111cb4c53 100644 --- a/doc/de/autogen/user/buflist_options.adoc +++ b/doc/de/autogen/user/buflist_options.adoc @@ -86,6 +86,12 @@ ** Werte: beliebige Zeichenkette ** Standardwert: `+"${color:green}${number}${if:${number_displayed}?.: }"+` +* [[option_buflist.look.add_newline]] *buflist.look.add_newline* +** Beschreibung: pass:none[add newline between the buffers displayed, so each buffer is displayed on a separate line (recommended); if disabled, newlines must be manually added in the formats with "${\n}", and the mouse actions are not possible any more] +** Typ: boolesch +** Werte: on, off +** Standardwert: `+on+` + * [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll* ** Beschreibung: pass:none[scrollt automatisch die buflist-Bar um den aktuellen Buffer darzustellen (dies funktioniert ausschließlich wenn die Bar links/rechts positioniert ist und als Darstellung "vertical" verwendet wird); dieser Wert ist eine prozentuale Angabe wo der aktuelle Buffer angezeigt werden soll (-1 = deaktiviert); zum Beispiel wird bei einem Wert von 50 der Buffer in der Mitte der Bar angezeigt, bei 0 wird der Buffer oben und bei 100 am unteren Rand der Bar angezeigt] ** Typ: integer diff --git a/doc/en/autogen/user/buflist_options.adoc b/doc/en/autogen/user/buflist_options.adoc index 490e6d2de..18a099098 100644 --- a/doc/en/autogen/user/buflist_options.adoc +++ b/doc/en/autogen/user/buflist_options.adoc @@ -86,6 +86,12 @@ ** values: any string ** default value: `+"${color:green}${number}${if:${number_displayed}?.: }"+` +* [[option_buflist.look.add_newline]] *buflist.look.add_newline* +** description: pass:none[add newline between the buffers displayed, so each buffer is displayed on a separate line (recommended); if disabled, newlines must be manually added in the formats with "${\n}", and the mouse actions are not possible any more] +** type: boolean +** values: on, off +** default value: `+on+` + * [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll* ** description: pass:none[automatically scroll the buflist bar to always see the current buffer (this works only with a bar on the left/right position with a "vertical" filling); this value is the percent number of lines displayed before the current buffer when scrolling (-1 = disable scroll); for example 50 means that after a scroll, the current buffer is at the middle of bar, 0 means on top of bar, 100 means at bottom of bar] ** type: integer diff --git a/doc/fr/autogen/user/buflist_options.adoc b/doc/fr/autogen/user/buflist_options.adoc index 33d381c87..71ce26b09 100644 --- a/doc/fr/autogen/user/buflist_options.adoc +++ b/doc/fr/autogen/user/buflist_options.adoc @@ -86,6 +86,12 @@ ** valeurs: toute chaîne ** valeur par défaut: `+"${color:green}${number}${if:${number_displayed}?.: }"+` +* [[option_buflist.look.add_newline]] *buflist.look.add_newline* +** description: pass:none[ajouter une nouvelle ligne entre les tampons affichés, de sorte que chaque tampon est affiché sur une ligne séparée (recommandé) ; si désactivé, les nouvelles lignes doivent être ajoutées dans les formats avec "${\n}", et les actions de souris ne sont plus possibles] +** type: booléen +** valeurs: on, off +** valeur par défaut: `+on+` + * [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll* ** description: pass:none[faire défiler automatiquement la barre buflist pour toujours voir le tampon courant (cela fonctionne seulement avec une barre en position gauche/droite avec un remplissage "vertical") ; cette valeur est un pourcentage de lignes affichées avant le tampon courant lors du défilement (-1 = désactiver le défilement) ; par exemple 50 signifie qu'après un défilement, le tampon courant est au milieu de la barre, 0 signifie en haut de la barre et 100 signifie en bas de la barre] ** type: entier diff --git a/doc/it/autogen/user/buflist_options.adoc b/doc/it/autogen/user/buflist_options.adoc index efa2e84c5..6fbb9d8b6 100644 --- a/doc/it/autogen/user/buflist_options.adoc +++ b/doc/it/autogen/user/buflist_options.adoc @@ -86,6 +86,12 @@ ** valori: qualsiasi stringa ** valore predefinito: `+"${color:green}${number}${if:${number_displayed}?.: }"+` +* [[option_buflist.look.add_newline]] *buflist.look.add_newline* +** descrizione: pass:none[add newline between the buffers displayed, so each buffer is displayed on a separate line (recommended); if disabled, newlines must be manually added in the formats with "${\n}", and the mouse actions are not possible any more] +** tipo: bool +** valori: on, off +** valore predefinito: `+on+` + * [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll* ** descrizione: pass:none[automatically scroll the buflist bar to always see the current buffer (this works only with a bar on the left/right position with a "vertical" filling); this value is the percent number of lines displayed before the current buffer when scrolling (-1 = disable scroll); for example 50 means that after a scroll, the current buffer is at the middle of bar, 0 means on top of bar, 100 means at bottom of bar] ** tipo: intero diff --git a/doc/ja/autogen/user/buflist_options.adoc b/doc/ja/autogen/user/buflist_options.adoc index 8918de03a..eebefd5de 100644 --- a/doc/ja/autogen/user/buflist_options.adoc +++ b/doc/ja/autogen/user/buflist_options.adoc @@ -86,6 +86,12 @@ ** 値: 未制約文字列 ** デフォルト値: `+"${color:green}${number}${if:${number_displayed}?.: }"+` +* [[option_buflist.look.add_newline]] *buflist.look.add_newline* +** 説明: pass:none[add newline between the buffers displayed, so each buffer is displayed on a separate line (recommended); if disabled, newlines must be manually added in the formats with "${\n}", and the mouse actions are not possible any more] +** タイプ: ブール +** 値: on, off +** デフォルト値: `+on+` + * [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll* ** 説明: pass:none[現在のバッファが常にバーの中に表示されるように自動的にバッファリストバーをスクロールします (この機能はフィリングが "vertical" に設定された左右にあるバーでのみ機能します); 設定値は現在のバーよりも前に表示される行数のパーセント値です (-1 = 自動スクロールを無効化); 例えば値を 50 に設定した場合、現在のバッファがバーの中央に位置するように自動スクロールされます。0 に設定した場合はバーの最初、100 に設定した場合はバーの最後を意味します] ** タイプ: 整数 diff --git a/doc/pl/autogen/user/buflist_options.adoc b/doc/pl/autogen/user/buflist_options.adoc index a84d5fe56..1e57b567b 100644 --- a/doc/pl/autogen/user/buflist_options.adoc +++ b/doc/pl/autogen/user/buflist_options.adoc @@ -86,6 +86,12 @@ ** wartości: dowolny ciąg ** domyślna wartość: `+"${color:green}${number}${if:${number_displayed}?.: }"+` +* [[option_buflist.look.add_newline]] *buflist.look.add_newline* +** opis: pass:none[add newline between the buffers displayed, so each buffer is displayed on a separate line (recommended); if disabled, newlines must be manually added in the formats with "${\n}", and the mouse actions are not possible any more] +** typ: bool +** wartości: on, off +** domyślna wartość: `+on+` + * [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll* ** opis: pass:none[automatycznie przewiń litę kanałów, żeby zawsze wyświetlała obecny bufor (działa tylko, kiedy lita kanałów ma pozycję lewo/prawo z uzupełnianiem "vertical"); ta wartość określa procentowo ilość linii wyświetlanych przed obecnym buforem podczas przewijania (-1 = wyłącz przewijanie); na przykład 50 oznacza, że po przewinięciu obecny bufor jest na środku listy, 0 oznacza górę listy, 100 dół listy] ** typ: liczba diff --git a/po/cs.po b/po/cs.po index 16f9f6898..eb5caa3f1 100644 --- a/po/cs.po +++ b/po/cs.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:32+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -4982,6 +4982,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr " napojené signály:" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/de.po b/po/de.po index 88dcb3fe8..76d9ea59d 100644 --- a/po/de.po +++ b/po/de.po @@ -19,7 +19,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:32+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -5941,6 +5941,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr "%s: %d Signale hooked" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/es.po b/po/es.po index 7864cf651..e813830e4 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:32+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -5196,6 +5196,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr " señales enganchadas:" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/fr.po b/po/fr.po index 0caa1f290..e2588dbf3 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" -"PO-Revision-Date: 2017-06-28 22:03+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" +"PO-Revision-Date: 2017-07-01 16:06+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -5808,6 +5808,16 @@ msgstr "" msgid "%s: %d signals hooked" msgstr "%s: %d signaux accrochés" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" +"ajouter une nouvelle ligne entre les tampons affichés, de sorte que chaque " +"tampon est affiché sur une ligne séparée (recommandé) ; si désactivé, les " +"nouvelles lignes doivent être ajoutées dans les formats avec \"${\\n}\", et " +"les actions de souris ne sont plus possibles" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/hu.po b/po/hu.po index ea642fd46..b085b57ac 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:32+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -4520,6 +4520,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr " üzenetkezelők:\n" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/it.po b/po/it.po index 5bb950344..5a5a9a18f 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:32+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -5334,6 +5334,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr " hook sui segnali:" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/ja.po b/po/ja.po index 112496587..d796dae5a 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:33+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language-Team: weechat-dev \n" @@ -5674,6 +5674,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr "%s: %d powiązanych sygnałów" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/pt.po b/po/pt.po index 6aa3bf80c..411345bab 100644 --- a/po/pt.po +++ b/po/pt.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:33+0200\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -5590,6 +5590,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr " sinais ligados:" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/pt_BR.po b/po/pt_BR.po index f0c244b75..9a8957df9 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:33+0200\n" "Last-Translator: Eduardo Elias \n" "Language-Team: weechat-dev \n" @@ -5136,6 +5136,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr " sinais relacionados:" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/ru.po b/po/ru.po index 759247151..d84bba9d9 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:33+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -4558,6 +4558,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr " обработчики сообщений:\n" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/tr.po b/po/tr.po index d89ce88d2..3c090728c 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2017-06-26 23:33+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -4123,6 +4123,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr "" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/po/weechat.pot b/po/weechat.pot index 33d64fd0a..adfac63cc 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-06-28 22:02+0200\n" +"POT-Creation-Date: 2017-07-01 16:06+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -4108,6 +4108,12 @@ msgstr "" msgid "%s: %d signals hooked" msgstr "" +msgid "" +"add newline between the buffers displayed, so each buffer is displayed on a " +"separate line (recommended); if disabled, newlines must be manually added in " +"the formats with \"${\\n}\", and the mouse actions are not possible any more" +msgstr "" + msgid "" "automatically scroll the buflist bar to always see the current buffer (this " "works only with a bar on the left/right position with a \"vertical\" " diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c index d60ecfb45..cf1d22d2a 100644 --- a/src/plugins/buflist/buflist-bar-item.c +++ b/src/plugins/buflist/buflist-bar-item.c @@ -324,7 +324,8 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, ptr_buffer, "name"); } - if (*buflist[0]) + if (weechat_config_boolean (buflist_config_look_add_newline) + && *buflist[0]) { if (!weechat_string_dyn_concat (buflist, "\n")) goto error; diff --git a/src/plugins/buflist/buflist-config.c b/src/plugins/buflist/buflist-config.c index 9c08baa92..2af36236c 100644 --- a/src/plugins/buflist/buflist-config.c +++ b/src/plugins/buflist/buflist-config.c @@ -32,6 +32,7 @@ struct t_config_file *buflist_config_file = NULL; /* buflist config, look section */ +struct t_config_option *buflist_config_look_add_newline; struct t_config_option *buflist_config_look_auto_scroll; struct t_config_option *buflist_config_look_display_conditions; struct t_config_option *buflist_config_look_enabled; @@ -338,6 +339,17 @@ buflist_config_init () return 0; } + buflist_config_look_add_newline = weechat_config_new_option ( + buflist_config_file, ptr_section, + "add_newline", "boolean", + N_("add newline between the buffers displayed, so each buffer is " + "displayed on a separate line (recommended); if disabled, newlines " + "must be manually added in the formats with \"${\\n}\", " + "and the mouse actions are not possible any more"), + NULL, 0, 0, "on", NULL, 0, + NULL, NULL, NULL, + &buflist_config_change_buflist, NULL, NULL, + NULL, NULL, NULL); buflist_config_look_auto_scroll = weechat_config_new_option ( buflist_config_file, ptr_section, "auto_scroll", "integer", diff --git a/src/plugins/buflist/buflist-config.h b/src/plugins/buflist/buflist-config.h index 1e4d9b877..f8895873c 100644 --- a/src/plugins/buflist/buflist-config.h +++ b/src/plugins/buflist/buflist-config.h @@ -32,6 +32,7 @@ extern struct t_config_file *buflist_config_file; +extern struct t_config_option *buflist_config_look_add_newline; extern struct t_config_option *buflist_config_look_auto_scroll; extern struct t_config_option *buflist_config_look_display_conditions; extern struct t_config_option *buflist_config_look_enabled;