Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Widget musings
- X-seq: zsh-workers 38763
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Widget musings
- Date: Wed, 22 Jun 2016 21:52:17 -0700
- 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==
- In-reply-to: <26676.1466626292@thecus.kiddle.eu>
- In-reply-to: <27903.1466634569@thecus.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- 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>
[>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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author