mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
core: add option weechat.completion.command_inline (task #12491)
This commit is contained in:
@@ -244,6 +244,7 @@ struct t_config_option *config_color_nicklist_offline;
|
||||
/* config, completion section */
|
||||
|
||||
struct t_config_option *config_completion_base_word_until_cursor;
|
||||
struct t_config_option *config_completion_command_inline;
|
||||
struct t_config_option *config_completion_default_template;
|
||||
struct t_config_option *config_completion_nick_add_space;
|
||||
struct t_config_option *config_completion_nick_completer;
|
||||
@@ -3192,6 +3193,15 @@ config_weechat_init_options ()
|
||||
N_("if enabled, the base word to complete ends at char before cursor; "
|
||||
"otherwise the base word ends at first space after cursor"),
|
||||
NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
config_completion_command_inline = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"command_inline", "boolean",
|
||||
N_("if enabled, the commands inside command line are completed (the "
|
||||
"command at beginning of line has higher priority and is used "
|
||||
"first); note: when this option is enabled, there is no more "
|
||||
"automatic completion of paths beginning with '/' (outside "
|
||||
"commands arguments)"),
|
||||
NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
config_completion_default_template = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"default_template", "string",
|
||||
|
||||
@@ -277,6 +277,7 @@ extern struct t_config_option *config_color_nicklist_group;
|
||||
extern struct t_config_option *config_color_nicklist_offline;
|
||||
|
||||
extern struct t_config_option *config_completion_base_word_until_cursor;
|
||||
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;
|
||||
extern struct t_config_option *config_completion_nick_completer;
|
||||
|
||||
Reference in New Issue
Block a user