diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-02-22 20:14:47 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-03-06 10:13:14 +1100 |
| commit | 70610017284af7effd675bd927ae25b084b3e4b9 (patch) | |
| tree | a7c883a919f64d4d3828b074f4707b3272460cd0 /src/command_manager.hh | |
| parent | b915e4e11b666b72607b8c22044f5e20d9107cdd (diff) | |
Add a complete-command command to configure command completion
This makes it possible to change command completion in hooks and
paves the way to more flexibility in how custom commands can be
completed
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh index 6489e044..d41c1dcf 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -112,6 +112,8 @@ public: CommandHelper helper = CommandHelper(), CommandCompleter completer = CommandCompleter()); + void set_command_completer(StringView command_name, CommandCompleter completer); + Completions complete_command_name(const Context& context, StringView query) const; void clear_last_complete_command() { m_last_complete_command = String{}; } |
