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

Re: Completion order for approximate



On Fri, 4 Dec 2020 at 17:00, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
>
> > On 04 December 2020 at 16:49 "A. Wik" <awik32@xxxxxxxxx> wrote:
> > I'm trying to set up the approximate expansion so that the original
> > string comes before the corrections in the menu.
> >
> > This doesn't work:
> > zstyle ':completion:*:approximate:*' tag-order 'original corrections'
>
> You need:
>
> zstyle ':completion:*:approximate:*' group-order original corrections
>
> --- note also no quotes.  See group-order in the zshcompsys manual for more.
> tag-order specifies the order completions are looked for, not the order they're
> displayed in.  To specify an order, you need separate words on the command line;
> values in the same set of quotes are treated as being together (sometimes useful
> for tag-order, not for group-order).
>
> pws

Thanks.  Incidentally, I'm reading (and intermittently following the
suggestions in) your book.

-aw




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