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 337984a7 for ; Fri, 10 Jan 2020 17:07:33 +0000 (UTC) Received: (qmail 26488 invoked by alias); 10 Jan 2020 17:07:24 -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: 24632 Received: (qmail 17107 invoked by uid 1010); 10 Jan 2020 17:07:24 -0000 X-Qmail-Scanner-Diagnostics: from out5-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.29):SA:0(-2.6/5.0):. Processed in 4.650597 secs); 10 Jan 2020 17:07:24 -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: gggruggvucftvghtrhhoucdtuddrgedufedrvdeifedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjggfsehtkedttddtreejnecuhfhrohhmpeffrghn ihgvlhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeejledrudektddrheejrddu udelnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrg hfrdhnrghmvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Date: Fri, 10 Jan 2020 17:06:39 +0000 From: Daniel Shahaf To: Roman Perepelitsa Cc: Zsh Users , ericdfreese@gmail.com Subject: Re: emulate bash key bindings Message-ID: <20200110170639.uvdidtgwswjqanhh@tarpaulin.shahaf.local2> References: <1578477603.6726.5.camel@samsung.com> <3e056cff-f690-f416-d8b6-89059c64187a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) [sorry for the late answer] Roman Perepelitsa wrote on Thu, Jan 09, 2020 at 12:03:16 +0100: > On Wed, Jan 8, 2020 at 11:25 PM Daniel Shahaf wrote: > > That's true for z-sy-h's master branch, but with the feature/redrawhook > > branch (due to be merged after 0.7.0's release) highlighting will be > > refreshed even by invocations of dot-prefixed widgets. > > [cc:ericdfreese@gmail.com] > > That's useful to know. Thanks for the heads up. > > I took a look at the code and see that feature/redrawhook branch > applies highlighting in zle-line-pre-redraw. Won't this cause issues > when zsh-syntax-highlighting is used together with > zsh-autosuggestions? Yes, such issues were reported, last confirmed 4 days ago: https://github.com/zsh-users/zsh-syntax-highlighting/issues/579 > zsh-autosuggestions doesn't wrap zle-line-pre-redraw by default, so it won't > apply its own highlighting on top of zsh-syntax-highlighting. Okay, and what could z-sy-h do about this? The redrawhook branch fixes a *lot* of bugs, so I'm not eager to make it optional. I suppose I could just tell people who use both plugins to stick to z-sy-h 0.7.0 (as opposed to master) until there's a z-asug release that uses «add-zle-hook-widget zle-line-pre-redraw» too — or is there a better solution that I'm overlooking? > If zsh-autosuggestions starts wrapping zle-line-pre-redraw by default, there > are still potential issues for users who upgrade their local > zsh-syntax-highlighting before zsh-autosuggestions. I'm not overly concerned about this. Anyone who uses z-sy-h from master should _expect_ to live on the bleeding edge. Anyone who's not ready to live on the bleeding edge should stick to tags (or, at least, follow master with an N days' delay, so any issues will be ironed out before they get to it). > There are also users who manually set ZSH_AUTOSUGGEST_IGNORE_WIDGETS. And how does this affect z-sy-h? Cheers, Daniel