diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-23 19:43:45 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-23 19:45:06 +0200 |
commit | c6161d0e4a73665a646688859e1a77cdad0998f8 (patch) | |
tree | e6a59b97481d1e095faad9e49954d45b18dc7ac5 /src/plugins/fset | |
parent | ecc7edda9e1acc43fcf6effc72120e54bda4a655 (diff) | |
download | weechat-c6161d0e4a73665a646688859e1a77cdad0998f8.zip |
plugins: sort options added in configuration sections
Diffstat (limited to 'src/plugins/fset')
-rw-r--r-- | src/plugins/fset/fset-config.c | 164 | ||||
-rw-r--r-- | src/plugins/fset/fset-config.h | 2 |
2 files changed, 83 insertions, 83 deletions
diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c index 66e8f16b9..29c8cfb73 100644 --- a/src/plugins/fset/fset-config.c +++ b/src/plugins/fset/fset-config.c @@ -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,19 +774,19 @@ fset_config_init () NULL, NULL, NULL, &fset_config_change_color_cb, NULL, NULL, NULL, NULL, NULL); - fset_config_color_option[0] = weechat_config_new_option ( + fset_config_color_name[1] = weechat_config_new_option ( fset_config_file, ptr_section, - "option", "color", - N_("color for option"), - NULL, 0, 0, "default", NULL, 0, + "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[1] = weechat_config_new_option ( + fset_config_color_option[0] = 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, + "option", "color", + N_("color for option"), + NULL, 0, 0, "default", NULL, 0, NULL, NULL, NULL, &fset_config_change_color_cb, NULL, NULL, NULL, NULL, NULL); @@ -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,19 +871,19 @@ fset_config_init () NULL, NULL, NULL, &fset_config_change_color_cb, NULL, NULL, NULL, NULL, NULL); - fset_config_color_section[0] = weechat_config_new_option ( + fset_config_color_quotes[1] = weechat_config_new_option ( fset_config_file, ptr_section, - "section", "color", - N_("color for 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[1] = weechat_config_new_option ( + fset_config_color_section[0] = 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, + "section", "color", + N_("color for section"), + NULL, 0, 0, "default", NULL, 0, NULL, NULL, NULL, &fset_config_change_color_cb, NULL, NULL, NULL, NULL, NULL); @@ -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", diff --git a/src/plugins/fset/fset-config.h b/src/plugins/fset/fset-config.h index e9e1fe4bb..149d3f784 100644 --- a/src/plugins/fset/fset-config.h +++ b/src/plugins/fset/fset-config.h @@ -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]; |