From fd96bafbc85d44ea74f39cc2a1b4cbd846f5f51f Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 4 Aug 2015 00:32:34 -0700 Subject: Experiment to rework wildcard matching Preparation for zsh-style intermediate component tab completion --- src/wildcard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wildcard.h') diff --git a/src/wildcard.h b/src/wildcard.h index 37b53fd2..3820fc3e 100644 --- a/src/wildcard.h +++ b/src/wildcard.h @@ -76,6 +76,9 @@ int wildcard_expand_string(const wcstring &wc, const wcstring &base_dir, expand_ */ bool wildcard_match(const wcstring &str, const wcstring &wc, bool leading_dots_fail_to_match = false); +/* Like wildcard_match, but returns a fuzzy match type */ +enum fuzzy_match_type_t wildcard_match_fuzzy(const wcstring &str, const wcstring &wc, bool leading_dots_fail_to_match = false, enum fuzzy_match_type_t max_type = fuzzy_match_none); + /** Check if the specified string contains wildcards */ bool wildcard_has(const wcstring &, bool internal); bool wildcard_has(const wchar_t *, bool internal); -- cgit v1.2.3