From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: martin f krafft <madduck@debian.org>, 519535@bugs.debian.org
Subject: Re: Bug#519535: history expansion: modifier completion missing
Date: Sun, 15 Mar 2009 06:22:53 +0000 [thread overview]
Message-ID: <20090315062253.GB14010@scru.org> (raw)
In-Reply-To: <20090313105555.GA19025@piper.oerlikon.madduck.net>
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?
next parent reply other threads:[~2009-03-15 6:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090313105555.GA19025@piper.oerlikon.madduck.net>
2009-03-15 6:22 ` Clint Adams [this message]
2009-03-16 18:18 ` Peter Stephenson
2009-03-17 2:44 ` Bart Schaefer
2009-03-17 9:57 ` Peter Stephenson
2009-03-17 11:00 ` Peter Stephenson
2009-03-17 12:09 ` Peter Stephenson
2009-03-17 17:36 ` Bart Schaefer
2009-03-17 18:46 ` Modifiers, command position, and so forth (Re: Bug#519535: history expansion: modifier completion missing) Bart Schaefer
2009-03-18 19:36 ` Peter Stephenson
2009-03-19 0:34 ` Bart Schaefer
2009-03-19 14:34 ` Peter Stephenson
2009-03-19 15:28 ` Bug#519535: history expansion: modifier completion missing Mikael Magnusson
2009-03-19 16:09 ` Peter Stephenson
2009-03-19 16:18 ` Mikael Magnusson
2009-03-19 16:18 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090315062253.GB14010@scru.org \
--to=schizo@debian.org \
--cc=519535@bugs.debian.org \
--cc=madduck@debian.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).