Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#519535: history expansion: modifier completion missing
- X-seq: zsh-workers 26740
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#519535: history expansion: modifier completion missing
- Date: Sun, 15 Mar 2009 06:22:53 +0000
- Cc: martin f krafft <madduck@xxxxxxxxxx>, 519535@xxxxxxxxxxxxxxx
- In-reply-to: <20090313105555.GA19025@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, martin f krafft <madduck@xxxxxxxxxx>, 519535@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090313105555.GA19025@xxxxxxxxxxxxxxxxxxxxxxxxxx>
On Fri, Mar 13, 2009 at 11:55:55AM +0100, martin f krafft wrote:
> I tried to show off zsh to a sceptic today and had to find out the
> hard way that it does not (yet) provide completion for history
> expansion modifiers, e.g.
>
> echo !$:<TAB>
>
> should list
>
> h Remove a trailing pathname component, leaving the head. This works like âdirnameâ.
> r Remove a filename extension of the form â.xxxâ, leaving the root name.
> e Remove all but the extension.
> t Remove all leading pathname components, leaving the tail. This works like âbasenameâ.
> p Print the new command but do not execute it. Only works with history expansion.
> q Quote the substituted words, escaping further substitutions. Works with history expanâ
> sion and parameter expansion, though for parameters it is only useful if the resulting
> text is to be re-evaluated such as by eval.
> Q Remove one level of quotes from the substituted words.
> x Like q, but break into words at whitespace. Does not work with parameter expansion.
> l Convert the words to all lowercase.
> u Convert the words to all uppercase.
>
> etc.
Anyone want to tackle this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author