zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Complete global aliases?
Date: Sat, 17 Sep 2022 16:27:01 -0700	[thread overview]
Message-ID: <CAH+w=7bocHLgfzi4x7G3o_+a+N8WTVaoxkjiF67e6=9tPJjeoQ@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVD53UgiDXkrCzhUqHCP-1RfzpwY4RxdL7WesmxdfK-y=w@mail.gmail.com>

On Sat, Sep 17, 2022 at 7:27 AM Sebastian Gniazdowski
<sgniazdowski@gmail.com> 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.


  reply	other threads:[~2022-09-17 23:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-17 14:20 Sebastian Gniazdowski
2022-09-17 23:27 ` Bart Schaefer [this message]
2022-09-18  9:43   ` Sebastian Gniazdowski
2022-09-19  1:46     ` Bart Schaefer
2022-09-24 11:02       ` Sebastian Gniazdowski
2022-09-18  2:11 ` Eric Cook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7bocHLgfzi4x7G3o_+a+N8WTVaoxkjiF67e6=9tPJjeoQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=sgniazdowski@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).