Skip to content
Snippets Groups Projects
Commit 736dae04 authored by Phillip Smyth's avatar Phillip Smyth
Browse files

cli.py: no autocomplete on files without .bst

parent a5c8ea31
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,11 @@ def complete_target(args, incomplete):
if element_directory:
base_directory = os.path.join(base_directory, element_directory)
return complete_path("File", incomplete, base_directory=base_directory)
complete_list = []
for p in complete_path("File", incomplete, base_directory=base_directory):
if p.endswith(".bst ") or p.endswith("/") or p.endswith(".conf "):
complete_list.append(p)
return complete_list
def override_completions(cmd, cmd_param, args, incomplete):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment