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

Re: PATCH: 3.1.5 - (Sven) Case-insensitive globbing



Bruce Stephens <b.stephens@xxxxxxxxx> writes:

> Yes, maybe.  I thought of another example: approximate matching.
> 
> Approximate matching could either use the auto-correct code, or could
> use something like whatever agrep uses.  In the latter case, it would
> have an optional integer parameter too, so "(#a1)readme" would match
> "Readme" and "read.me", but to match "read", you'd need "(#a2)readme".
> 
> Hmm, maybe this could provide a way to configure the autocorrection
> feature too?

This would provide useful implementation parts anyway---given some way
of specifying a function that could operate on a possibly miss-spelled
word, approximate globbing would provide a natural way of generating a
sensible alternative (or alternatives).



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