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 8e254bea for ; Fri, 10 Jan 2020 18:10:17 +0000 (UTC) Received: (qmail 10577 invoked by alias); 10 Jan 2020 18:10:09 -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: 24636 Received: (qmail 25760 invoked by uid 1010); 10 Jan 2020 18:10:09 -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 3.999061 secs); 10 Jan 2020 18:10:09 -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: gggruggvucftvghtrhhoucdtuddrgedufedrvdeifedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedfffgr nhhivghlucfuhhgrhhgrfhdfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmh gvqeenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgr fhdrnhgrmhgvnecuvehluhhsthgvrhfuihiivgeptd 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: In-Reply-To: References: <1578477603.6726.5.camel@samsung.com> <3e056cff-f690-f416-d8b6-89059c64187a@gmail.com> <20200110170639.uvdidtgwswjqanhh@tarpaulin.shahaf.local2> Date: Fri, 10 Jan 2020 18:09:09 +0000 From: "Daniel Shahaf" To: "Roman Perepelitsa" Cc: zsh-users@zsh.org, ericdfreese@gmail.com Subject: =?UTF-8?Q?z-sy-h_and_z-asug:_zle-line-pre-redraw,_POSTDISPLAY,_coexisten?= =?UTF-8?Q?ce_(was:_Re:_emulate_bash_key_bindings)?= Content-Type: text/plain Roman Perepelitsa wrote on Fri, 10 Jan 2020 17:35 +00:00: > If I may make a suggestion, perhaps zsh-syntax-highlighting shouldn't > remove highlighting from POSTDISPLAY? zsh-autosuggestions owns > POSTDISPLAY area while zsh-syntax-highlighting owns BUFFER. zsh- > autosuggestions doesn't touch highlighting of BUFFER, which allows it > to peacefully coexist with syntax highlighting plugins. If zsh-syntax- > highlighting did the same w.r.t. POSTDISPLAY highlighting, there would > be no widget-wrapping-order dependencies and feature/redrawhook > wouldn't introduce breaking changes for users who rely on both of > these great plugins. > > Just my 2 cents. I hope it makes at least some sense. It does make sense. Nothing in z-sy-h highlights $POSTDISPLAY, so z-sy-h should coexist with plugins that do. The catch is that making the change will make it difficult to write a z-sy-h highlighter that handles PREDISPLAY and/or POSTDISPLAY, should anyone ever want to do that. (But if I have to choose between support for hypothetical future highlighters and interoperability with z-asug today, I'll choose the latter.) Might you be interested in writing a PR? Cheers, Daniel