fix search query parsing to allow multi-word query

This commit is contained in:
nose
2025-11-25 23:12:15 -08:00
parent f6ce155985
commit d1f08216a2
2 changed files with 41 additions and 6 deletions

View File

@@ -216,8 +216,11 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
elif low in {"-type", "--type"} and i + 1 < len(args_list):
type_filter = args_list[i + 1].lower()
i += 2
elif not query and not arg.startswith("-"):
query = arg
elif not arg.startswith("-"):
if query:
query += " " + arg
else:
query = arg
i += 1
else:
i += 1