summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-03-24 15:40:06 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-03-24 15:40:06 +0100
commit907643bc9c4ef139bb010c84f32c765cfb386400 (patch)
tree70097f317574c206f3cc1e4fd0d523daef8619dd /src/core
parent947155f3255e58646698abc5682b8a08bb8adeba (diff)
downloadweechat-907643bc9c4ef139bb010c84f32c765cfb386400.zip
core: add option weechat.completion.case_sensitive
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core-config.c7
-rw-r--r--src/core/core-config.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core-config.c b/src/core/core-config.c
index cf3f5c91c..291741761 100644
--- a/src/core/core-config.c
+++ b/src/core/core-config.c
@@ -297,6 +297,7 @@ struct t_config_option *config_color_status_time = NULL;
/* config, completion section */
struct t_config_option *config_completion_base_word_until_cursor = NULL;
+struct t_config_option *config_completion_case_sensitive = NULL;
struct t_config_option *config_completion_command_inline = NULL;
struct t_config_option *config_completion_default_template = NULL;
struct t_config_option *config_completion_nick_add_space = NULL;
@@ -4975,6 +4976,12 @@ config_weechat_init_options ()
"otherwise the base word ends at first space after cursor"),
NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ config_completion_case_sensitive = config_file_new_option (
+ weechat_config_file, weechat_config_section_completion,
+ "case_sensitive", "boolean",
+ N_("if enabled, the completion is case sensitive by default"),
+ NULL, 0, 0, "on", NULL, 0,
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_completion_command_inline = config_file_new_option (
weechat_config_file, weechat_config_section_completion,
"command_inline", "boolean",
diff --git a/src/core/core-config.h b/src/core/core-config.h
index cf556a05e..95d4881cd 100644
--- a/src/core/core-config.h
+++ b/src/core/core-config.h
@@ -346,6 +346,7 @@ extern struct t_config_option *config_color_status_number;
extern struct t_config_option *config_color_status_time;
extern struct t_config_option *config_completion_base_word_until_cursor;
+extern struct t_config_option *config_completion_case_sensitive;
extern struct t_config_option *config_completion_command_inline;
extern struct t_config_option *config_completion_default_template;
extern struct t_config_option *config_completion_nick_add_space;