From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38121 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: texexec completion script for zsh Date: Tue, 18 Dec 2007 13:16:14 -0500 (EST) Message-ID: References: <200712181818.21885.matija.suklje@rutka.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-57435594-1198001775=:19196" X-Trace: ger.gmane.org 1198001876 6479 80.91.229.12 (18 Dec 2007 18:17:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 18:17:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 18 19:18:08 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1J4h0y-0001bg-RU for gctc-ntg-context-518@m.gmane.org; Tue, 18 Dec 2007 19:18:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AF88B1FBB8; Tue, 18 Dec 2007 19:17:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16243-01-5; Tue, 18 Dec 2007 19:16:58 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1CA6F1FBBD; Tue, 18 Dec 2007 19:16:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 817871FBBD for ; Tue, 18 Dec 2007 19:16:55 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13326-04-7 for ; Tue, 18 Dec 2007 19:16:20 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id 087BD1FB60 for ; Tue, 18 Dec 2007 19:16:16 +0100 (CET) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY skycaptain.mr.itd.umich.edu ID 47680E6E.E99EE.11556 ; 18 Dec 2007 13:16:14 -0500 X-X-Sender: adityam@adi-laptop In-Reply-To: <200712181818.21885.matija.suklje@rutka.net> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38121 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-57435594-1198001775=:19196 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 18 Dec 2007, Matija =C5=A0uklje wrote: > Dne ponedeljek 17. decembra 2007 je Aditya Mahajan napisal(a): >> I just put together a simple completion script for texexec in zsh. > > Sweet, thanks :] > >> This is my first attempt to write a zsh completion script. Any feedback = is >> welcome. > > Well, I'm a Zsh newbie, So am I. Been using it for about two weeks now. > so I'm in no position to claim anything to be wrong. > But what bothers me with your script (as it is right now) is that when ap= art > from 'texexec' there is also a 'texexec_completer' command present. Yes. All the completer functions are available as commands. Try _ and= =20 you will see all the in-built ones. If you want, you can rename texexec_completer to _texexec. That way, you=20 will not get prompted for it on normal commands. I do not know if _ is=20 reservered for distribution level completers or not, so did not name it=20 _texexec. > Otherwise, really great work! It inspired me to perhaps even take on some= Zsh > scripting of my own at some point. I have been fairly impressed zsh tab completion. For example, suppose=20 firefox has hung, and you want to kill it. Earlier, I did something like ps aux | grep firefox look at the pid and kill that process. With zsh, I can do kill -9 firefox and it finds the pid for me. Sweet. At some point, I hope to get a more sophisticated completer for texexec. Aditya --8323329-57435594-1198001775=:19196 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323329-57435594-1198001775=:19196--