Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Very useful !#^
- X-seq: zsh-users 11713
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Tim Haynes" <zsh@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Very useful !#^
- Date: Fri, 3 Aug 2007 21:46:20 +0200
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tyF5eULjU01hnA0gqJAsVY4exjn41U08t8NP0hw4FDYg9VzkVfdTlUo5NXziBBCxuMJ2B7cdQeJRwRIamMlfjxn6yGsCYED718xO6mbGxZO4qXQBijuAb7NSB0IR3Eoj4NhMXRugg/N2e9XGmG7WECfZM2xqdQ7zYZTRvAwjjxU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bxdlsgK3kTANXrPAVhWL/cQLwS0t5dx+C7sQNYq8a08fJjuBNG3927b+n2IHl726k1nykP25DZdfbOMDOlUFbIdxissrGYmzhwf42zHROisdt+8n5xUmuKI3nFBygpe0r2BbEzBNF0M8eA+sRD5lnKt6UwtXvUukJa/+1Irsl0A=
- In-reply-to: <87odho7mo3.fsf@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns9981863B7C3F4zzappergmailcom@xxxxxxxxxxx> <87wswc7qj9.fsf@xxxxxxxxxxxxxxxxxxx> <20070803133335.GB13889@xxxxxxxxxxxxxxx> <20070803134527.GA23475@xxxxxxxxxxxxxxxxxxxxx> <87odho7mo3.fsf@xxxxxxxxxxxxxxxxxxx>
On 03/08/07, Tim <piglet@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> antho.charles@xxxxxxxxx writes:
>
> > On Fri, Aug 03, 2007 at 02:33:36PM +0100, Stephane Chazelas wrote:
> >
> >> See <Ctrl-Alt>_ and <Alt>2<Ctrl-Alt>_
> >>
> >> in emacs mode. That's the copy-prev-word widget.
> >
> > Yes, but copy-prev-word is different of !#^, try
> >
> > cp verylongname.tex backup_!#^<tab>
> > expands
> > cp verylongname.tex backup_verylongname.tex
> >
> > but
> > cp verylongname.tex backup_<C-M_>
> > expands
> > cp verylongname.tex backup_backup_
> >
> > Am I wrong?
>
> That seems to be where <Alt>2<Ctrl-Alt>_ comes in.
copy-earlier-word is also nice, it picks earlier words each time you
press it, so the first press gives
cp verylongname.tex backup_backup_
and the second gives
cp verylongname.tex backup_verylongname.tex
It also works in conjunction with insert-last-word to pick earlier
words in earlier words more interactively than typing numbers.
Some of these may need autoloading and binding, I don't remember which
are on by default :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author