Small naming tweak
This commit is contained in:
parent
eace7e0424
commit
7d487e3b4c
|
@ -163,8 +163,8 @@ static Completions complete_buffer_name(const Context& context, CompletionFlags
|
||||||
auto buffer_completer = make_completer(complete_buffer_name);
|
auto buffer_completer = make_completer(complete_buffer_name);
|
||||||
|
|
||||||
const ParameterDesc no_params{ {}, ParameterDesc::Flags::None, 0, 0 };
|
const ParameterDesc no_params{ {}, ParameterDesc::Flags::None, 0, 0 };
|
||||||
const ParameterDesc single_name_param{ {}, ParameterDesc::Flags::None, 1, 1 };
|
const ParameterDesc single_param{ {}, ParameterDesc::Flags::None, 1, 1 };
|
||||||
const ParameterDesc single_optional_name_param{ {}, ParameterDesc::Flags::None, 0, 1 };
|
const ParameterDesc single_optional_param{ {}, ParameterDesc::Flags::None, 0, 1 };
|
||||||
|
|
||||||
static constexpr auto scopes = { "global", "buffer", "window" };
|
static constexpr auto scopes = { "global", "buffer", "window" };
|
||||||
|
|
||||||
|
@ -334,7 +334,7 @@ const CommandDesc write_cmd = {
|
||||||
"w",
|
"w",
|
||||||
"write [filename]: write the current buffer to its file "
|
"write [filename]: write the current buffer to its file "
|
||||||
"or to [filename] if specified",
|
"or to [filename] if specified",
|
||||||
single_optional_name_param,
|
single_optional_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
filename_completer,
|
filename_completer,
|
||||||
|
@ -502,7 +502,7 @@ const CommandDesc buffer_cmd = {
|
||||||
"buffer",
|
"buffer",
|
||||||
"b",
|
"b",
|
||||||
"buffer <name>: set buffer to edit in current client",
|
"buffer <name>: set buffer to edit in current client",
|
||||||
single_name_param,
|
single_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
buffer_completer,
|
buffer_completer,
|
||||||
|
@ -589,7 +589,7 @@ const CommandDesc delete_buffer_cmd = {
|
||||||
"delete-buffer",
|
"delete-buffer",
|
||||||
"db",
|
"db",
|
||||||
"delete-buffer [name]: delete current buffer or the buffer named <name> if given",
|
"delete-buffer [name]: delete current buffer or the buffer named <name> if given",
|
||||||
single_optional_name_param,
|
single_optional_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
buffer_completer,
|
buffer_completer,
|
||||||
|
@ -601,7 +601,7 @@ const CommandDesc force_delete_buffer_cmd = {
|
||||||
"db!",
|
"db!",
|
||||||
"delete-buffer! [name]: delete current buffer or the buffer named <name> if "
|
"delete-buffer! [name]: delete current buffer or the buffer named <name> if "
|
||||||
"given, even if the buffer is unsaved",
|
"given, even if the buffer is unsaved",
|
||||||
single_optional_name_param,
|
single_optional_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
buffer_completer,
|
buffer_completer,
|
||||||
|
@ -612,7 +612,7 @@ const CommandDesc rename_buffer_cmd = {
|
||||||
"rename-buffer",
|
"rename-buffer",
|
||||||
nullptr,
|
nullptr,
|
||||||
"rename-buffer <name>: change current buffer name",
|
"rename-buffer <name>: change current buffer name",
|
||||||
single_name_param,
|
single_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
CommandCompleter{},
|
CommandCompleter{},
|
||||||
|
@ -1176,7 +1176,7 @@ const CommandDesc source_cmd = {
|
||||||
"source",
|
"source",
|
||||||
nullptr,
|
nullptr,
|
||||||
"source <filename>: execute commands contained in <filename>",
|
"source <filename>: execute commands contained in <filename>",
|
||||||
single_name_param,
|
single_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
filename_completer,
|
filename_completer,
|
||||||
|
@ -1987,7 +1987,7 @@ const CommandDesc rename_client_cmd = {
|
||||||
"rename-client",
|
"rename-client",
|
||||||
"nc",
|
"nc",
|
||||||
"rename-client <name>: set current client name to <name>",
|
"rename-client <name>: set current client name to <name>",
|
||||||
single_name_param,
|
single_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
CommandCompleter{},
|
CommandCompleter{},
|
||||||
|
@ -2032,7 +2032,7 @@ const CommandDesc change_directory_cmd = {
|
||||||
"change-directory",
|
"change-directory",
|
||||||
"cd",
|
"cd",
|
||||||
"change-directory [<directory>]: change the server's working directory to <directory>, or the home directory if unspecified",
|
"change-directory [<directory>]: change the server's working directory to <directory>, or the home directory if unspecified",
|
||||||
single_optional_name_param,
|
single_optional_param,
|
||||||
CommandFlags::None,
|
CommandFlags::None,
|
||||||
CommandHelper{},
|
CommandHelper{},
|
||||||
make_completer(
|
make_completer(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user