Zsh Mailing List Archive
Messages sorted by:
Re: how to use tags in zsh completion system
- X-seq: zsh-users 26035
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Ahmad Ismail <ismail783@xxxxxxxxx>
- Subject: Re: how to use tags in zsh completion system
- Date: Wed, 26 Aug 2020 13:01:42 +0100 (BST)
- Archived-at: <https://zsh.org/users/26035>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-08/1531690126.1436177.1598443302340%40mail2.virginmedia.com>
- Authentication-results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=22.214.171.124; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=skipped; arc=none
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1598443302; bh=dTiHljOJ0x8UpDvYJntWPw5bLroXbhzO/qn0GO2j0Z0=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=BldvlZEL+BUDPccTdompVbGdMLd/9BkPQ0qFYkL1Z19sykMAfnUFSOYMic3MaQCka F1xcdFCGvLugDdSickVebDQtSS0fjPPP/YnN0X+YczmxddvoA9AbfPPysGKCHnRm+d pFCc1EVLjtfCH+7ZsNE75n7HENYxHrQFebLu1y9NW+5Hqyp2hu9xXUqZKOSyvj08hy y62rwr26cWKl5PYuw/FKLsbKHwmVjEIaQqVgZ1GQ270OOaoR7MTgoG3sNnSIbLJda8 7x4sYq/KefTWS+yvw5oI8aLnLDAuRKMre4sraKMVSx7WFqhAJeCAm0F645i0jszFwD fRPUgAWeJGomw==
- Importance: Medium
- In-reply-to: <CAHAhJw+-jWgOxeKp=94VXEJnRvj7G2NTWrUOVW_96UB8RXr=nA@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:firstname.lastname@example.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:email@example.com>
- List-post: <mailto:firstname.lastname@example.org>
- List-subscribe: <mailto:email@example.com?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:firstname.lastname@example.org?subject=unsubscribe%20zsh-users>
- References: <CAHAhJwJdcSYaftAkfOyv2v63LW-SdwV+34LZh0i-E3GUJzZv1g@mail.gmail.com> <email@example.com> <CAHAhJw+-jWgOxeKp=94VXEJnRvj7G2NTWrUOVW_96UB8RXr=nA@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
> On 26 August 2020 at 12:28 Ahmad Ismail <ismail783@xxxxxxxxx> wrote:
> Hi Peter Stephenson,
> This is the first time I am using a mailing list. So, I am not sure whether
> I am doing it correctly or not.
> Do I need to always refer to my previous mail or will you be able to figure
> out my previous mails?
Usually people quote the most relevant sections, but people won't
expect to be able to reconstruct the entire thread from a single email
> Do I need to view my email and its correspondence from
> https://www.zsh.org/mla/ or everything will be in the inbox?
If you're not on the list, people should copy you so you will see
everything (it's useful to mention if you're not on the list).
If you are on the list, you'll get everything anyway.
> Being said that, I tried:
> % scp hosts
You're missing the point here. A tag is entirely an idea within the
completion system itself. Most commands you can just type <TAB>
and it will complete for you. Only very occasionally do you
need to configure it do something else. When you do,
then you put commands involving tags in your intialisation file.
You never need to type them on the command line.
So at this point, the completion system already knows various things
are possible --- a host name, a file, a username --- depending how
you're going to build the command line. The tags are just logical
names for these things. (The completion system does a bit
of guesswork about where to find things that are specific to
the scp command, so occasionally it needs a bit of help there.)
If you're just starting from scratch with the completion system, i
suggest you just ignore tags for now. The system is designed so
most of the time it should "just work".
If you find a case where you actually need to tell it to be cleverer,
that's the time to start thinking about tags. That would be a
case where multiple completions are possible, but you decide you
need to complete only one type of thing. That's a rather
Until then, I should just try using the system "out of the box"
and see how that works for you.
Messages sorted by: