removed debugging lines
This commit is contained in:
@@ -73,7 +73,6 @@ repl_case=re.compile("("+pat_base+")")
|
||||
|
||||
matching_folders=[d for d in current_folders if match_case.match(d)]
|
||||
matches=colorize_matches(matching_folders, repl_case)
|
||||
#[repl_case.sub("%s\g<1>%s"%(Green,Reset),d) for d in matching_folders]
|
||||
|
||||
# no matches, try case insensitive
|
||||
if len(matching_folders)==0:
|
||||
@@ -81,14 +80,11 @@ if len(matching_folders)==0:
|
||||
repl_nocase=re.compile("("+pat_base+")",re.I)
|
||||
matching_folders=[d for d in current_folders if match_nocase.match(d)]
|
||||
matches=colorize_matches(matching_folders, repl_nocase)
|
||||
#matches=[repl_nocase.sub("%s\g<1>%s"%(Green,Reset),d) for d in matching_folders]
|
||||
|
||||
# No matches, try close match
|
||||
if len(matching_folders)==0:
|
||||
matching_folders=search_close_match(current_folders, pat_base)
|
||||
matches=[d for d in matching_folders]
|
||||
print("close")
|
||||
print(matches)
|
||||
|
||||
# One match, print and return
|
||||
if len(matching_folders)==1:
|
||||
|
||||
Reference in New Issue
Block a user