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

Re: Bug in completion with curly braces?



On Sat, Nov 21, 2020 at 8:28 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sat, Nov 21, 2020 at 4:38 PM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > I don't want to provide "stash@\{0\}" because that's not what I want
> > to complete.
> >
> > But if it's the only way completion can work, I think the completion
> > system should add it itself, even if I didn't provide it.
>
> That is what happens if you don't pass the -Q option, but by passing
> that to compadd you have explicitly told the completion system not to
> do so.

That's right, I told it to complete something, and it can't.

So the options are:

1. Fail the completion
2. Complete something I didn't ask for (but it's close)
3. Complete correctly what I asked for

I'm saying if 3 is not feasible, then perhaps 2 would make sense
rather than 1. It's at least something.

-- 
Felipe Contreras




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