Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: History completion
- X-seq: zsh-users 14264
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: History completion
- Date: Mon, 27 Jul 2009 13:48:31 +0100
- In-reply-to: <20090727121338.GA29685@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090727114505.GA18676@xxxxxxxxxxxxx> <200907271202.n6RC2q6P025558@xxxxxxxxxxxxxx> <20090727121338.GA29685@xxxxxxxxxxxx>
David Evans wrote:
> On Mon, Jul 27, 2009 at 01:02:52PM +0100, Peter Stephenson wrote:
> >
> > There are two different commands: history-beginning-search-backward is
> > what you want, history-search-backward is what you've got.
> >
>
> Is there a version of up-line-or-search that behaves like
> history-beginning-search-backward?
There are function widgets; see zshcontrib.
up-line-or-beginning-search, down-line-or-beginning-search
These widgets are similar to the builtin functions
up-line-or-search and down-line-or-search: if in a multiline
buffer they move up or down within the buffer, otherwise they
search for a history line matching the start of the current
line. In this case, however, they search for a line which
matches the current line up to the current cursor position, in
the manner of history-beginning-search-backward and -forward,
rather than the first word on the line.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author