From 9e27b1cb9eef5da2ccff343aedf96b8c4be995ab Mon Sep 17 00:00:00 2001 From: adam j hartz Date: Mon, 13 Jun 2016 14:27:46 -0400 Subject: [PATCH] only do subsequence and fuzzy matching if no normal matches found --- xonsh/completers/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonsh/completers/path.py b/xonsh/completers/path.py index 1a10482bd..2020f74f2 100644 --- a/xonsh/completers/path.py +++ b/xonsh/completers/path.py @@ -243,7 +243,7 @@ def complete_path(prefix, line, start, end, ctx, cdpath=True): csc = env.get('CASE_SENSITIVE_COMPLETIONS') for s in iglobpath(prefix + '*', ignore_case=(not csc)): paths.add(s) - if env.get('SUBSEQUENCE_PATH_COMPLETION'): + if len(paths) == 0 and env.get('SUBSEQUENCE_PATH_COMPLETION'): # this block implements 'subsequence' matching, similar to fish and zsh. # matches are based on subsequences, not substrings. # e.g., ~/u/ro completes to ~/lou/carcolh