From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20311 invoked by alias); 20 Jun 2017 07:46:22 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22739 Received: (qmail 3812 invoked from network); 20 Jun 2017 07:46:22 -0000 X-Qmail-Scanner-Diagnostics: from mout.gmx.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.227.17.21):SA:0(-1.0/5.0):. Processed in 1.268836 secs); 20 Jun 2017 07:46:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: dominik.vogt@gmx.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.de designates 212.227.17.21 as permitted sender) Date: Tue, 20 Jun 2017 08:46:05 +0100 From: Dominik Vogt To: zsh-users@zsh.org Subject: Completions from file with zcompsys Message-ID: <20170620074605.GA3709@gmx.de> Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V03:K0:bRaNGwC3+6GkonTM2djs8txawV2/gf9pU7IgJieygUbHmAt5ImD ApjTqeaEMTAId9RDy6DuyOPRBic28vAeNuW4Bs+WJpjZXdOraXKoNRqq+vu/PghTuyjg861 a/wnf52cz+59b8CU79hKBWas1xgOGjVCPYHA1kq6jift8HELZf3SGDQLD83PmBxjLgToQZG K8uQUFLHrxgkWbXKbSBUg== X-UI-Out-Filterresults: notjunk:1;V01:K0:zc57edv4wU4=:Gu3gLCX5z11DXQa4Iu7tp4 a2nBBH2oNRQcBKqAYdNAsWIv8XE84hd6WNJp+IHXY/Aij7kemvFXdafCx128JumFryEOd2T03 B7ZijwiIM8OPoy+JXm594BzgUYHV3JIo8HmdEzVizBaBeqP+NOG3eQ9LxI19ghykoKLqyJ+Sa f3mlKuuZuIUkSo9zOLD7Y17HS9wS48gwdrnRcNgP4NkTPgCgVYG4UZwNVAfvIEqfcj3Rjd4DT MhhADvXKGu4Zn+JhkXbiKmOGzmY/ScZL2wY3BcsKfq11x2WoH300d1wsOsYt4Qa7h9OsBoAUl S27v66uiGoi5AMzWAoyHAjKZiPmm3v2Y7oDiNnrPMEMsbLXjJD6/1r1tlGaHC06afhkfz/KVN pv9QBXSGw8MWzD8B91AO+/yzjtCvhJbTHvKo9NJtK53Yr70Awm6L3UHknOBfvDhUkAZTlPDfY kXI440+eW9vJn1X6vWycsdv3n6r49wmG+1bLpZT9TvNLAcCASKQ6+izV+24/NB47DvJ5/6lwa aeUBTEOhQD59xd1X86KDB8sAFS8xBAcm0H3CWSWI8QK9J1iUt0TlgAuBPjE13nCbxozzXR780 irqvSNINfCtXUGfTZMEdhZQ5yOTcG2PVDMQcOhlc4mc9HhnQ/1LzTq8mv0XFXbSnNRW6g88iF ngiVLJJsf60Z68Rgl10JZ1WA5vUcg+ZkOaiX5Ur2DsoOkthzyjRwnOxk1eItAGc4YVGo/LxgW cOvhmRJffefRpphxDoQ+Ni6kh0GIYe3+1gkghNKPeDNdmE64c/ezqbPdQ20= Back in the time of compctl there were a lot of hand written completions in my config, but compsys this has all gone away for the default completions on the system. Now I need something special for a hand written command, and the amount of documentation in the zshcompsys and zshcompwid manpages is overwhelming. Are there some quick instructions instructions or a cheat sheet on the new completion system somewhere? The task at hand is: Some command, say "foo", takes lines from a certain, pre-written, sorted file as possible completions. (The lines are actually latin plant names which should not matter.), e.g.: -- snip -- ... Chenopodium acuminatum Chenopodium album Daucus carota ... -- snip -- And I want to type things like $ foo Chenoalb # -> Chenopodium album $ foo Che*a # -> Chenopodium a (using menu completion, not expanding the * to all matching completions). This is probably only one or two lines in the config. Ciao Dominik ^_^ ^_^ -- Dominik Vogt