Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Complete global aliases?
- X-seq: zsh-workers 50644
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Complete global aliases?
- Date: Sat, 17 Sep 2022 16:27:01 -0700
- Archived-at: <https://zsh.org/workers/50644>
- In-reply-to: <CAKc7PVD53UgiDXkrCzhUqHCP-1RfzpwY4RxdL7WesmxdfK-y=w@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAKc7PVD53UgiDXkrCzhUqHCP-1RfzpwY4RxdL7WesmxdfK-y=w@mail.gmail.com>
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