Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion: setting up _approximate.



On Sat, Jul 8, 2017 at 9:30 PM, Kamil <crs@xxxxxxxxx> wrote:
> On 08/07/17 14:24, Bart Schaefer wrote:
>> Those choices are obviously coming from _approximate, so the first
>> thing to try is to remove that from your completer style and see what
>> you get.
>
> No matches found, when I remove _approximate from completer list.

OK, so _path_files (called from _complete) is failing.  What happens
if you leave off the trailing "3"?

I suspect the issue is that expanding /v/m/s/f/ uses only prefixes --
that is, only the first letter of each directory name is expanded to
the full name -- whereas 3 is a suffix, so you need something else to
do that final bit of matching.  That would explain why "*3" works.

The way to find out is to use _complete_debug (bound to ctrl-x
question-mark by default) to get a call trace.



Messages sorted by: Reverse Date, Date, Thread, Author