mirror of
https://github.com/wting/autojump
synced 2025-06-13 12:54:07 +00:00
Merge 4bd574aaf9
into 182400ae8c
This commit is contained in:
commit
f7b411f7a7
@ -426,15 +426,16 @@ def shell_utility():
|
||||
|
||||
results = []
|
||||
if not ALWAYS_IGNORE_CASE:
|
||||
results = find_matches(db, patterns, max_matches, False)
|
||||
results = find_matches(db, patterns, max_matches, ignore_case=False)
|
||||
|
||||
# if no results, try ignoring case
|
||||
if ARGS.complete or not results:
|
||||
results = find_matches(db, patterns, max_matches, True)
|
||||
results = find_matches(db, patterns, max_matches, ignore_case=True)
|
||||
|
||||
# if no results, try approximate matching
|
||||
if not results:
|
||||
results = find_matches(db, patterns, max_matches, True, True)
|
||||
results = find_matches(db, patterns, max_matches, ignore_case=True,
|
||||
fuzzy=True)
|
||||
|
||||
quotes = ""
|
||||
if ARGS.complete and ARGS.bash: quotes = "'"
|
||||
|
Loading…
Reference in New Issue
Block a user