zsh-users
 help / color / mirror / code / Atom feed
* vi-history-incremental-search?
@ 2002-08-29 20:49 Steve Talley
  2002-08-30  3:26 ` vi-history-incremental-search? Bart Schaefer
  2002-08-30 18:44 ` vi-history-incremental-search? Wayne Davison
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Talley @ 2002-08-29 20:49 UTC (permalink / raw)
  To: Zsh Users

Hello,

I am using the vi keymap (bindkey -v).  I have these lines in my
.zshrc:

    bindkey -M vicmd "?" vi-history-search-backward
    bindkey -M vicmd "/" vi-history-search-forward

I really like the ability to see incremental searches, so I changed
this to:

    bindkey -M vicmd "?" history-incremental-search-backward
    bindkey -M vicmd "/" history-incremental-search-forward

Unfortunately, now "n" (vi-repeat-search) and "N" (vi-rev-repeat-
search) don't seem to work after the search is completed.  That is,
they don't perform the same search from that point in the history.

For example, with this history:

    ...
    100 echo foobar
    101 echo blah
    102 echo woofoo

When I use vi-history-search-backward to search for "foo" (matched at
102), I can use "n" (vi-repeat-search) to perform the same search
again (matched at 100).  But if I initially use
history-incremental-search-backward to search for "foo", then "n"
(vi-repeat-search) doesn't continue the search for "foo".

Is there any way to modify either vi-history-search-* or
history-incremental-search-* to come up with a hybrid
vi-history-incremental-search*?

Thanks,

Steve


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-30 20:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-29 20:49 vi-history-incremental-search? Steve Talley
2002-08-30  3:26 ` vi-history-incremental-search? Bart Schaefer
2002-08-30 18:44 ` vi-history-incremental-search? Wayne Davison
2002-08-30 20:16   ` vi-history-incremental-search? Bart Schaefer

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).