Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Widget musings
- X-seq: zsh-workers 38756
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Widget musings
- Date: Thu, 23 Jun 2016 15:34:29 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=G3x9dyh7xme0IUrpYrIbMqtm7y76FtUnwR9d5Wuz9GQ=; b=BoS6r71ezRC4pKHST5MjKvWXAC1FUB+w96Su9x5IXgHasDoS57d/EqkuyhA85QGEZh CbvWFTym1VtbBzNMRBE3AJpQm5FOVT7+R39OX9CUe/HkuvMlvSP9+TuORfu4KTLA95ZH zHZqqTHOG/TB3fadcuG7K6xw6ClSpdqNnav9t5Ld9xwfJ46mywPjV7D8qGWmXxew566h hCqOEvORzzjn7CLz8EKkO1PIMf/7eRx4ntZce0FUlGOto5Xv7t86WP675qVkJN/sdJPn 2eEalLJapfK7H0FLQtC5pg4azlXwqimmV0/UQS1EoUjFnS3k4EdO07dNIfuRkAPvxRzT vJYg==
- 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
[I'm having some trouble connecting to my SMTP server from home,
so I'm pasting this into gmail. Apologies if the formatting gets weird or
if a nearly-identical message appears later if things suddenly start
working again.]
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