From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4858 invoked from network); 31 Dec 2007 18:30:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 31 Dec 2007 18:30:32 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 33584 invoked from network); 31 Dec 2007 18:30:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 31 Dec 2007 18:30:24 -0000 Received: (qmail 16654 invoked by alias); 31 Dec 2007 18:30:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24333 Received: (qmail 16608 invoked from network); 31 Dec 2007 18:30:17 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 31 Dec 2007 18:30:17 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id CEC2D8058FB4 for ; Mon, 31 Dec 2007 19:30:15 +0100 (CET) Received: from uucp.gnuu.de (banki.eumelnet.de [83.246.114.63]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Mon, 31 Dec 2007 19:30:15 +0100 (CET) Received: by uucp.gnuu.de (Postfix, from userid 10) id C187C488053; Mon, 31 Dec 2007 19:30:11 +0100 (CET) Received: from news by alea.gnuu.de with local (Exim 4.63) (envelope-from ) id 1J9OPi-0002ZH-Du for zsh-workers@sunsite.dk; Mon, 31 Dec 2007 18:26:58 +0100 To: zsh-workers@sunsite.dk Path: not-for-mail From: =?UTF-8?Q?J=C3=B6rg?= Sommer Newsgroups: local.mailinglist.zsh Subject: Re: run-help: Support for svn and git Date: Mon, 31 Dec 2007 17:26:58 +0000 (UTC) Message-ID: References: <071230200204.ZM32486@torch.brasslantern.com> <071231081914.ZM836@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: alea.gnuu.de 1199122018 9873 192.168.0.5 (31 Dec 2007 17:26:58 GMT) X-Complaints-To: usenet@alea.gnuu.de User-Agent: slrn/pre0.9.9-75 (Debian) Sender: news X-Virus-Scanned: ClamAV using ClamSMTP Hi, Bart Schaefer wrote: > On Dec 31, 12:10pm, joerg@alea.gnuu.de wrote: > } Subject: Re: run-help: Support for svn and git > } Is it possible to get the point where run-help was called? Maybe for > } > } ssh -option <1> host cmd <2> > > One could replace the run-help widget itself with something that takes > the line apart with $LBUFFER and $RBUFFER and analyzes it in more > detail, and if run-help had been invented after user-defined widgets > were, it would probably never have been designed the way it is. Isn't it enough to replace the widget by a shell function and register it with zle? > Here's a new patch. Would you apply it to the repository? Here are the functions for svn, svk and git: run-help-svn() { svn help ${${@:#-*}[1]} | ${=PAGER:-/usr/bin/pager} } run-help-svk() { svk help ${${@:#-*}[1]} | ${=PAGER:-/usr/bin/pager} } run-help-git() { if [ $# -eq 0 ]; then man git else local al if al=$(git config --get "alias.$1"); then 1=${al%% *} fi man git-$1 fi } Bye, Jörg. -- Diskusion „Pascal vs. Rest der Welt“: 30 Aug 2000 00:13:11 GMT, Adrian Knoth Und selbst wenn eure 100000 Zeilen‐Programme noch so oft unter Windows verwendet werden: mit einem Handwagen fährt man nicht Formel‐1.