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

Re: Complete global aliases?



On Sat, Sep 17, 2022 at 7:27 AM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> I think that the global aliases should be completed out of the box, what do you say?

I think there needs to be a bit more specification about how this would work.

Where would this fit in the overall design of contexts?  E.g. does it
happen in "-default-" context (which isn't always applied) and if so
do alaises complete instead of files, as well as files, or only when
there are no files (that is, _files returns nonzero)?

Do the aliases expand or is just their name completed?  What happens
if you complete to the right of a global alias that (if expanded)
changes the syntax of the command line?

There are probably several other cases to consider, depending on the
answers to those.




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