fish-shell/share
Johannes Altmanninger 93cb0e2abb __fish_complete_suffix: enable fuzzy completion, simplify
fish's internal completion logic is much smarter than the globbing in this
function, so let's just reuse "complete -C", and filter directories and
files with the given suffix.

Thanks to @Kratacoa for reporting on Gitter.

Using "complete -C" works well no prefix is given. Since in this repository
only the openocd completions pass a prefix, I left the prefix-case as is.
It could probably be improved and simplified as well.  The prefix argument was
introduced to avoid cd's side effects inside a completion. Using cd is tempting
though because it would allow to use the same logic as without a prefix.
2020-08-08 22:59:41 +02:00
..
completions Clean up some __fish_complete_suffix usage 2020-08-08 22:56:54 +02:00
functions __fish_complete_suffix: enable fuzzy completion, simplify 2020-08-08 22:59:41 +02:00
groff workaround broken groff man page config 2016-10-19 13:43:04 -07:00
tools fish_config: 'Webify' color definitions 2020-07-11 13:51:52 -07:00
__fish_build_paths.fish.in Rename "snippets" to "conf" internally, and document them as snippets 2016-04-06 09:33:09 +08:00
config.fish Don't load vendor extensions when running unit tests 2020-07-12 19:14:35 -05:00
lynx.lss Install custom LSS script to /usr/local/share/fish on make install 2017-09-26 14:31:11 -05:00