zsh-users
 help / color / mirror / code / Atom feed
From: Jan Larres <jan@majutsushi.net>
To: zsh-users@zsh.org
Subject: Re: shared history but recalling history in current terminal
Date: Mon, 09 Dec 2013 12:54:28 +1300	[thread overview]
Message-ID: <l830ra$89p$1@ger.gmane.org> (raw)
In-Reply-To: <l8300i$vuk$1@ger.gmane.org>

On 09/12/13 12:40, Jan Larres wrote:
> On 29/11/13 10:33, Bart Schaefer wrote:
>> So the right way to do this is actually
>>
>> zle-line-init()  { NUMERIC=1 zle set-local-history }
>> zle -N zle-line-init
>> zle-isearch-update() { NUMERIC=0 zle set-local-history }
>> zle -N zle-isearch-update
>> zle-isearch-exit()  { NUMERIC=1 zle set-local-history }
>> zle -N zle-isearch-exit
>
> I am currently trying this out and noticed that if I use
> history-incremental-pattern-search-backward instead of the normal
> history-incremental-search-backward then disabling the local history no
> longer works. Is there a way to make those two work together? I don't
> want to lose the very handy pattern feature.

After some more investigation I noticed that unsetting local-history
does actually work, but re-running the widget after entering something
does not. So if I have this in my zshrc:

  bindkey '^r' history-incremental-pattern-search-backward

If I then press ^r and enter some word it gets correctly found in the
global history, but if I press ^r again to search for an earlier
occurence it always fails. Is there any way to fix this?

Thanks,
Jan


  reply	other threads:[~2013-12-08 23:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-26 20:30 shawn wilson
2013-11-27  6:31 ` Wayne Davison
2013-11-27  8:02   ` Bart Schaefer
2013-11-27 13:49     ` shawn wilson
2013-11-27 15:11       ` Karoly Negyesi
2013-11-27 15:17         ` shawn wilson
2013-11-27 18:24         ` Bart Schaefer
2013-11-27 19:08     ` René 'Necoro' Neumann
2013-11-28  1:05       ` Bart Schaefer
2013-11-28 20:44         ` René 'Necoro' Neumann
2013-11-28 21:33           ` Bart Schaefer
2013-11-30 11:03             ` René 'Necoro' Neumann
2013-11-30 19:07               ` Bart Schaefer
2013-12-08 23:40             ` Jan Larres
2013-12-08 23:54               ` Jan Larres [this message]
2013-12-10  7:09                 ` Bart Schaefer

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='l830ra$89p$1@ger.gmane.org' \
    --to=jan@majutsushi.net \
    --cc=zsh-users@zsh.org \
    /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).