zsh-users
 help / color / mirror / code / Atom feed
From: Christopher Croughton <crough45@amc.de>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: crough45@amc.de, zsh-users@math.gatech.edu
Subject: Re: History key bindings
Date: Fri, 28 Nov 1997 09:57:50 +0100	[thread overview]
Message-ID: <97Nov28.105909gmt+0100.17030@internet01.amc.de> (raw)
In-Reply-To: <971127104306.ZM3164@candle.brasslantern.com> from "Bart Schaefer" at Nov 27, 97 07:43:06 pm

Bart Schaefer wrote:
> 
> On Nov 27,  7:21pm, Christopher Croughton wrote:
> } Subject: Re: History key bindings
> }
> } Bart Schaefer wrote:
> } > When you first press up-arrow, there (normally) won't be any mark on
> } > the line, so ^X^X does nothing.  
> } 
> } Er, on 3.0 it seems that the mark is initially set to the start of the line,
> 
> I thought I was seeing that behavior at one point, but now I can't get it
> to happen again (... some fooling about occurs ...)
> 
> Aha!  Whenever you use a history operation like ^P, the mark gets set at
> the beginning of the line before the new history line is inserted.  So
> you can't mix that bindkey -s with other history motions unless you set
> the mark yourself in between.  If all you do is type the prefix and then
> press up-arrow, it works fine.

The only way I can get it to work is if I do an initial ^X^X after typing 
the prefix.  If I do <CR>fred<UP> then it just scans through the history 
matching on nothing at all.  If I do <CR>fred^X^X<UP> then it works fine, 
and I can even delete everything on the line or modify it in any other way
and it will search for the new string.  I'm not doing any other history
motions on the line, just the bound up-arrow key.

Strange, ne?  Perhaps a different version of zsh will help?

Chris C


  reply	other threads:[~1997-11-28  9:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-26 17:10 Christopher Croughton
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 [this message]
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=97Nov28.105909gmt+0100.17030@internet01.amc.de \
    --to=crough45@amc.de \
    --cc=schaefer@brasslantern.com \
    --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).