Skip to content

Commit b280c0a

Browse files
authored
fix: Make ,-prefixed internal command completion work reliably while typing on bub (#162)
Fixes #161 Signed-off-by: Frost Ming <me@frostming.com>
1 parent 289f585 commit b280c0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bub/channels/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _tool_sort_key(tool_name: str) -> tuple[str, str]:
164164
history_file.parent.mkdir(parents=True, exist_ok=True)
165165
history = FileHistory(str(history_file))
166166
tool_names = sorted((f",{name}" for name in REGISTRY), key=_tool_sort_key)
167-
completer = WordCompleter(tool_names, ignore_case=True)
167+
completer = WordCompleter(tool_names, ignore_case=True, sentence=True)
168168
return PromptSession(
169169
completer=completer,
170170
complete_while_typing=True,

0 commit comments

Comments
 (0)