Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:in-reply-to
         :comments:to:subject:mime-version;
        bh=8VbljTIUl4ekH1li2dcYYCTLPs1+EQ2l7mobu5Ozj30=;
        b=rJb4YHVha7tvlSpJlDztPufERZtfv5qHaYbEjimdanh9ciNqYJGCAsPLD9ze6FtTbW
         +oq/sfgHlrKi3u++cfBxZ9aMknGCLp3+XEnSVtrVlRVE0hTiUOk7KrDPK2CAeFHoSMyR
         TzlA5Qc1npLwMHZwfyRl4KHJ962LZihLukpfPgc1vnHSB9sSvcBGvp6Qgp6HexHX20Uz
         w564bRSzszpeNYbUCyVV8iAr9Dz1MiTztYS8H0E2sFqd0CqDfpdjQDiSGf2xs0z2NYgZ
         VcUboSUpCBYUxtZs7ENgoqC4byOvC1IGeU4NQqCDSOVJFajPsCzT3OPMe6i18HenDLVI
         iKWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:in-reply-to:comments:to:subject:mime-version;
        bh=8VbljTIUl4ekH1li2dcYYCTLPs1+EQ2l7mobu5Ozj30=;
        b=GzhTSr5wDM1D9sdTJCmjV2hz8di3779Q/7+pl6zgcnYVz2G0+eaqhCwMA0uhfcEfrY
         btU5yLJo3pOAhKXefcAliwYg4+49gYDXOHKl0MyFidS6jIkcueEbh/5rGd4xO0a/Ycrs
         GKFGjlBFKd6GInriErYi3SelIhPU2b0WzGffQtjifKqhvw6OZGxVTFS24gG9a3F3nl/b
         9EPb0HTQoXSosvwDPzRk8GxV1XbXoXrDSnw3twrjNbPp2cFTZArVuCT7F1M9HJcADylK
         vxZthlxntUxhNm/pAu7T3rBs0Fbaow1fH2KMCPa2WcWKkQXUl3Won26893iQhLI3CjRC
         yhwg==
X-Gm-Message-State: ALyK8tI4QaZZcYPzyRVTt5pkRTx0nIA++N9RxiLy3JxdNrU7ywq8lTqmosK6zX8UI9fsiA==
X-Received: by 10.98.14.72 with SMTP id w69mr19236540pfi.140.1466885734061;
        Sat, 25 Jun 2016 13:15:34 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160622215217.ZM13783@torch.brasslantern.com>
Date: Wed, 22 Jun 2016 21:52:17 -0700
In-Reply-To: <26676.1466626292@thecus.kiddle.eu>
Comments: In reply to Oliver Kiddle <okiddle@yahoo.co.uk>
        "Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode" (Jun 22, 10:11pm)
References: <CAEwkUWMnBO7_6EOo5y5b1eMAZB6uXkgXsh51OqtuEbbUQQPRyQ@mail.gmail.com> 
	<21997.1466550647@thecus.kiddle.eu> 
	<160621234233.ZM10369@torch.brasslantern.com> 
	<CAEwkUWM0O2Wzh1rYPUK4HU3P5MxZHJnA-5NT+Mow_3oMQbtwag@mail.gmail.com> 
	<CAEwkUWNw=oYJs7NV7c8ZTQp+j6CHrtUsDEcMaH+vVVWpdEof_w@mail.gmail.com> 
	<25350.1466608182@thecus.kiddle.eu> 
	<CAEwkUWOAvbT4xydtG6EZYRS3tOuur1LZ3tJAx97jR8zgFBjsyw@mail.gmail.com> 
	<26676.1466626292@thecus.kiddle.eu> 
	<CAEwkUWPHhDKyzfAUmZaTFGcaW3NOyE_uWTR4Nk1KD0=8jgiFhA@mail.gmail.com> 
	<CAEwkUWMwSBQhhuQHVOjNqqGUce40kN5f1thvGTriWDo2YB++Cg@mail.gmail.com> 
	<27903.1466634569@thecus.kiddle.eu>
In-Reply-To: <27903.1466634569@thecus.kiddle.eu>
Comments: In reply to Oliver Kiddle <okiddle@yahoo.co.uk>
        "Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode" (Jun 23, 12:29am)
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Widget musings
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38763

[>workers]

On Jun 22, 10:11pm, Oliver Kiddle wrote:
} 
} I've just noticed that we also need to account for the cursor being at
} the beginning of a line other than the first one

"Cursor is at [beginning, end] of a line" seems to be a pretty common
thing to want to test.  Maybe the zsh/zleparameter module should define
some condition codes so one could write stuff like

	if [[ -bol CURSOR && -eol MARK ]]; then

Aside:  The zsh/complete module defines -prefix -suffix -between and
-after but only -prefix is ever used by the shell code.

On Jun 23, 12:29am, Oliver Kiddle wrote:
}
} The custom cutbuffer widget is not marked as being a vi operator so gets
} invoked as soon as you press y. Currently, I can't think of an easy fix
} for this.

Per recent discussion about why add-zle-hook-widget is not suitable for
"non-special" widgets:  Part of the criteria for an action-widget hook
should be that flags on the hook'd widget, such as "is a vi operator",
persist across execution of the hook.

