zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: line continuation with sed
Date: Mon, 17 Oct 2022 12:54:43 +0100 (BST)	[thread overview]
Message-ID: <1213847667.3052430.1666007683851@mail.virginmedia.com> (raw)
In-Reply-To: <CAH+w=7Z_VYr7_=dRdN9KXrrG=xFY+Sx5iEPBCyX2qkCEMk_+pw@mail.gmail.com>

> On 17/10/2022 05:20 Bart Schaefer <schaefer@brasslantern.com> wrote:
> show-trailing-space() {
>   if [[ $BUFFER = *(' '|$' \n'*)
>         || $PREBUFFER = *$' \n'* ]]
>   then POSTDISPLAY=$'\u21a9'
>   else unset POSTDISPLAY
>   fi
> }
> zle -N show-trailing-space
> add-zle-hook-widget line-pre-redraw show-trailing-space
> add-zle-hook-widget history-line-set show-trailing-space

Noted while trying this out but otherwise unrelated.

pws

diff --git a/Functions/Misc/add-zle-hook-widget b/Functions/Misc/add-zle-hook-widget
index 4d8049083..4293a07dd 100644
--- a/Functions/Misc/add-zle-hook-widget
+++ b/Functions/Misc/add-zle-hook-widget
@@ -39,7 +39,7 @@ zstyle zle-hook types ${hooktypes#zle-}
 
 # Relying on multifuncdef option here
 function azhw:${^hooktypes} {
-    local -a hook_widgets
+    local -a hook_widgets match mbegin mend
     local hook
     # Values of these styles look like number:name
     # and we run them in number order
@@ -58,7 +58,7 @@ function azhw:${^hooktypes} {
 # Redefine ourself with the setup left out
 
 function add-zle-hook-widget {
-    local -a hooktypes
+    local -a hooktypes match mbegin mend
     zstyle -a zle-hook types hooktypes
 
     # This part copied from add-zsh-hook


           reply	other threads:[~2022-10-17 11:55 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAH+w=7Z_VYr7_=dRdN9KXrrG=xFY+Sx5iEPBCyX2qkCEMk_+pw@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1213847667.3052430.1666007683851@mail.virginmedia.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).