From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_SBL_CSS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 31492 invoked from network); 26 Aug 2020 12:02:13 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2020 12:02:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=p4KzboO4oXefGvmDpK1ie/fZ0wqKpvbi+gLUOrOPPGM=; b=UpdCqpa61AwkHeIsCohSamKdoN iORMeGfNlb8cubOBlN9VUp5vnE6zRsefTSttIcSBSxHpzrBh7N/cbEOLZpGxjc5HVFbnJRcAfPShK e8/s8i9UchPuYtdj2WASHgyCgkyTqhRqgQvrlpNJGWdwpWXKQhMbLZCwvNuYen22CPPC0OFYwpt6p DbdY1KLgxI6vUkRYIm32M14NlShaUp+Pc+UU2kK5nJm4+N4p6RYHxkADTsoruYtf3fSWrG9LQrZQp BrDAHLoRcMSVVxwjyaiUyExN2VanDuLNHP2Qnwr3DK6aXR0Abxm2NHHw1vGTL150SjIZegGLECCkL u+4Eq9gw==; Received: from authenticated user by zero.zsh.org with local id 1kAu84-000KSr-34; Wed, 26 Aug 2020 12:02:12 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=skipped; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:51974) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kAu7a-000K5s-M1; Wed, 26 Aug 2020 12:01:43 +0000 Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1kAu7a-0000az-E7 for zsh-users@zsh.org; Wed, 26 Aug 2020 14:01:42 +0200 Received: from oxbe24.tb.ukmail.iss.as9143.net ([172.25.160.155]) by smtp2.tb.ukmail.iss.as9143.net with ESMTP id Au7ak62VbMKXXAu7akGU5b; Wed, 26 Aug 2020 14:01:42 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-users@zsh.org X-SourceIP: 172.25.160.155 X-CNFS-Analysis: v=2.4 cv=askMtQVV c=1 sm=1 tr=0 ts=5f464f26 a=7eg3RIOFpSGgz8rG3xBEDw==:117 a=KEnZaF_ea6UA:10 a=IkcTkHD0fZMA:10 a=DoY9bV0jb9AA:10 a=pGLkceISAAAA:8 a=HYshxDoSAAAA:8 a=5-aE2oy6QMllCOniu_sA:9 a=QEXdDO2ut3YA:10 a=na7qQM7zoEAPfvOk0o6d:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com 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== Date: Wed, 26 Aug 2020 13:01:42 +0100 (BST) From: Peter Stephenson To: Ahmad Ismail Cc: zsh-users@zsh.org Message-ID: <1531690126.1436177.1598443302340@mail2.virginmedia.com> In-Reply-To: References: <441849700.1433895.1598439442873@mail2.virginmedia.com> Subject: Re: how to use tags in zsh completion system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.81.56 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfHXnnQWuVAlKoCS+cU0j1ttl8M1674PwyKIrGoryC4ohdyZWv6aFk93nEoTiyiul3y3aeDiuS+d7CEptQnzzt7d1PwlLZ9RnTx/+VfcHRaLeMBp9w2// cBnjw0SrgONQE1YyRi1ma76yARRU6PtbF6XUv9Yfu10n/VYnrhVUVD3hgybrVWmB9h16T+Ox7XCQYiMD8T2+rI+WtOR7q+l5jCecabVex147oy7t+CRm/nJq OQERKd8m3mZjL7jsGINfIg== X-Seq: 26035 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: > On 26 August 2020 at 12:28 Ahmad Ismail 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 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 advanced use. Until then, I should just try using the system "out of the box" and see how that works for you. Cheers pws