diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-20 08:42:16 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-20 08:42:16 +0200 |
commit | 22b20d62060cb1d576f3761aa0867b20ac6ce698 (patch) | |
tree | 5b0543b263ea53a87e0df713058d3867430dbf96 /src/core | |
parent | 5a4f96b6795fbcaccbf42f1940af1e2cffb20629 (diff) | |
download | weechat-22b20d62060cb1d576f3761aa0867b20ac6ce698.zip |
core: add options weechat.look.hotlist_prefix and weechat.look.hotlist_suffix (task #12730) (patch from Nils Görs)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-config.c | 12 | ||||
-rw-r--r-- | src/core/wee-config.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 95efa5e98..1855f070f 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -112,8 +112,10 @@ struct t_config_option *config_look_hotlist_names_count; struct t_config_option *config_look_hotlist_names_length; struct t_config_option *config_look_hotlist_names_level; struct t_config_option *config_look_hotlist_names_merged_buffers; +struct t_config_option *config_look_hotlist_prefix; struct t_config_option *config_look_hotlist_short_names; struct t_config_option *config_look_hotlist_sort; +struct t_config_option *config_look_hotlist_suffix; struct t_config_option *config_look_hotlist_unique_numbers; struct t_config_option *config_look_input_cursor_scroll; struct t_config_option *config_look_input_share; @@ -2128,6 +2130,11 @@ config_weechat_init_options () "hotlist_names_merged_buffers", "boolean", N_("if set, force display of names in hotlist for merged buffers"), NULL, 0, 0, "off", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); + config_look_hotlist_prefix = config_file_new_option ( + weechat_config_file, ptr_section, + "hotlist_prefix", "string", + N_("text displayed at the beginning of the hotlist"), + NULL, 0, 0, "H: ", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); config_look_hotlist_short_names = config_file_new_option ( weechat_config_file, ptr_section, "hotlist_short_names", "boolean", @@ -2143,6 +2150,11 @@ config_weechat_init_options () "group_time_asc|group_time_desc|group_number_asc|" "group_number_desc|number_asc|number_desc", 0, 0, "group_time_asc", NULL, 0, NULL, NULL, &config_change_hotlist_sort, NULL, NULL, NULL); + config_look_hotlist_suffix = config_file_new_option ( + weechat_config_file, ptr_section, + "hotlist_suffix", "string", + N_("text displayed at the end of the hotlist"), + NULL, 0, 0, "", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); config_look_hotlist_unique_numbers = config_file_new_option ( weechat_config_file, ptr_section, "hotlist_unique_numbers", "boolean", diff --git a/src/core/wee-config.h b/src/core/wee-config.h index b1f541b5d..c6542528e 100644 --- a/src/core/wee-config.h +++ b/src/core/wee-config.h @@ -137,8 +137,10 @@ extern struct t_config_option *config_look_hotlist_names_count; extern struct t_config_option *config_look_hotlist_names_length; extern struct t_config_option *config_look_hotlist_names_level; extern struct t_config_option *config_look_hotlist_names_merged_buffers; +extern struct t_config_option *config_look_hotlist_prefix; extern struct t_config_option *config_look_hotlist_short_names; extern struct t_config_option *config_look_hotlist_sort; +extern struct t_config_option *config_look_hotlist_suffix; extern struct t_config_option *config_look_hotlist_unique_numbers; extern struct t_config_option *config_look_input_cursor_scroll; extern struct t_config_option *config_look_input_share; |