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

script: add status "a" (autoloaded) for scripts

This commit is contained in:
Sebastien Helleu
2012-08-15 09:25:42 +02:00
parent 0f7720d5cb
commit 6a6f45e043
28 changed files with 372 additions and 179 deletions
+12 -4
View File
@@ -46,6 +46,7 @@ struct t_config_option *script_config_look_sort;
struct t_config_option *script_config_color_status_popular;
struct t_config_option *script_config_color_status_installed;
struct t_config_option *script_config_color_status_autoloaded;
struct t_config_option *script_config_color_status_held;
struct t_config_option *script_config_color_status_running;
struct t_config_option *script_config_color_status_obsolete;
@@ -343,10 +344,11 @@ script_config_init ()
script_config_file, ptr_section,
"sort", "string",
N_("default sort keys for scripts: comma-separated list of identifiers: "
"a=author, d=date added, e=extension, i=installed, l=language, "
"n=name, o=obsolete, p=popularity, r=running, u=date updated; char "
"\"-\" can be used before identifier to reverse order; example: "
"\"i,u\": installed scripts first, sorted by update date"),
"a=author, A=autoloaded, d=date added, e=extension, i=installed, "
"l=language, n=name, o=obsolete, p=popularity, r=running, "
"u=date updated; char \"-\" can be used before identifier to reverse "
"order; example: \"i,u\": installed scripts first, sorted by update "
"date"),
NULL, 0, 0, "p,n", NULL, 0,
NULL, NULL, &script_config_change_sort_cb, NULL, NULL, NULL);
@@ -374,6 +376,12 @@ script_config_init ()
N_("color for status \"installed\" (\"i\")"),
NULL, 0, 0, "lightcyan", NULL, 0,
NULL, NULL, &script_config_refresh_cb, NULL, NULL, NULL);
script_config_color_status_autoloaded = weechat_config_new_option (
script_config_file, ptr_section,
"status_autoloaded", "color",
N_("color for status \"autoloaded\" (\"a\")"),
NULL, 0, 0, "cyan", NULL, 0,
NULL, NULL, &script_config_refresh_cb, NULL, NULL, NULL);
script_config_color_status_held = weechat_config_new_option (
script_config_file, ptr_section,
"status_held", "color",