diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | doc/de/includes/autogen_user_options.de.adoc | 6 | ||||
-rw-r--r-- | doc/en/includes/autogen_user_options.en.adoc | 6 | ||||
-rw-r--r-- | doc/fr/includes/autogen_user_options.fr.adoc | 6 | ||||
-rw-r--r-- | doc/it/includes/autogen_user_options.it.adoc | 6 | ||||
-rw-r--r-- | doc/ja/includes/autogen_user_options.ja.adoc | 6 | ||||
-rw-r--r-- | doc/pl/includes/autogen_user_options.pl.adoc | 6 | ||||
-rw-r--r-- | po/cs.po | 14 | ||||
-rw-r--r-- | po/de.po | 15 | ||||
-rw-r--r-- | po/es.po | 14 | ||||
-rw-r--r-- | po/fr.po | 16 | ||||
-rw-r--r-- | po/hu.po | 13 | ||||
-rw-r--r-- | po/it.po | 15 | ||||
-rw-r--r-- | po/ja.po | 13 | ||||
-rw-r--r-- | po/pl.po | 14 | ||||
-rw-r--r-- | po/pt.po | 15 | ||||
-rw-r--r-- | po/pt_BR.po | 15 | ||||
-rw-r--r-- | po/ru.po | 13 | ||||
-rw-r--r-- | po/tr.po | 9 | ||||
-rw-r--r-- | po/weechat.pot | 9 | ||||
-rw-r--r-- | src/plugins/fset/fset-config.c | 46 | ||||
-rw-r--r-- | src/plugins/fset/fset-config.h | 2 | ||||
-rw-r--r-- | src/plugins/fset/fset-option.c | 6 |
23 files changed, 252 insertions, 14 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 045d07fad..f441545fd 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -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) diff --git a/doc/de/includes/autogen_user_options.de.adoc b/doc/de/includes/autogen_user_options.de.adoc index 3f4ad9d80..7363586eb 100644 --- a/doc/de/includes/autogen_user_options.de.adoc +++ b/doc/de/includes/autogen_user_options.de.adoc @@ -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 diff --git a/doc/en/includes/autogen_user_options.en.adoc b/doc/en/includes/autogen_user_options.en.adoc index a9252a046..2503bd78e 100644 --- a/doc/en/includes/autogen_user_options.en.adoc +++ b/doc/en/includes/autogen_user_options.en.adoc @@ -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 diff --git a/doc/fr/includes/autogen_user_options.fr.adoc b/doc/fr/includes/autogen_user_options.fr.adoc index 68b221daf..8bacc2b16 100644 --- a/doc/fr/includes/autogen_user_options.fr.adoc +++ b/doc/fr/includes/autogen_user_options.fr.adoc @@ -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 diff --git a/doc/it/includes/autogen_user_options.it.adoc b/doc/it/includes/autogen_user_options.it.adoc index ecd058925..ed8590e2c 100644 --- a/doc/it/includes/autogen_user_options.it.adoc +++ b/doc/it/includes/autogen_user_options.it.adoc @@ -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 diff --git a/doc/ja/includes/autogen_user_options.ja.adoc b/doc/ja/includes/autogen_user_options.ja.adoc index e51370e42..3edab6046 100644 --- a/doc/ja/includes/autogen_user_options.ja.adoc +++ b/doc/ja/includes/autogen_user_options.ja.adoc @@ -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[マーク済みオプションに対する操作の後または再読込の後に自動的にすべてのオプションをアンマーク] ** タイプ: ブール diff --git a/doc/pl/includes/autogen_user_options.pl.adoc b/doc/pl/includes/autogen_user_options.pl.adoc index 511d1b4c3..1a5db9cb6 100644 --- a/doc/pl/includes/autogen_user_options.pl.adoc +++ b/doc/pl/includes/autogen_user_options.pl.adoc @@ -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 @@ -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" @@ -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" @@ -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" @@ -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" @@ -7049,6 +7049,18 @@ 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" msgstr "" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" diff --git a/po/pt_BR.po b/po/pt_BR.po index 99b1104ba..42ddacea8 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: 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" @@ -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" @@ -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" @@ -4855,6 +4855,13 @@ 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" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 527e24e34..9cefdfdee 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: 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" @@ -4829,6 +4829,13 @@ 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" msgstr "" diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c index b5bcfbab1..e1dc47b25 100644 --- a/src/plugins/fset/fset-config.c +++ b/src/plugins/fset/fset-config.c @@ -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,12 +94,40 @@ 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); diff --git a/src/plugins/fset/fset-config.h b/src/plugins/fset/fset-config.h index 763363ca0..3149ebc12 100644 --- a/src/plugins/fset/fset-config.h +++ b/src/plugins/fset/fset-config.h @@ -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]; diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index f6ff80942..0325b12a4 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -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)) |