diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-05-25 15:41:18 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-05-25 15:41:18 -0700 |
commit | 908b07527ed5fe4952f357db73e270da9d09baba (patch) | |
tree | 53df9b5a78c5a43235aa0a2b0ec42d36a0cab8b9 /wildcard.h | |
parent | ee7339b66102c0a183b6cf37dbee83c5de6f4d91 (diff) |
Support for fuzzy completions
https://github.com/fish-shell/fish-shell/issues/568
https://github.com/fish-shell/fish-shell/issues/528
Diffstat (limited to 'wildcard.h')
-rw-r--r-- | wildcard.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -18,6 +18,7 @@ #include "util.h" #include "common.h" #include "expand.h" +#include "complete.h" /* Use unencoded private-use keycodes for internal characters @@ -79,10 +80,8 @@ 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); -/** - Check if the specified string contains wildcards -*/ -int wildcard_has(const wchar_t *str, int internal); +/** Check if the specified string contains wildcards */ +bool wildcard_has(const wchar_t *str, bool internal); /** Test wildcard completion @@ -92,6 +91,7 @@ bool wildcard_complete(const wcstring &str, const wchar_t *desc, wcstring(*desc_func)(const wcstring &), std::vector<completion_t> &out, - expand_flags_t flags); + expand_flags_t expand_flags, + complete_flags_t flags); #endif |