Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: History completion



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