From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10764 invoked by alias); 25 Dec 2014 23:18:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34052 Received: (qmail 25161 invoked from network); 25 Dec 2014 23:18:19 -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 autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=D9vw8UVm c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=ejz98fyUO_jCOO3UWz0A:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141225151837.ZM15719@torch.brasslantern.com> Date: Thu, 25 Dec 2014 15:18:37 -0800 In-reply-to: <1441071419539683@web21o.yandex.ru> Comments: In reply to ZyX "Re: In Vi mode, show whether "insert" or "command" state is active" (Dec 25, 11:34pm) References: <141221175723.ZM5756@torch.brasslantern.com> <8569631419273880@web5h.yandex.ru> <1441071419539683@web21o.yandex.ru> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-workers@zsh.org" Subject: Re: In Vi mode, show whether "insert" or "command" state is active MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 25, 11:34pm, ZyX wrote: } } Also regarding %z minimal implementation: in my example code $KEYMAP } is checked for being an alias to something. Yes, I was only providing an example / starting point. For this to work better we'd need another zleentry token or the like, to be able to query the keymap and state without requiring getsparam() calls and without the extra prompt redraw from inside zle-line-init. Also keymap selection and possibly other state changes should always redraw the prompt (as an example, there currently is no hook when entering overwrite mode).