Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tip of the day: previous command output
- X-seq: zsh-users 7901
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Tip of the day: previous command output
- Date: Sun, 22 Aug 2004 22:58:01 +0200
- In-reply-to: <Pine.LNX.4.61.0408200905300.27591@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040819085812.GL22962@localhost> <Pine.LNX.4.61.0408190748530.9464@xxxxxxxxxxxxxxxxxx> <20040819164250.GA21575@xxxxxxxxx> <Pine.LNX.4.61.0408190956440.9464@xxxxxxxxxxxxxxxxxx> <20040820121202.GA31466@xxxxxxxxx> <20040820145032.GH13530@xxxxxxxxxxxxx> <Pine.LNX.4.61.0408200905300.27591@xxxxxxxxxxxxxxxxxx>
- Sender: Vincent Lefevre <vincent@xxxxxxxxxx>
On 2004-08-20 21:25:47 -0700, Bart Schaefer wrote:
> > And how about typing a pattern somewhere in the command line, then
> > applying a function that replaces this pattern by the matching lines
> > (quoted) of $kept?
>
> You'll have to be more specific. You mean something like expand-word,
> except that the expansion gets stashed in $kept first?
No, I mean that instead of expanding to filenames, one expands
to lines from $kept (but only those that match the pattern).
For instance, if $kept is (ab ac bc) and [ESC][TAB] is bound
to the function in question, then
a*[ESC][TAB]
gives
ab ac
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Mathématiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Messages sorted by:
Reverse Date,
Date,
Thread,
Author