diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-10-23 22:23:59 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-10-23 22:30:23 +1100 |
| commit | a49ae162f4f34761eca5059332d36eef6153a0e1 (patch) | |
| tree | f9ac93286d437d0a7e9cbf748ed9a71076eb2f0e /src/command_manager.hh | |
| parent | 362021c1d3d225996beb112c4fea207c58e214ce (diff) | |
Add a -verbatim switch to evaluate-commands for perfect forwarding
-verbatim will disable argument parsing in evaluate-commands, making
it possible to forward a single command to a different context without
triggering a reparsing of the arguments.
Fixes -try-client support in grep.kak
Closes #3153
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh index 8a3a9f23..0545a27c 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -100,6 +100,12 @@ public: void execute(StringView command_line, Context& context, const ShellContext& shell_context = ShellContext{}); + void execute_single_command(CommandParameters params, + Context& context, + const ShellContext& shell_context, + BufferCoord pos = {}); + + Completions complete(const Context& context, CompletionFlags flags, StringView command_line, ByteCount cursor_pos); @@ -132,11 +138,6 @@ public: Completions complete_module_name(StringView query) const; private: - void execute_single_command(CommandParameters params, - Context& context, - const ShellContext& shell_context, - BufferCoord pos); - struct Command { CommandFunc func; |
