Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Very useful !#^
- X-seq: zsh-users 11705
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Tim Haynes <zsh@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Very useful !#^
- Date: Fri, 3 Aug 2007 14:33:36 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <87wswc7qj9.fsf@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Tim Haynes <zsh@xxxxxxxxxxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9981863B7C3F4zzappergmailcom@xxxxxxxxxxx> <87wswc7qj9.fsf@xxxxxxxxxxxxxxxxxxx>
On Fri, Aug 03, 2007 at 01:26:18PM +0100, Tim wrote:
> zzapper <david@xxxxxxxxxx> writes:
>
> > Hi
> > cos I keep forgetting this myself
> >
> >> cp verylongfilename.tex backup_!#^<tab>
> > expands to
> >> cp verylongfilename.tex backup_verylongfilename.tex
>
> Oh, excellent. I've been wondering for ages if there's such a thing and
> never got around to hunting it.
>
> A related joy: !$ tab-expands to last word of previous line. Notably this
> has a corresponding keypress, M-. or M-_ Is there a key for !#^ as well?
[...]
See <Ctrl-Alt>_ and <Alt>2<Ctrl-Alt>_
in emacs mode. That's the copy-prev-word widget.
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author