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

Re: Complete global aliases?



On Sun, 18 Sept 2022 at 01:27, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
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)?

I'm not sure, however there's a solution on the web, see: https://stackoverflow.com/a/59513051/11999858

Do the aliases expand or is just their name completed?

I think that only its name should be completed.

 
What happens
if you complete to the right of a global alias that (if expanded)
changes the syntax of the command line

I think  that it shouldn't be expanded, so the issue isn't actual.
--
Best regards,
Sebastian Gniazdowski



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