From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3976 invoked by alias); 29 Dec 2014 03:44:25 -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: 34072 Received: (qmail 5233 invoked from network); 29 Dec 2014 03:44: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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=n2jV9Rla77xUSB5Bn7dacp9c83bOkroNSarqm692l6c=; b=tZWsjhdu+Wyz2lma4sbt8H8Zp6hEbPEp8SydfBeJ0dQlxHx5G5JQgDXqB9y+NdwyMu aK2+MBQ6+csn1HXcXWqTumJ7YNssvRc5HEJ/F0tc24mmbED5fVx77Uu4zwJCzwOyu6hd xZMt+kMR7BAmvuoAEGmVnsjlB664xmQrel8sIwUY7BV6bQV0Tl205p9srrK2QbS4zApV hKgL/vo9K3bQzk2mezj6iPjlcald9FPbkUzJ1hv0rdjWvNcCRG1R1+wnB6Yf5OZlWeXc WCga2yUas8xHeE30+Ck0iqcLzJwwozRaVQNaYohk1HHVNA5FP4vDkcnIXfZppW8xJkpe 3vTQ== X-Received: by 10.107.46.28 with SMTP id i28mr48438244ioo.73.1419824649994; Sun, 28 Dec 2014 19:44:09 -0800 (PST) MIME-Version: 1.0 From: Jason Spiro Date: Sun, 28 Dec 2014 22:43:29 -0500 Message-ID: Subject: Re: In Vi mode, show whether "insert" or "command" state is active To: Oliver Kiddle , ZyX , "zsh-workers@zsh.org" Content-Type: text/plain; charset=UTF-8 On Fri, Dec 26, 2014 at 6:32 AM, Oliver Kiddle wrote: > I'm not sure the keymap name is the most useful indicator for the vi > mode. local keymaps are not going to be indicated and keymaps like > menuselect have a longer name. Subtler indicators like cursor > shape/colour or something like the readline feature are perhaps more > useful. In vim, I would never read the '-- INSERT --' indicator: it is > a blob that appears in peripheral vision. Hmmm. In viins mode, you could show a bright-white '-- INSERT --' indicator somewhere on screen. (Last line, like Vim? First line?) In vicmd mode, you could hide the indicator. This way, you could take advantage of users' peripheral vision to make them aware of which mode they're in. Or you could indicate the mode using cursor color, like Emacs Viper does. In insert mode, turn the cursor green. In command mode, turn the cursor back to its normal color. Or you could do both. ZyX wrote: > in case of %z one should not assume only vicmd/viins: zle is not as limited as > readline and theoretically allows any number of modes (have never seen them > actually implemented though). Other modes are so uncommonly used that you don't actually need to bother identifying them. (Optimize for the common case, not for uncommon cases.) But if you insist, you could change the '-- INSERT --' indicator to '-- name_of_mode --' or something.