Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: run-help as a widget
- X-seq: zsh-workers 27532
- From: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: run-help as a widget
- Date: Fri, 18 Dec 2009 16:59:27 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1261177945; i=@xxxxxxxxxxxx; bh=er7COMyZN5+849hqkB05fBrJNo0R0tPHe Ub0C6fFDpM=; h=To:From:Subject:Date:Message-ID:References: Mime-Version:Content-Type:Content-Transfer-Encoding:Sender; b=PAvt RnFrDOC/dvYvPbPk1EtoG5Iwn3c8R8VIDZnUIU54aYf3uuJzNfyyY34CbWHGvZgtTF7 IWfx5TkTtjn4H0d0em80/X/ELB4QA2ptwrdwB0NXvHKDNi05EKDdbPbgFsguGrjyISI QAoXWRiGoUOSV7GcanSnwKvV963tkcQ08=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <a355a85f3bdb0aac910702825eeb0b302ba155a9.1260147415.git.joerg@xxxxxxxxxxxx> <20091216115900.45764c25@news01>
- Sender: news <news@xxxxxxxxxxxx>
Hallo Peter,
Peter Stephenson <pws@xxxxxxx> wrote:
> On Mon, 7 Dec 2009 01:57:10 +0100
> JÃrg Sommer <joerg@xxxxxxxxxxxx> wrote:
>> I know, this solution is a dirty hack, but it's quick. The better way is
>> to fix zsh to call run-help with the whole commandline where the alias
>> gets expanded and this commandline gets passed to the second run-help
>> call.
>
> I've been using this for a while, it's perhaps time something along these
> lines got included in Functions/Zle. I was a bit surprised to find I
> hadn't.
>
> With this it would be worth upgrading run-help and helpers to check if
> there's already a full command line there, and to advance past precommand
> modifiers. I thought I'd done some of this, too, but maybe not...
> I might simply have been thinking of expansion of aliases.
>
> By the way, note this quotes all buffer words:
>
> ls foo; rm -rf ~<Esc>h
>
> is safe even if it may not do quite what you actually want, which is quite
> hard to guess.
Isn't it possible to get the position where <Esc>h was hit or the prefix
and the suffix of the command? I would like to get help for true in this
situation:
% for h in $hosts; do ssh $h true<Esc>h; done
Bye, JÃrg.
--
Die am Lautesten reden, haben stets am wenigsten zu sagen.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author