summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index d47dbdbc..f2d49761 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -19,11 +19,15 @@ namespace Kakoune
class Context;
using CommandParameters = ConstArrayView<String>;
-using Command = std::function<void (const ParametersParser& parser, Context& context)>;
+using Command = std::function<void (const ParametersParser& parser,
+ Context& context,
+ const ShellContext& shell_context)>;
+
using CommandCompleter = std::function<Completions (const Context& context,
CompletionFlags,
CommandParameters,
size_t, ByteCount)>;
+
using CommandHelper = std::function<String (const Context& context, CommandParameters)>;
enum class CommandFlags
@@ -84,7 +88,9 @@ public:
private:
void execute_single_command(CommandParameters params,
- Context& context, CharCoord pos) const;
+ Context& context,
+ const ShellContext& shell_context,
+ CharCoord pos) const;
struct CommandDescriptor
{