use sentence WordCompleter, no WORD complete
@@ -62,7 +62,9 @@ lexer = GrammarLexer(redis_grammar, lexers=lexers_dict)
completer_mapping = {
- syntax: WordCompleter(commands + [command.lower() for command in commands])
+ syntax: WordCompleter(
+ commands + [command.lower() for command in commands], sentence=True
+ )
for syntax, commands in original_commands.items()
}
# TODO add key value completer
