From 0ecf1b4e3b32af1a1ade649884a9204a166087bd Mon Sep 17 00:00:00 2001 From: Calum Smith Date: Thu, 29 Sep 2016 17:00:31 -0400 Subject: [PATCH] Fixed order of match precedence and match_anywhere example --- bin/autojump | 4 ++-- bin/autojump_match.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/autojump b/bin/autojump index f4494ea..7ab7c08 100755 --- a/bin/autojump +++ b/bin/autojump @@ -193,8 +193,8 @@ def find_matches(entries, needles, check_entries=True): lambda entry: not is_cwd(entry) and path_exists(entry), chain( match_consecutive(needles, data, ignore_case), - match_fuzzy(needles, data, ignore_case), - match_anywhere(needles, data, ignore_case))) + match_anywhere(needles, data, ignore_case), + match_fuzzy(needles, data, ignore_case))) def handle_tab_completion(needle, entries): diff --git a/bin/autojump_match.py b/bin/autojump_match.py index 75f9aca..cf166b9 100644 --- a/bin/autojump_match.py +++ b/bin/autojump_match.py @@ -32,7 +32,7 @@ def match_anywhere(needles, haystack, ignore_case=False): ] result = [ - (path='/moo/foo/baz', weight=10), + (path='/foo/bar/baz', weight=10), (path='/foo/baz', weight=10), ] """