1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

core: add option weechat.look.chat_space_right (issue #1862)

This commit is contained in:
Sébastien Helleu
2022-12-29 12:00:28 +01:00
parent 45fdcc2eb4
commit fce2fcba4f
25 changed files with 145 additions and 16 deletions
+1
View File
@@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
New features::
* core: add option weechat.look.chat_space_right (issue #1862)
* core: allow value "0" in buffer property "unread" to remove read marker from buffer
* core: add command `/allbuf`
* core: add command `/hotlist`
@@ -630,6 +630,12 @@
** Werte: beliebige Zeichenkette
** Standardwert: `+""+`
* [[option_weechat.look.chat_space_right]] *weechat.look.chat_space_right*
** Beschreibung: pass:none[keep a space on the right side of chat area if there is a bar displayed on the right (for both text and read marker)]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+off+`
* [[option_weechat.look.color_basic_force_bold]] *weechat.look.color_basic_force_bold*
** Beschreibung: pass:none[erzwingt das Textattribut "fett" für helle Farben und "darkgray", um diese Farben stärker hervorzuheben (diese Einstellung ist standardmäßig deaktiviert: "fett" findet ausschließlich dann Verwendung falls das Terminal weniger als 16 Farben zur Verfügung stellt)]
** Typ: boolesch
@@ -630,6 +630,12 @@
** values: any string
** default value: `+""+`
* [[option_weechat.look.chat_space_right]] *weechat.look.chat_space_right*
** description: pass:none[keep a space on the right side of chat area if there is a bar displayed on the right (for both text and read marker)]
** type: boolean
** values: on, off
** default value: `+off+`
* [[option_weechat.look.color_basic_force_bold]] *weechat.look.color_basic_force_bold*
** description: pass:none[force "bold" attribute for light colors and "darkgray" in basic colors (this option is disabled by default: bold is used only if terminal has less than 16 colors)]
** type: boolean
@@ -630,6 +630,12 @@
** valeurs: toute chaîne
** valeur par défaut: `+""+`
* [[option_weechat.look.chat_space_right]] *weechat.look.chat_space_right*
** description: pass:none[garder un espace sur la droite de la zone de discussion s'il y a une barre affichée sur la droite (pour le texte et le marqueur de données non lues)]
** type: booléen
** valeurs: on, off
** valeur par défaut: `+off+`
* [[option_weechat.look.color_basic_force_bold]] *weechat.look.color_basic_force_bold*
** description: pass:none[forcer l'attribut "bold" (gras) pour les couleurs claires et "darkgray" dans les couleurs de base (cette option est désactivée par défaut : le gras est utilisé seulement si le terminal a moins de 16 couleurs)]
** type: booléen
@@ -630,6 +630,12 @@
** valori: qualsiasi stringa
** valore predefinito: `+""+`
* [[option_weechat.look.chat_space_right]] *weechat.look.chat_space_right*
** descrizione: pass:none[keep a space on the right side of chat area if there is a bar displayed on the right (for both text and read marker)]
** tipo: bool
** valori: on, off
** valore predefinito: `+off+`
* [[option_weechat.look.color_basic_force_bold]] *weechat.look.color_basic_force_bold*
** descrizione: pass:none[forza l'attributo "bold" per i colori chiari e "darkgray" nei colori di base (questa opzione è disabilitata per default: il grassetto è usato solo se il terminale ha meno di 16 colori)]
** tipo: bool
@@ -630,6 +630,12 @@
** 値: 未制約文字列
** デフォルト値: `+""+`
* [[option_weechat.look.chat_space_right]] *weechat.look.chat_space_right*
** 説明: pass:none[keep a space on the right side of chat area if there is a bar displayed on the right (for both text and read marker)]
** タイプ: ブール
** 値: on, off
** デフォルト値: `+off+`
* [[option_weechat.look.color_basic_force_bold]] *weechat.look.color_basic_force_bold*
** 説明: pass:none[明るい色と標準的な色の "darkgray" には "太字" 属性を強制 (このオプションはデフォルトでは無効: 太字は端末が 16 色以下の表示能力しかない場合に利用される)]
** タイプ: ブール
@@ -630,6 +630,12 @@
** wartości: dowolny ciąg
** domyślna wartość: `+""+`
* [[option_weechat.look.chat_space_right]] *weechat.look.chat_space_right*
** opis: pass:none[keep a space on the right side of chat area if there is a bar displayed on the right (for both text and read marker)]
** typ: bool
** wartości: on, off
** domyślna wartość: `+off+`
* [[option_weechat.look.color_basic_force_bold]] *weechat.look.color_basic_force_bold*
** opis: pass:none[wymusza atrybut "bold" dla jasnych kolorów oraz "darkgray" w kolorach podstawowych (ta opcja jest domyślnie wyłączona: pogrubienie jest używane tylko jeśli terminal obsługuje poniżej 16 kolorów)]
** typ: bool
@@ -630,6 +630,12 @@
** вредности: било који стринг
** подразумевана вредност: `+""+`
* [[option_weechat.look.chat_space_right]] *weechat.look.chat_space_right*
** опис: pass:none[keep a space on the right side of chat area if there is a bar displayed on the right (for both text and read marker)]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+off+`
* [[option_weechat.look.color_basic_force_bold]] *weechat.look.color_basic_force_bold*
** опис: pass:none[форсира атрибут „подебљано” за светле боје и „darkgray” у основним бојама (ова опција је подразумевано искључена: подебљано се користи само ако терминал подржава мање од 16 боја)]
** тип: логичка
+6 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3272,6 +3272,11 @@ msgstr ""
"časový formát pro \"time\" položku panelu (viz. man strftime pro specifikaci "
"data/času)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-12-28 10:25+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German - Germany <weechatter@arcor.de>\n"
@@ -4164,6 +4164,11 @@ msgstr ""
"angezeigt) (Hinweis: Inhalt wird evaluiert, es kann z.B. eine Farbe mittels "
"dem Format \"${color:xxx}\" angegeben werden, siehe /help eval)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3766,6 +3766,11 @@ msgstr ""
"en lugar del prefijo, o una cadena vacía para desactivar esta característica "
"(mostrar prefijo)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+9 -2
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"PO-Revision-Date: 2022-12-25 22:36+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-12-29 11:58+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -4059,6 +4059,13 @@ msgstr ""
"pouvez utiliser des couleurs avec le format \"${color:xxx}\", voir /help "
"eval)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
"garder un espace sur la droite de la zone de discussion s'il y a une barre "
"affichée sur la droite (pour le texte et le marqueur de données non lues)"
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2929,6 +2929,11 @@ msgid ""
"eval)"
msgstr "új nap kezdetével megjelenő időbélyeg"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3447,6 +3447,11 @@ msgstr ""
"stringa per mostrare la stringa invece del prefisso, o una stringa vuota per "
"disabilitare questa funzionalità (mostra prefisso)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -3893,6 +3893,11 @@ msgstr ""
"空文字列の場合はこの機能を無効化 (時刻を表示します) (注意: 設定値は評価される"
"ため、${color:xxx} などを使えます、/help eval を参照してください)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -4300,6 +4300,11 @@ msgstr ""
"przetwarzana, możesz użyć kolorów w formacie \"$(color:xxx}\", zobacz /help "
"eval)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -3888,6 +3888,11 @@ msgstr ""
"do prefixo, ou uma cadeia vazia para desativar a funcionalidade (exibir o "
"prefixo)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3509,6 +3509,11 @@ msgstr ""
"formato de tempo para o item de barra \"time\" (veja man strftime para "
"especificadores de data/tempo)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2951,6 +2951,11 @@ msgid ""
"eval)"
msgstr "отображение маркера даты при смене дня"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-12-05 09:44+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4172,6 +4172,11 @@ msgstr ""
"(приказ времена) (напомена: садржај се израчунава, тако да уз формат можете "
"да користите у боје „${color:xxx}”, погледајте /help eval)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+0100\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4281,6 +4281,11 @@ msgstr ""
"(not: içerik değerlendirilir, böylece biçimlendirirken renk "
"kullanabilirsiniz, örn. \"${color:xxx}\"; bkz. /help eval)"
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+6 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2022-12-25 22:34+0100\n"
"POT-Creation-Date: 2022-12-29 11:51+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"
@@ -2684,6 +2684,11 @@ msgid ""
"eval)"
msgstr ""
msgid ""
"keep a space on the right side of chat area if there is a bar displayed on "
"the right (for both text and read marker)"
msgstr ""
msgid ""
"force \"bold\" attribute for light colors and \"darkgray\" in basic colors "
"(this option is disabled by default: bold is used only if terminal has less "
+8
View File
@@ -101,6 +101,7 @@ struct t_config_option *config_look_buffer_search_regex;
struct t_config_option *config_look_buffer_search_where;
struct t_config_option *config_look_buffer_time_format;
struct t_config_option *config_look_buffer_time_same;
struct t_config_option *config_look_chat_space_right;
struct t_config_option *config_look_color_basic_force_bold;
struct t_config_option *config_look_color_inactive_buffer;
struct t_config_option *config_look_color_inactive_message;
@@ -2885,6 +2886,13 @@ config_weechat_init_options ()
NULL, NULL, NULL,
&config_change_buffer_time_same, NULL, NULL,
NULL, NULL, NULL);
config_look_chat_space_right = config_file_new_option (
weechat_config_file, ptr_section,
"chat_space_right", "boolean",
N_("keep a space on the right side of chat area if there is a bar "
"displayed on the right (for both text and read marker)"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_color_basic_force_bold = config_file_new_option (
weechat_config_file, ptr_section,
"color_basic_force_bold", "boolean",
+1
View File
@@ -153,6 +153,7 @@ extern struct t_config_option *config_look_buffer_search_regex;
extern struct t_config_option *config_look_buffer_search_where;
extern struct t_config_option *config_look_buffer_time_format;
extern struct t_config_option *config_look_buffer_time_same;
extern struct t_config_option *config_look_chat_space_right;
extern struct t_config_option *config_look_color_basic_force_bold;
extern struct t_config_option *config_look_color_inactive_buffer;
extern struct t_config_option *config_look_color_inactive_message;
+6 -1
View File
@@ -56,11 +56,16 @@
int
gui_chat_get_real_width (struct t_gui_window *window)
{
if ((window->win_chat_width > 1)
if (CONFIG_BOOLEAN(config_look_chat_space_right)
&& (window->win_chat_width > 1)
&& (window->win_chat_x + window->win_chat_width < gui_window_get_width ()))
{
return window->win_chat_width - 1;
}
else
{
return window->win_chat_width;
}
}
/*