From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ba6bd00b for ; Fri, 10 Jan 2020 19:15:42 +0000 (UTC) Received: (qmail 12171 invoked by alias); 10 Jan 2020 19:15:30 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24640 Received: (qmail 20802 invoked by uid 1010); 10 Jan 2020 19:15:30 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25684. spamassassin: 3.4.2. Clear:RC:0(66.111.4.27):SA:0(-2.6/5.0):. Processed in 4.165966 secs); 10 Jan 2020 19:15:30 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeifedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdff rghnihgvlhcuufhhrghhrghffdcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrg hmvgeqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghh rghfrdhnrghmvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-740-g7d9d84e-fmstable-20200109v1 Mime-Version: 1.0 Message-Id: <422ff711-9c1d-4983-9c5f-934fbea88009@www.fastmail.com> In-Reply-To: References: <1578477603.6726.5.camel@samsung.com> <3e056cff-f690-f416-d8b6-89059c64187a@gmail.com> <20200110170639.uvdidtgwswjqanhh@tarpaulin.shahaf.local2> <2ee94482-d28f-460e-bc76-486f1c7014cf@www.fastmail.com> Date: Fri, 10 Jan 2020 19:14:28 +0000 From: "Daniel Shahaf" To: "Roman Perepelitsa" Cc: "Zsh Users" , ericdfreese@gmail.com Subject: =?UTF-8?Q?Re:_z-sy-h_and_z-asug:_zle-line-pre-redraw,_POSTDISPLAY,_coexi?= =?UTF-8?Q?stence_(was:_Re:_emulate_bash_key_bindings)?= Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Roman Perepelitsa wrote on Fri, 10 Jan 2020 18:43 +00:00: > On Fri, Jan 10, 2020 at 7:29 PM Daniel Shahaf = wrote: > > I assume that a dummy widget that does =C2=AB{ POSTDISPLAY=3Dfoo; > > region_highlight+=3D( "$#BUFFER $(($#BUFFER + 2)) bold" ) }=C2=BB > > could be used to mock z-asug for the purposes of the coexistence > > issue? >=20 > Yeah, I think so. Perhaps use $#POSTDISPLAY instead of 2 to avoid > mistakes there. Thanks for confirming, and ack. > For example, given this zsh code: >=20 > () { sudo foo bar && baz } >=20 > I want to get "sudo" "foo" and "baz". The '{' is in command position as well. Consider =C2=AB() pwd=C2=BB. > I've written some code that works decently well but needs a bit more > polish. It's more precise than z-sy-h If you know if any cases z-sy-h doesn't handle, please let us know :) > but still doesn't handle some corner cases. For example, given > this setup: >=20 > setopt interactive_comments > alias foo=3D'bar #' >=20 > My code incorrectly extracts "bar" and "baz" from "foo; baz". It > should be just "bar" here. *nod* Cheers, Daniel