From 70610017284af7effd675bd927ae25b084b3e4b9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 22 Feb 2022 20:14:47 +1100 Subject: 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 --- src/command_manager.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/command_manager.hh') 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{}; } -- cgit v1.2.3