From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11430 invoked by alias); 8 Dec 2013 23:45:20 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18202 Received: (qmail 7796 invoked from network); 8 Dec 2013 23:45:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Jan Larres Subject: Re: shared history but recalling history in current terminal Date: Mon, 09 Dec 2013 12:40:12 +1300 Message-ID: References: <131127000208.ZM18878@torch.brasslantern.com> <52964328.5040801@necoro.eu> <131127170553.ZM23821@torch.brasslantern.com> <5297AB37.80504@necoro.eu> <131128133318.ZM25004@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: yass.opencloud.co.nz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <131128133318.ZM25004@torch.brasslantern.com> 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. Thanks, Jan