summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-26 13:52:01 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-26 13:57:23 +0100
commit5b554ff4749bade238b09f919681aa1d1e050515 (patch)
tree25c721d534f23c698394f2f5aa67fb1f7f4dee6c /src/command_manager.hh
parentb579f90baedaf6ff5030e5ff9e6eaf6ea2017f1c (diff)
Add support for command completion on commands, use it for :new
That means commands can be completed using other commands and their completers. Yes that does makes sense. Closes #296
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index 152b7253..ee71ea2b 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -67,6 +67,10 @@ public:
Completions complete(const Context& context, CompletionFlags flags,
StringView command_line, ByteCount cursor_pos);
+ Completions complete(const Context& context, CompletionFlags flags,
+ CommandParameters params,
+ size_t token_to_complete, ByteCount pos_in_token);
+
CommandInfo command_info(const Context& context,
StringView command_line) const;