1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 02:05:43 +02:00

Improve plugins autoload (option weechat.plugin.autoload): allow to use "*" as joker and "!" to prevent a plugin from being autoloaded (task #6361)

Some examples for option weechat.plugin.autoload:
- load all plugins (default): "*"
- load only alias, charset, irc and logger: "alias,charset,irc,logger"
- load all plugins but not lua and tcl: "*,!lua,!tcl"
- load all plugins but not perl and python: "*,!p*" (not recommended because new future plugins may begin with "p")
- do not load any plugin (weechat core alone is not really useful eheh): "!*"
This commit is contained in:
Sebastien Helleu
2010-03-31 22:39:09 +02:00
parent 253ff07009
commit 848cce2c8a
15 changed files with 193 additions and 95 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
FlashCode <flashcode@flashtux.org>
v0.3.2-dev, 2010-03-30
v0.3.2-dev, 2010-03-31
Version 0.3.2 (under dev!)
@@ -11,6 +11,9 @@ Version 0.3.2 (under dev!)
* core: add new command /mute
* core: add command line option "-s" (or "--no-script") to start WeeChat
without loading any script
* core: improve plugins autoload (option weechat.plugin.autoload): allow to
use "*" as joker and "!" to prevent a plugin from being autoloaded
(task #6361)
* core: remove unneeded space after time on each line if option
weechat.look.buffer_time_format is set to empty value (bug #28751)
* core: add option "switch_active_buffer_previous" for command /input
+1 -1
View File
@@ -574,7 +574,7 @@
** values: any string (default value: "%h/ssl/CAs.pem")
* *weechat.plugin.autoload*
** description: comma separated list of plugins to load automatically at startup, "*" means all plugins found (names may be partial, for example "perl" is ok for "perl.so")
** description: comma separated list of plugins to load automatically at startup, "*" means all plugins found, a name beginning with "!" is a negative value to prevent a plugin from being loaded, names can start or end with "*" to match several plugins (examples: "*", "*,!lua,!tcl")
** type: string
** values: any string (default value: "*")
+1 -1
View File
@@ -574,7 +574,7 @@
** valeurs: toute chaîne (valeur par défaut: "%h/ssl/CAs.pem")
* *weechat.plugin.autoload*
** description: liste des extensions à charger automatiquement au démarrage, "*" signifie toutes (séparées par des virgules, les noms peuvent être partiels, par exemple "perl" est ok pour "perl.so")
** description: liste des extensions à charger automatiquement au démarrage (séparées par des virgules), "*" signifie toutes les extensions trouvées, un nom commençant par "!" est une valeur négative pour empêcher une extension d'être chargée, les noms peuvent commencer ou se terminer par "*" pour indiquer plusieurs extensions (exemples: "*", "*,!lua,!tcl")
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: "*")
+1 -1
View File
@@ -574,7 +574,7 @@
** valori: qualsiasi stringa (valore predefinito: "%h/ssl/CAs.pem")
* *weechat.plugin.autoload*
** descrizione: elenco separato da virgole di plugin da caricare automaticamente all'avvio, "*" per tutti i plugin trovati (nomi possono essere parziali, per esempio "perl" va bene per "perl.so")
** descrizione: comma separated list of plugins to load automatically at startup, "*" means all plugins found, a name beginning with "!" is a negative value to prevent a plugin from being loaded, names can start or end with "*" to match several plugins (examples: "*", "*,!lua,!tcl")
** tipo: stringa
** valori: qualsiasi stringa (valore predefinito: "*")
+5 -3
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-23 10:19+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2065,10 +2065,12 @@ msgstr ""
msgid "file containing the certificate authorities"
msgstr "soubor obsahuje certifikační autority"
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
"čárkou rozdělený seznam pluginů pro automatické načtení při spuštění \"*\" "
"znamená všechny nalezené pluginy (jména mohou být částečná, například \"perl"
+5 -3
View File
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-29 22:38+0200\n"
"Last-Translator: Nils G <weechatter@arcor.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2176,10 +2176,12 @@ msgstr ""
msgid "file containing the certificate authorities"
msgstr "Datei enthält die Zertifizierungsstellen."
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
"Durch Kommata getrennte Liste der Erweiterungen, die beim Start automatisch "
"geladen werden sollen, \"*\" lädt alle gefundenen Erweiterungen (es können "
+5 -3
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-23 10:20+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2074,10 +2074,12 @@ msgstr ""
msgid "file containing the certificate authorities"
msgstr "archivo que contiene las autoridades de certificación"
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
"lista de plugins separados por comas para cargar automáticamente al iniciar, "
"\"*\" significa todos los plugins encontrados (los nombres pueden ser "
+10 -7
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"PO-Revision-Date: 2010-03-29 18:16+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-31 19:57+0200\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -2145,12 +2145,15 @@ msgstr "fichier contenant les autorités de certification"
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
"liste des extensions à charger automatiquement au démarrage, \"*\" signifie "
"toutes (séparées par des virgules, les noms peuvent être partiels, par "
"exemple \"perl\" est ok pour \"perl.so\")"
"liste des extensions à charger automatiquement au démarrage (séparées par "
"des virgules), \"*\" signifie toutes les extensions trouvées, un nom "
"commençant par \"!\" est une valeur négative pour empêcher une extension "
"d'être chargée, les noms peuvent commencer ou se terminer par \"*\" pour "
"indiquer plusieurs extensions (exemples: \"*\", \"*,!lua,!tcl\")"
msgid ""
"enable debug messages by default in all plugins (option disabled by default, "
+4 -3
View File
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-23 10:20+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1953,8 +1953,9 @@ msgstr ""
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
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 "
+5 -3
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Weechat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-24 14:20+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2117,10 +2117,12 @@ msgstr ""
msgid "file containing the certificate authorities"
msgstr "file contenente le autorità dei certificati"
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
"elenco separato da virgole di plugin da caricare automaticamente all'avvio, "
"\"*\" per tutti i plugin trovati (nomi possono essere parziali, per esempio "
+5 -3
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.0-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-23 10:20+0100\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: Polish\n"
@@ -2092,10 +2092,12 @@ msgstr ""
msgid "file containing the certificate authorities"
msgstr "plik zawierający dane centrum uwieżytelniającego (CA)"
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
"oddzielona przecinkami lista wtyczek do automatycznego załadowania podczas "
"startu, \"*\" oznacza wszystkie znalezione wtyczki (nazwy mogą być "
+4 -3
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: 2010-03-23 10:20+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1960,8 +1960,9 @@ msgstr ""
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
"разделённый запятыми список автоматически загружаемых при запуске plug-"
"in'ов , \"*\" означает все найденные plug-in'ы (имена могут быть не полными, "
+4 -3
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-03-29 18:13+0200\n"
"POT-Creation-Date: 2010-03-31 19:56+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1664,8 +1664,9 @@ msgstr ""
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found (names may be partial, for example \"perl\" is ok "
"for \"perl.so\")"
"means all plugins found, a name beginning with \"!\" is a negative value to "
"prevent a plugin from being loaded, names can start or end with \"*\" to "
"match several plugins (examples: \"*\", \"*,!lua,!tcl\")"
msgstr ""
msgid ""
+4 -3
View File
@@ -1992,9 +1992,10 @@ config_weechat_init_options ()
weechat_config_file, ptr_section,
"autoload", "string",
N_("comma separated list of plugins to load automatically "
"at startup, \"*\" means all plugins found (names may "
"be partial, for example \"perl\" is ok for "
"\"perl.so\")"),
"at startup, \"*\" means all plugins found, a name beginning with "
"\"!\" is a negative value to prevent a plugin from being loaded, "
"names can start or end with \"*\" to match several plugins "
"(examples: \"*\", \"*,!lua,!tcl\")"),
NULL, 0, 0, "*", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
config_plugin_debug = config_file_new_option (
weechat_config_file, ptr_section,
+135 -57
View File
File diff suppressed because it is too large Load Diff