diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-12 18:22:11 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-12 18:22:11 +0200 |
commit | 0e68117b37f2ac79c8cf0777f367b367609825ac (patch) | |
tree | 4b279e39d951691cd2599ae688e252203d72ff31 /src/core | |
parent | 6e695ebe65f1dd6304b0a2b8b25c5b285d60a251 (diff) | |
download | weechat-0e68117b37f2ac79c8cf0777f367b367609825ac.zip |
Add new option weechat.look.hotlist_unique_numbers (task #10691)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-config.c | 7 | ||||
-rw-r--r-- | src/core/wee-config.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 720f926a3..0aaf3a629 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -90,6 +90,7 @@ 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_short_names; struct t_config_option *config_look_hotlist_sort; +struct t_config_option *config_look_hotlist_unique_numbers; struct t_config_option *config_look_input_share; struct t_config_option *config_look_input_share_overwrite; struct t_config_option *config_look_input_undo_max; @@ -1372,6 +1373,12 @@ 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, NULL, NULL, NULL); + config_look_hotlist_unique_numbers = config_file_new_option ( + weechat_config_file, ptr_section, + "hotlist_unique_numbers", "boolean", + N_("keep only unique numbers in hotlist (this applies only on hotlist " + "items where name is NOT displayed after number)"), + NULL, 0, 0, "on", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); config_look_input_share = config_file_new_option ( weechat_config_file, ptr_section, "input_share", "integer", diff --git a/src/core/wee-config.h b/src/core/wee-config.h index 70b872648..99046f5a0 100644 --- a/src/core/wee-config.h +++ b/src/core/wee-config.h @@ -119,6 +119,7 @@ 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_short_names; extern struct t_config_option *config_look_hotlist_sort; +extern struct t_config_option *config_look_hotlist_unique_numbers; extern struct t_config_option *config_look_input_share; extern struct t_config_option *config_look_input_share_overwrite; extern struct t_config_option *config_look_input_undo_max; |