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

plugins: sort options added in configuration sections

This commit is contained in:
Sébastien Helleu
2019-10-23 19:43:45 +02:00
parent ecc7edda9e
commit c6161d0e4a
12 changed files with 178 additions and 178 deletions
+83 -83
View File
@@ -49,10 +49,10 @@ struct t_config_option *fset_config_look_use_mute;
/* fset config, format section */
struct t_config_option *fset_config_format_option[2];
struct t_config_option *fset_config_format_export_help;
struct t_config_option *fset_config_format_export_option;
struct t_config_option *fset_config_format_export_option_null;
struct t_config_option *fset_config_format_option[2];
/* fset config, color section */
@@ -462,6 +462,39 @@ fset_config_init ()
return 0;
}
fset_config_format_export_help = weechat_config_new_option (
fset_config_file, ptr_section,
"export_help", "string",
N_("format of help line written before each option exported in a file "
"(note: content is evaluated, see /help fset)"),
NULL, 0, 0,
"# ${description2}",
NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
fset_config_format_export_option = weechat_config_new_option (
fset_config_file, ptr_section,
"export_option", "string",
N_("format of each option exported in a file "
"(note: content is evaluated, see /help fset)"),
NULL, 0, 0,
"/set ${name} ${quoted_value}",
NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
fset_config_format_export_option_null = weechat_config_new_option (
fset_config_file, ptr_section,
"export_option_null", "string",
N_("format of each option with \"null\" value exported in a file "
"(note: content is evaluated, see /help fset)"),
NULL, 0, 0,
"/unset ${name}",
NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
fset_config_format_option[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"option1", "string",
@@ -497,39 +530,6 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_format_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_format_export_help = weechat_config_new_option (
fset_config_file, ptr_section,
"export_help", "string",
N_("format of help line written before each option exported in a file "
"(note: content is evaluated, see /help fset)"),
NULL, 0, 0,
"# ${description2}",
NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
fset_config_format_export_option = weechat_config_new_option (
fset_config_file, ptr_section,
"export_option", "string",
N_("format of each option exported in a file "
"(note: content is evaluated, see /help fset)"),
NULL, 0, 0,
"/set ${name} ${quoted_value}",
NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
fset_config_format_export_option_null = weechat_config_new_option (
fset_config_file, ptr_section,
"export_option_null", "string",
N_("format of each option with \"null\" value exported in a file "
"(note: content is evaluated, see /help fset)"),
NULL, 0, 0,
"/unset ${name}",
NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
/* color */
ptr_section = weechat_config_new_section (fset_config_file, "color",
@@ -586,14 +586,6 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_file[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"file_selected", "color",
N_("color for file on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_file_changed[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"file_changed", "color",
@@ -610,6 +602,14 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_file[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"file_selected", "color",
N_("color for file on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_help_default_value = weechat_config_new_option (
fset_config_file, ptr_section,
"help_default_value", "color",
@@ -758,14 +758,6 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_name[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"name_selected", "color",
N_("color for name on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_name_changed[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"name_changed", "color",
@@ -782,6 +774,14 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_name[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"name_selected", "color",
N_("color for name on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_option[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"option", "color",
@@ -790,14 +790,6 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_option[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"option_selected", "color",
N_("color for option on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_option_changed[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"option_changed", "color",
@@ -814,7 +806,15 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_parent_name[0] = weechat_config_new_option (
fset_config_color_option[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"option_selected", "color",
N_("color for option on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_parent_name[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"parent_name", "color",
N_("color for name of parent option"),
@@ -854,14 +854,6 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_quotes[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"quotes_selected", "color",
N_("color for quotes around string values on the selected line"),
NULL, 0, 0, "default", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_quotes_changed[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"quotes_changed", "color",
@@ -879,6 +871,14 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_quotes[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"quotes_selected", "color",
N_("color for quotes around string values on the selected line"),
NULL, 0, 0, "default", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_section[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"section", "color",
@@ -887,14 +887,6 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_section[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"section_selected", "color",
N_("color for section on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_section_changed[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"section_changed", "color",
@@ -911,6 +903,14 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_section[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"section_selected", "color",
N_("color for section on the selected line"),
NULL, 0, 0, "white", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_string_values[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"string_values", "color",
@@ -1009,14 +1009,6 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_value[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"value_selected", "color",
N_("color for value on the selected line"),
NULL, 0, 0, "lightcyan", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_value_changed[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"value_changed", "color",
@@ -1034,6 +1026,14 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_value[1] = weechat_config_new_option (
fset_config_file, ptr_section,
"value_selected", "color",
N_("color for value on the selected line"),
NULL, 0, 0, "lightcyan", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_color_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_color_value_undef[0] = weechat_config_new_option (
fset_config_file, ptr_section,
"value_undef", "color",
+1 -1
View File
@@ -37,10 +37,10 @@ extern struct t_config_option *fset_config_look_use_color_value;
extern struct t_config_option *fset_config_look_use_keys;
extern struct t_config_option *fset_config_look_use_mute;
extern struct t_config_option *fset_config_format_option[2];
extern struct t_config_option *fset_config_format_export_help;
extern struct t_config_option *fset_config_format_export_option;
extern struct t_config_option *fset_config_format_export_option_null;
extern struct t_config_option *fset_config_format_option[2];
extern struct t_config_option *fset_config_color_default_value[2];
extern struct t_config_option *fset_config_color_description[2];