zsh-users
 help / color / mirror / code / Atom feed
From: Christopher Croughton <crough45@amc.de>
To: zsh-users@math.gatech.edu
Subject: History key bindings
Date: Wed, 26 Nov 1997 18:10:51 +0100	[thread overview]
Message-ID: <97Nov26.191202gmt+0100.17029@internet01.amc.de> (raw)

I'm using zsh version 3.0.0, with the up and down cursor keys being bound
(at the moment) to history-beginning-search-backward and history-beginning-
search-forward.  These almost do what I want (i.e. they match on the start
of the line) except that they put the cursor at the start (or rather leave
it where it is) rather than putting it at the end of the line.

The equivalent tcsh functions (and 4DOS on MSDOS) match on wherever you are
when you first start the search but put the cursor at the end.

For instance, with history:

  vi fred
  chmod +x fred
  vi bill
  vi fred.c
  
typing 

  $vi f_

and searching backwards will find 'vi fred.c' and put the cursor at the end 
of the line, whereas under zsh it will put the cursor after 'f'.

Is there some way to cause zsh to remember the buffer up to where it was
when the search started and use that, while putting the cursor at the end 
still?  From the documentation it seems that up until version 3 something
like this was normal, and then the history-search-backward etc. was
changed to only match on the first word.

Apart from this one (annoying, to me) problem, zsh is wonderful.  If this is
fixed in the latest release or the beta version then I'll try that...

Thanks,
    Chris C


             reply	other threads:[~1997-11-26 17:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-26 17:10 Christopher Croughton [this message]
1997-11-27 17:55 ` Bart Schaefer
1997-11-27 18:21   ` Christopher Croughton
1997-11-27 18:43     ` Bart Schaefer
1997-11-28  8:57       ` Christopher Croughton
1997-11-28 12:30   ` Christopher Croughton
1997-11-28 17:18     ` Bart Schaefer
1997-11-29 13:49       ` Christopher Croughton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97Nov26.191202gmt+0100.17029@internet01.amc.de \
    --to=crough45@amc.de \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).