Add --glob and --location flags to hist and question commands, to be able to specify the location and files they should use.

This commit is contained in:
Oleksandr Kozachuk
2023-10-19 16:03:51 +02:00
parent 9a493b57da
commit 114282dfd8
6 changed files with 29 additions and 5 deletions
+3 -1
View File
@@ -186,7 +186,9 @@ def question_cmd(args: argparse.Namespace, config: Config) -> None:
tags_not=args.exclude_tags)
chat = ChatDB.from_dir(cache_path=Path(config.cache),
db_path=Path(config.db),
mfilter=mfilter)
mfilter=mfilter,
glob=args.glob,
loc=msg_location(args.location))
# if it's a new question, create and store it immediately
if args.ask or args.create:
message = create_message(chat, args)