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

Re: [PATCH] Don't complete escaped words as aliases



On Sat, Nov 13, 2021 at 9:18 AM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
>
> Would this be preferable? I can make that change. No other
> alternatives come to mind right now.

Hm, it seems as though what's really needed here is for the completion
internals to compare the full quoted word to the set of matches,
rather than remove the quoting first.  Skipping the completion because
the word is quoted is at best a workaround.

I suppose that would need a new option to compadd.  It might help in
some other edge cases as well -- lots of completion bugs arise from
the internals attempting to properly remove and restore quoting.

Aside from that, this circles right back to the discussion begun after
workers/49559, namely, whether it's preferable to complete too much
and let the user decide if he wants it, vs. to aggressively limit the
completions to what the zsh devs think is "only what makes sense in
this context."  Usually we've fallen on the side of "too much" in the
past.




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