From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4079 invoked by alias); 23 Jun 2016 22:34:35 -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: 38756 Received: (qmail 5483 invoked from network); 23 Jun 2016 22:34:34 -0000 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=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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=G3x9dyh7xme0IUrpYrIbMqtm7y76FtUnwR9d5Wuz9GQ=; b=Nztk0WojDClYV4BSA3QNhJWcQ+/5e9hBsdWFmZkfH+NfHYHfo0yJ2oQhvNf3qoPB7Y MMJZQ5mc3wU3d+LLFqhpukH9WEjgBwzQ1Rx7GV9uXIOspuwHZIz7xh/XAc0uG9jfXo6i HX8zVlQN0EhuAoRU72KMjlaIqN28G44R8CvCcPzvX8x1ZHdIs7MTK/QIBH7VOCDkRkMc r0d4nGWMdoDUIABHMxEXIy25RcfBWTUkTVg8t/PzXjax143L6KlcD7whPu8Yy5mtybF1 fCgMy35XIbh2Lm/flFn76oouWz1tc0w7pjsV0ByDgr3o+Uy9BXTomsNkRBEumdWcbU0Y I21A== X-Gm-Message-State: ALyK8tJF1xrqf33fHVFGhRoTdsZNxTe1Z84oyGVlrYIW1sBzMYYsTP3shoiNiyJUxlsaPzHHmunC7aE0z7rJJg== X-Received: by 10.46.5.138 with SMTP id 132mr271291ljf.9.1466721269957; Thu, 23 Jun 2016 15:34:29 -0700 (PDT) MIME-Version: 1.0 From: Bart Schaefer Date: Thu, 23 Jun 2016 15:34:29 -0700 Message-ID: Subject: Widget musings To: Zsh hackers list Content-Type: text/plain; charset=UTF-8 [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.