From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7199 invoked by alias); 30 Jan 2015 18:41:04 -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: 19786 Received: (qmail 12435 invoked from network); 30 Jan 2015 18:40:59 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs66.srv.lrz.de Date: Fri, 30 Jan 2015 19:40:53 +0100 From: Andy Spiegl To: zsh-users@zsh.org Subject: Re: show timestamp during history search ? Message-ID: <20150130184053.GA27782@spiegl.de> Mail-Followup-To: zsh-users@zsh.org References: <20150123190549.GA16712@spiegl.de> <20150123201034.19c2e108@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150123201034.19c2e108@ntlworld.com> X-gpg-key: ID C2CB30F0, available on friendly keyservers near you X-gpg-fingerprint: 9051 50B9 13B0 57B9 10FD 48AC 4FA1 209B C2CB 30F0 X-Accepted-File-Formats: ASCII PDF Open/Free Formats - NO proprietory (e.g. Microsoft) files, please X-how-to-quote: http://quoting.is-easy.de/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ X-angstklauseln: http://www.heise.de/artikel-archiv/ct/2014/08/136_Angstklauseln User-Agent: Mutt/1.5.23 (2014-03-12) > zle-isearch-update() { zle -M "$(history -i $HISTNO $HISTNO)"; } > zle-isearch-exit() { zle -M ''; } > zle -N zle-isearch-update > zle -N zle-isearch-exit Very cool, thanks! I trimmed it down to date+time like so: zle-isearch-update() { zle -M "$(history -i $HISTNO $HISTNO | awk '{ print $2,$3 }')"; } Then, I tried to put it to the right side of the screen (like RPROMPT) but failed. Probably not a good idea anyway because most of the time there won't be enough space. Thanks again! Andy. -- An opinion should be the result of thought, not a substitute for it. (Jef Mallett)