From: shawn wilson <ag4ve.us@gmail.com>
To: Karoly Negyesi <karoly@negyesi.net>
Cc: Bart Schaefer <schaefer@brasslantern.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: shared history but recalling history in current terminal
Date: Wed, 27 Nov 2013 10:17:15 -0500 [thread overview]
Message-ID: <CAH_OBifgeeZNVuu26_m9HLsd-EYrGnGGM5bsFCOA_GGaamyXng@mail.gmail.com> (raw)
In-Reply-To: <CAOfzkkx7iC46zvzucRsur-sfcBtCaGRg45OS1MqrqbawDtXF3w@mail.gmail.com>
I assume so - those functions don't turn those options on, so....
On Wed, Nov 27, 2013 at 10:11 AM, Karoly Negyesi <karoly@negyesi.net> wrote:
> This is interesting to me as well. If I do what Bart suggests, do I keep the
>
> setopt inc_append_history share_history
>
> line or not...?
>
>
> Thanks
>
> NK
>
>
> On Wed, Nov 27, 2013 at 5:49 AM, shawn wilson <ag4ve.us@gmail.com> wrote:
>>
>> Sweet. Works great. Thanks
>>
>> (Now I'm only pissed off that I put up with this for so long and
>> didn't ask sooner)
>>
>> On Wed, Nov 27, 2013 at 3:02 AM, Bart Schaefer
>> <schaefer@brasslantern.com> wrote:
>> > On Nov 26, 10:31pm, Wayne Davison wrote:
>> >>
>> >> bindkey '^p' up-line-or-local-history
>> >>
>> >> up-line-or-local-history() {
>> >> zle set-local-history 1
>> >> zle up-line-or-history
>> >> zle set-local-history 0
>> >> }
>> >> zle -N up-line-or-local-history
>> >
>> > Another possibility is something like:
>> >
>> > zle-line-init() { zle set-local-history 1 }
>> > zle -N zle-line-init
>> >
>> > zle-keymap-select() {
>> > [[ $KEYMAP = isearch ]]
>> > zle set-local-history $?
>> > }
>> > zle -N zle-keymap-select
>> >
>> > Then incremental search is non-local history, everything else is local,
>> > and you don't have to re-create individual keybindings.
>
>
next prev parent reply other threads:[~2013-11-27 15:17 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 [this message]
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
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=CAH_OBifgeeZNVuu26_m9HLsd-EYrGnGGM5bsFCOA_GGaamyXng@mail.gmail.com \
--to=ag4ve.us@gmail.com \
--cc=karoly@negyesi.net \
--cc=schaefer@brasslantern.com \
--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).