fset: add option fset.look.auto_refresh (closes #1553)

This commit is contained in:
Sébastien Helleu 2020-08-09 10:56:03 +02:00
parent 0cc5df6649
commit 1054cdf1e9
23 changed files with 252 additions and 14 deletions

View File

@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
New features::
* fset: add option fset.look.auto_refresh (issue #1553)
* irc: add pointer to irc_nick in focus of bar item "buffer_nicklist" (issue #1535, issue #1538)
* irc: allow to send text on buffers with commands /allchan, /allpv and /allserv
* irc: evaluate command executed by commands /allchan, /allpv and /allserv (issue #1536)

View File

@ -3748,6 +3748,12 @@
** Werte: beliebige Zeichenkette
** Standardwert: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+`
* [[option_fset.look.auto_refresh]] *fset.look.auto_refresh*
** Beschreibung: pass:none[comma separated list of options to automatically refresh on the fset buffer (if opened); "*" means all options (recommended), a name beginning with "!" is a negative value to prevent an option to be refreshed, wildcard "*" is allowed in names (example: "*,!plugin.section.*")]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"*"+`
* [[option_fset.look.auto_unmark]] *fset.look.auto_unmark*
** Beschreibung: pass:none[die Markierung wird automatisch für alle Optionen gelöscht, sobald eine Aktion bei einer markierten Option durchgeführt wird oder die Liste neu eingelesen wird]
** Typ: boolesch

View File

@ -3748,6 +3748,12 @@
** values: any string
** default value: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+`
* [[option_fset.look.auto_refresh]] *fset.look.auto_refresh*
** description: pass:none[comma separated list of options to automatically refresh on the fset buffer (if opened); "*" means all options (recommended), a name beginning with "!" is a negative value to prevent an option to be refreshed, wildcard "*" is allowed in names (example: "*,!plugin.section.*")]
** type: string
** values: any string
** default value: `+"*"+`
* [[option_fset.look.auto_unmark]] *fset.look.auto_unmark*
** description: pass:none[automatically unmark all options after an action on marked options or after a refresh]
** type: boolean

View File

@ -3748,6 +3748,12 @@
** valeurs: toute chaîne
** valeur par défaut: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+`
* [[option_fset.look.auto_refresh]] *fset.look.auto_refresh*
** description: pass:none[liste des options à rafraichir automatiquement sur le tampon fset (s'il est ouvert) ; "*" signifie toutes les options (recommandé), un nom commençant par "!" est une valeur négative pour empêcher une option d'être rafraichie, le caractère joker "*" est autorisé dans les noms (exemple : "*,!plugin.section.*")]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"*"+`
* [[option_fset.look.auto_unmark]] *fset.look.auto_unmark*
** description: pass:none[démarquer automatiquement toutes les options après une action sur les options marquées ou après un rafraichissement]
** type: booléen

View File

@ -3748,6 +3748,12 @@
** valori: qualsiasi stringa
** valore predefinito: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+`
* [[option_fset.look.auto_refresh]] *fset.look.auto_refresh*
** descrizione: pass:none[comma separated list of options to automatically refresh on the fset buffer (if opened); "*" means all options (recommended), a name beginning with "!" is a negative value to prevent an option to be refreshed, wildcard "*" is allowed in names (example: "*,!plugin.section.*")]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"*"+`
* [[option_fset.look.auto_unmark]] *fset.look.auto_unmark*
** descrizione: pass:none[automatically unmark all options after an action on marked options or after a refresh]
** tipo: bool

View File

@ -3748,6 +3748,12 @@
** 値: 未制約文字列
** デフォルト値: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+`
* [[option_fset.look.auto_refresh]] *fset.look.auto_refresh*
** 説明: pass:none[comma separated list of options to automatically refresh on the fset buffer (if opened); "*" means all options (recommended), a name beginning with "!" is a negative value to prevent an option to be refreshed, wildcard "*" is allowed in names (example: "*,!plugin.section.*")]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"*"+`
* [[option_fset.look.auto_unmark]] *fset.look.auto_unmark*
** 説明: pass:none[マーク済みオプションに対する操作の後または再読込の後に自動的にすべてのオプションをアンマーク]
** タイプ: ブール

View File

@ -3748,6 +3748,12 @@
** wartości: dowolny ciąg
** domyślna wartość: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+`
* [[option_fset.look.auto_refresh]] *fset.look.auto_refresh*
** opis: pass:none[comma separated list of options to automatically refresh on the fset buffer (if opened); "*" means all options (recommended), a name beginning with "!" is a negative value to prevent an option to be refreshed, wildcard "*" is allowed in names (example: "*,!plugin.section.*")]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"*"+`
* [[option_fset.look.auto_unmark]] *fset.look.auto_unmark*
** opis: pass:none[automatycznie odznacza wszystkie opcje po akcji na zaznaczonych opcjach lub po odświerzeniu]
** typ: bool

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5731,6 +5731,18 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "konfigurační soubor \"%s\" (nastavení %s.*)"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"čárkou rozdělený seznam pluginů pro automatické načtení při spuštění \"*\" "
"znamená všechny nalezené pluginy, jméno začínající \"!\" je negativní "
"hodnota k zabránění načtení pluginu, jména mohou začínat nebo končit \"*\" "
"pro vybrání několika pluginů (příklady: \"*\" nebo \"*,!lua,!tcl\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -24,7 +24,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-07-21 11:35+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@ -7198,6 +7198,19 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "Konfigurationsdateien, Sektionen, Optionen und Worte von Optionen"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"durch Kommata getrennte Liste der Erweiterungen, die beim Programmstart "
"automatisch geladen werden sollen; \"*\" lädt alle vorhandenen "
"Erweiterungen. Beginnt der Name hingegen mit \"!\" wird die Erweiterung "
"nicht geladen. Im Namen der Erweiterung kann der Platzhalter \"*\" verwendet "
"werden (Beispiele: \"*\" oder \"*,!lua,!tcl\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5933,6 +5933,18 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "opciones de configuración"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"lista de plugins separados por comas para cargar automáticamente al iniciar, "
"\"*\" significa todos los plugins encontrados, un nombre empezando con \"!\" "
"previene que el plugin se cargue, nombres pueden empezar o terminar con \"*"
"\" para indicar varios plugins (ejemplo: \"*\" o \"*,!lua,!tcl\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"PO-Revision-Date: 2020-07-20 22:26+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-08-09 10:53+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -7048,6 +7048,18 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "fichiers de configuration, section, options et mots des options"
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"liste des options à rafraichir automatiquement sur le tampon fset (s'il est "
"ouvert) ; \"*\" signifie toutes les options (recommandé), un nom commençant "
"par \"!\" est une valeur négative pour empêcher une option d'être "
"rafraichie, le caractère joker \"*\" est autorisé dans les noms (exemple : "
"\"*,!plugin.section.*\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5266,6 +5266,17 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "Nem található az opció\n"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"automatikusan betöltendő modulok vesszővel elválasztott listája, \"*\" "
"esetén az összes fellelt modul (az elnevezés lehet részleges, például a "
"\"perl\" elegendő \"libperl.so\" helyett)"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -6099,6 +6099,19 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "file di configurazione \"%s\" (opzioni %s.*)"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"elenco separato da virgole di plugin da caricare automaticamente all'avvio, "
"\"*\" equivale a tutti i plugin trovati. un nome che comincia con \"!\" è un "
"valore negativo per impedire il caricamento di un plugin, i nomi possono "
"iniziare o finire con \"*\" per corrispondere a più plugin (esempi: \"*\" "
"oppure \"*,!lua,!tcl\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@ -6711,6 +6711,17 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "設定ファイル、セクション、オプションの名前、オプションの値"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"スタートアップ時にロードするプラグインのコンマ区切りリスト、\"*\" は見つかっ"
"た全てのプラグイン、\"!\" から始まる名前はロードしないプラグイン、名前にワイ"
"ルドカード \"*\" を使うことができます (例: \"*\" または \"*,!lua,!tcl\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@ -6853,6 +6853,18 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "pliki konfiguracyjne, sekcje, opcje i slowa w opcjach"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"oddzielona przecinkami lista wtyczek do automatycznego załadowania podczas "
"startu, \"*\" oznacza wszystkie znalezione wtyczki, nazwa zaczynająca się od "
"\"!\" powoduje nie ładowanie tej wtyczki, wildcard \"*\" jest dozwolony w "
"nazwach (przykłady: \"*\" lub \"*,!lua,!tcl\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@ -6475,6 +6475,19 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "ficheiro de configuração \"%s\" (opções %s.*)"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"lista de plugins separados por vírgula para carregar automaticamente ao "
"iniciar, \"*\" significa todos os plugins encontrados, um nome começado com "
"\"!\" serve de valor negativo para impedir que o plugin seja carregado, pode-"
"se usar o caráter universal \"*\" nos nomes (exemplos: \"*\" ou \"*,!lua,!tcl"
"\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-18 11:34+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5906,6 +5906,19 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "configuração do arquivo \"%s\" (opções %s.*)"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"lista separada por vírgulas dos plugins para carregar automaticamente "
"nainicialização, \"*\" significa todos os plugins encontrados, um nome "
"começando com \"!\" é um valor negativo para prevenir um plugin de ser "
"carrgado, nomes podem começar ou terminar com \"*\" para casar com vários "
"plugins (exemplos: \"*\" ou \"*,!lua,!tcl\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2020-04-28 16:40+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5303,6 +5303,17 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "Не найден параметр\n"
#, fuzzy
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
"разделённый запятыми список автоматически загружаемых при запуске plug-"
"in'ов , \"*\" означает все найденные plug-in'ы (имена могут быть не полными, "
"например \"perl\" успешно загрузит \"libperl.so\")"
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\n"
"PO-Revision-Date: 2019-11-03 08:38+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4854,6 +4854,13 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr "yapılandırma seçenekleri"
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2020-07-20 22:25+0200\n"
"POT-Creation-Date: 2020-08-09 10:51+0200\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"
@ -4828,6 +4828,13 @@ msgstr ""
msgid "configuration files, sections, options and words of options"
msgstr ""
msgid ""
"comma separated list of options to automatically refresh on the fset buffer "
"(if opened); \"*\" means all options (recommended), a name beginning with \"!"
"\" is a negative value to prevent an option to be refreshed, wildcard \"*\" "
"is allowed in names (example: \"*,!plugin.section.*\")"
msgstr ""
msgid ""
"automatically unmark all options after an action on marked options or after "
"a refresh"

View File

@ -34,6 +34,7 @@ struct t_config_file *fset_config_file = NULL;
/* fset config, look section */
struct t_config_option *fset_config_look_auto_refresh;
struct t_config_option *fset_config_look_auto_unmark;
struct t_config_option *fset_config_look_condition_catch_set;
struct t_config_option *fset_config_look_export_help_default;
@ -93,11 +94,39 @@ struct t_config_option *fset_config_color_value[2];
struct t_config_option *fset_config_color_value_changed[2];
struct t_config_option *fset_config_color_value_undef[2];
char **fset_config_auto_refresh = NULL;
char **fset_config_sort_fields = NULL;
int fset_config_sort_fields_count = 0;
int fset_config_format_option_num_lines[2] = { 1, 1 };
/*
* Callback for changes on option "fset.look.auto_refresh".
*/
void
fset_config_change_auto_refresh_cb (const void *pointer, void *data,
struct t_config_option *option)
{
/* make C compiler happy */
(void) pointer;
(void) data;
(void) option;
if (fset_config_auto_refresh)
weechat_string_free_split (fset_config_auto_refresh);
fset_config_auto_refresh = weechat_string_split (
weechat_config_string (fset_config_look_auto_refresh),
",",
NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
0,
NULL);
}
/*
* Callback for changes on option "fset.look.format_number".
*/
@ -335,6 +364,18 @@ fset_config_init ()
return 0;
}
fset_config_look_auto_refresh = weechat_config_new_option (
fset_config_file, ptr_section,
"auto_refresh", "string",
N_("comma separated list of options to automatically refresh on the "
"fset buffer (if opened); \"*\" means all options (recommended), "
"a name beginning with \"!\" is a negative value to prevent an "
"option to be refreshed, wildcard \"*\" is allowed in names "
"(example: \"*,!plugin.section.*\")"),
NULL, 0, 0, "*", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_auto_refresh_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_look_auto_unmark = weechat_config_new_option (
fset_config_file, ptr_section,
"auto_unmark", "boolean",
@ -1093,6 +1134,11 @@ fset_config_free ()
{
weechat_config_free (fset_config_file);
if (fset_config_auto_refresh)
{
weechat_string_free_split (fset_config_auto_refresh);
fset_config_auto_refresh = NULL;
}
if (fset_config_sort_fields)
{
weechat_string_free_split (fset_config_sort_fields);

View File

@ -24,6 +24,7 @@
extern struct t_config_file *fset_config_file;
extern struct t_config_option *fset_config_look_auto_refresh;
extern struct t_config_option *fset_config_look_auto_unmark;
extern struct t_config_option *fset_config_look_condition_catch_set;
extern struct t_config_option *fset_config_look_export_help_default;
@ -79,6 +80,7 @@ extern struct t_config_option *fset_config_color_value[2];
extern struct t_config_option *fset_config_color_value_changed[2];
extern struct t_config_option *fset_config_color_value_undef[2];
extern char **fset_config_auto_refresh;
extern char **fset_config_sort_fields;
extern int fset_config_sort_fields_count;
extern int fset_config_format_option_num_lines[2];

View File

@ -1550,6 +1550,12 @@ fset_option_config_cb (const void *pointer,
if (!fset_buffer)
return WEECHAT_RC_OK;
/* do nothing if auto-refresh is disabled for this option */
if (!weechat_string_match_list (option,
(const char **)fset_config_auto_refresh,
0))
return WEECHAT_RC_OK;
/* do nothing if WeeChat is upgrading */
info = weechat_info_get ("weechat_upgrading", NULL);
if (info && (strcmp (info, "1") == 0))