Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: show timestamp during history search ?



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



Messages sorted by: Reverse Date, Date, Thread, Author