1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 06:05:42 +02:00

core: add option weechat.completion.case_sensitive

This commit is contained in:
Sébastien Helleu
2024-03-24 15:40:06 +01:00
parent 947155f325
commit 907643bc9c
19 changed files with 881 additions and 749 deletions
+1
View File
@@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele
New features::
* core: add option weechat.completion.case_sensitive
* core: add option weechat.look.highlight_prefix (issue #2079)
* core: add variable `${highlight}` in option weechat.look.buffer_time_format (issue #2079)
* core: convert option weechat.look.hotlist_sort to a list of fields (issue #2097)
+47 -39
View File
File diff suppressed because it is too large Load Diff
+64 -70
View File
File diff suppressed because it is too large Load Diff
+38 -35
View File
File diff suppressed because it is too large Load Diff
+57 -51
View File
File diff suppressed because it is too large Load Diff
+32 -29
View File
File diff suppressed because it is too large Load Diff
+46 -43
View File
File diff suppressed because it is too large Load Diff
+56 -47
View File
File diff suppressed because it is too large Load Diff
+76 -70
View File
File diff suppressed because it is too large Load Diff
+61 -58
View File
File diff suppressed because it is too large Load Diff
+46 -43
View File
File diff suppressed because it is too large Load Diff
+36 -33
View File
File diff suppressed because it is too large Load Diff
+81 -73
View File
File diff suppressed because it is too large Load Diff
+67 -57
View File
File diff suppressed because it is too large Load Diff
+32 -29
View File
File diff suppressed because it is too large Load Diff
+7
View File
@@ -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",
+1
View File
@@ -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;
+132 -72
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -45,6 +45,7 @@ struct t_gui_completion
/* completion context */
struct t_gui_buffer *buffer; /* buffer where completion was asked */
int context; /* context: null, nick, command, cmd arg */
int case_sensitive; /* case sensitive completion? */
char *base_command; /* cmd with arg to complete (can be NULL) */
int base_command_arg_index; /* # arg to complete (if context=cmd arg) */
char *base_word; /* word to complete (when Tab was pressed) */