zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <Peter.Stephenson@csr.com>
To: zsh-workers@zsh.org
Subject: Re: PATCH: Add $OVERSTRIKE in zle widgets
Date: Tue, 3 Aug 2010 09:52:19 +0100	[thread overview]
Message-ID: <20100803095219.24142dd6@csr.com> (raw)
In-Reply-To: <1280797053-22520-1-git-send-email-ft@bewatermyfriend.org>

On Tue,  3 Aug 2010 02:57:33 +0200
Frank Terbeck <ft@bewatermyfriend.org> wrote:
> This adds a read-only integer parameter `$OVERSTRIKE' to the set of
> special parameters available in zle-widgets. Since `zle-keymap-select'
> is a widget, it has access to the parameter. That makes it trivial to
> set $psvar[1] to "r" if zle is in overstrike mode.
> 
> 
> Do others think that's useful enough to have in zsh?

One think I'd suggest is using OVERWRITE instead of OVERSTRIKE, since
that's what the corresponding zle widget is called; there's no use of
"overstrike" in the documentation at present, and it vaguely suggests to me
a visual effect such as two characters on top of one another or a line
through.  You might also want to refer to the overwrite-mode widget.

Apart from that, this looks useful; the only thing that might make a
difference is if there was some other information that could be combined
with this and the result presented in a more compact way, such as a set of
flags in a single variable.  However, I can't think of anything that would
fit that bill, and the code is minimal anyway.

-- 
Peter Stephenson <pws@csr.com>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom


  reply	other threads:[~2010-08-03  9:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03  0:57 Frank Terbeck
2010-08-03  8:52 ` Peter Stephenson [this message]
2010-08-03  9:44   ` Frank Terbeck
2010-08-03  9:58     ` Peter Stephenson
2010-08-03 20:43       ` PATCH: Add $ZLE_STATE " Frank Terbeck
2010-08-06 20:23         ` Frank Terbeck
2010-08-11 12:02           ` Peter Stephenson
2010-08-11 12:44             ` Peter Stephenson
2010-08-11 12:54               ` Frank Terbeck
2010-08-11 14:45                 ` Peter Stephenson
2010-08-11 15:09                   ` Frank Terbeck
2010-08-11 16:30                     ` Peter Stephenson
2010-08-11 13:19             ` Frank Terbeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100803095219.24142dd6@csr.com \
    --to=peter.stephenson@csr.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).