From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13866 invoked from network); 17 Oct 2022 09:24:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Oct 2022 09:24:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665998683; b=eZwCi4UvFGr/Y/njiJxP3qaC8ElMCddkvnT0quQozdKM3e3bO1ps8P+1xtKPb2WN0u4YohCr/K Lkvq+MOMqWccj05mkB8XAvCyd6Wf8E1rzi95L6mJyCGosraH3WvJeXdgNHxc/B4SMRrQT5v3nQ ZcfDgr4e4T5EMK5/BiKvdwrvSem5OI+GL8IMZ+LElY/BXNM/2jb9c+3wVjDpOm3q+MzrH6jYuh 02qH6lhtbe9i2gW6eG5ARh96c8lvEYQZ89k6F9DDo7K23PoBLGGj4s+XhTu2goI3DJIL2bH/qR Q6yP0GqPXMZwHXH7WtjmndpFTxZNKlhx1SX+ARPTGDZR0g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pf1-f182.google.com) smtp.remote-ip=209.85.210.182; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1665998683; bh=U+yVPL9oQrZOgjDYfgQSjGEErgiWvEyDIa7+T9Cv9qY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=GRG3WQGonK3ZgXJs0l25jS+vfD4AYhB4F13QIMSv1M4CA2Y/wLdStFfohAF9sv3gWUi5vLNr79 hc1kELZS/wDqK+NHuloOQyeeyanUewMGqVTf5npZsPZLt5N3+8+Bb04e7mMcbhZle4ftYKJ3df xiqTBX4jxOVKuzuM4EQcJ/SVOQScS/QZmDU+fwOs1GxlF6hDrn701Y/rza5W3Xq5PlJz/oBDwp /6LAJp10yLzDuMPan9uecsztB0lZq0F7ncX7Xg4rHOSuHpHZ1kbih73e7wpS6WwAJibGXnmamc i52K5kJIgT1SlYp9BdKhS/OCJwQpn4/1o/u7eOy2i5exCw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=MbVhQFRibEI899kJ5vwNfQ903APBAgNjoRPNg+o5+LE=; b=l4nlJKdL1i9D5AChHriCOpUhaR xM12R4IUBIcf0oZiUF1csqAazmi2u5+0Al49gGM81/KGgdhRn9Idh8uGCZ+omaTAY+t4xaoB16dsV ftjYs0iuocL515jV+yoI4nUjhxqmsuFJTk519UwEo7kJxMobS/pz2mEHZW60Q5YG15bln3+7MS1Fd ebij79Fkf4zKy5LP/SEU81T4zDHuQZlOw4t93FnG7cTIFhwAvuPyVu0wID9X/c+pI0YRd08jOvstQ no2A56i6T+wnSFXLEsDT74I+t+3aIg3YukJcZ3//MDW+oLyEKwLWtGcKUsMfS7CvWgH87JAdFyeNs N+0ZJKKw==; Received: by zero.zsh.org with local id 1okMMV-000P58-12; Mon, 17 Oct 2022 09:24:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pf1-f182.google.com) smtp.remote-ip=209.85.210.182; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pf1-f182.google.com ([209.85.210.182]:34501) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1okMHz-000OGO-Hf; Mon, 17 Oct 2022 09:20:04 +0000 Received: by mail-pf1-f182.google.com with SMTP id f140so10540288pfa.1 for ; Mon, 17 Oct 2022 02:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MbVhQFRibEI899kJ5vwNfQ903APBAgNjoRPNg+o5+LE=; b=QXbhzgylTVfuohtXi+ZnmvgrNo2s3DlgM0w+sPZJbQdLFSXA3qI/CR++RpOdIgHh+/ 2GVGXT+q0QKsTc69yPabh7keW2a9QjQraIxMtGyVtQnW8Mv6xUfjzKvfHyak7TyEllay B4lUptDsxEhCWbNgWSmeE9PkaWQjyVsdOXAKGXvPkGkSXrKCLZFATBWyzBbO+go1Lom+ 3NsAeHg0c5CQSDV/NH3GmRxuYPxx7PlfPASqamM3DIaQ/GMZ+wbpRn5jYhJyYvQFhWsp Hq8ozz1Pksta1k+VQe25CaCD8sJDMmk+ol+F0uqeSMQyqVWMwHkF4yKhhQWMSUsg4iwk dEJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MbVhQFRibEI899kJ5vwNfQ903APBAgNjoRPNg+o5+LE=; b=k0mTzmlGKH64+K+C+yoYXiGBtJabn2l0uBTbBiqeQAhAGtT8Cu5xL696kMJEv8iOmC IaBBT+twidGS5C5ySIgZJN3w3IF8I5kiLnHF1VfXwjLg20NFSgMMabluHsuqyWErPaK+ kk2F2+c+ftSJ3Vk4XAn8flPXTHeJt+F9VrBnKTmOH6Kr8odwi/gxQwNRKE2piHNKiSQc NhRAG2YUDLmo2dve8o/XNShOsYcvlnWED1TCAidLJPRWmZAKcw5AtNm89vPr95o02EZp p33+XwunitVG7FEogdFsS9bSytWAFzD6Lw2sTlcAcGY203HOro2n919kTovxcoLK5HHN jfmQ== X-Gm-Message-State: ACrzQf0oTlfhpUnOSdPEXPum9ofo6OjcyKLPYAoW6HctH5dR5NpBgQIa WaZWSAFTonPBoHPHwIKe2bJ06hQfRTYQD7WKn6M= X-Google-Smtp-Source: AMsMyM66/Q6R+qzCLCxeOWC2hVQ9TAIGOZlpVopXwOJZKm0bKaq4lPp5i3RKW3Fk8vECDqlNs0cJQz3IpoCh2RQErDU= X-Received: by 2002:a65:6955:0:b0:439:a99b:bca5 with SMTP id w21-20020a656955000000b00439a99bbca5mr9917341pgq.80.1665998401915; Mon, 17 Oct 2022 02:20:01 -0700 (PDT) MIME-Version: 1.0 References: <9184bbff-9e68-7b02-2595-3474b016dfff@eastlink.ca> <4e4d53a2-226e-a0ae-a1f7-87619eaff155@eastlink.ca> <782c7588-4b07-a651-ef83-2d36a7d1d568@eastlink.ca> In-Reply-To: From: Pier Paolo Grassi Date: Mon, 17 Oct 2022 11:19:24 +0200 Message-ID: Subject: Re: line continuation with sed To: Bart Schaefer Cc: Ray Andrews , zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000f14f1905eb377a54" X-Seq: 28219 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --000000000000f14f1905eb377a54 Content-Type: text/plain; charset="UTF-8" add-zle-hook-widget zsh: command not found: add-zle-hook-widget locate add-zle-hook-widget /usr/local/share/zsh/5.8/functions/_add-zle-hook-widget /usr/local/share/zsh/5.8/functions/_add-zle-hook-widget.zwc /usr/local/share/zsh/5.8/functions/add-zle-hook-widget /usr/local/share/zsh/5.8/functions/add-zle-hook-widget.zwc echo $fpath /root/scripts//zsh/functions/zle/ /usr/local/share/zsh/5.8/functions/ why the command is not found? Should I do something to load the functions from fpath? thanks Pier Paolo Grassi Il giorno lun 17 ott 2022 alle ore 06:22 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Sun, Oct 16, 2022 at 8:40 PM Ray Andrews > wrote: > > > > On 2022-10-16 18:07, Bart Schaefer wrote: > > > You might find something like this interesting: > > That is really elegant. > > Actually that implementation is kind of ugly. I completely forgot > about this much prettier way: > > 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 > > --000000000000f14f1905eb377a54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
add-zle-hook-widget =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0
zsh: command not found: add-zle-hook-widget

locate add-zle-hook-widget
/usr/local/share/zsh/5= .8/functions/_add-zle-hook-widget
/usr/local/share/zsh/5.8/functions/_ad= d-zle-hook-widget.zwc
/usr/local/share/zsh/5.8/functions/add-zle-hook-wi= dget
/usr/local/share/zsh/5.8/functions/add-zle-hook-widget.zwc

echo $fpath
/root/scripts//zsh/functions/zle/=C2=A0 /usr/local/share/zsh/5.8/functions/

why the command = is not found? Should I do something to load the functions from fpath?
=
thanks

Pier Paolo Grassi


Il giorno lun 17 ott 2022 alle ore= 06:22 Bart Schaefer <schae= fer@brasslantern.com> ha scritto:
On Sun, Oct 16, 2022 at 8:40 PM Ray Andrews <rayandrews@eastli= nk.ca> wrote:
>
> On 2022-10-16 18:07, Bart Schaefer wrote:
> > You might find something like this interesting:
> That is really elegant.

Actually that implementation is kind of ugly.=C2=A0 I completely forgot
about this much prettier way:

show-trailing-space() {
=C2=A0 if [[ $BUFFER =3D *(' '|$' \n'*)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 || $PREBUFFER =3D *$' \n'* ]]
=C2=A0 then POSTDISPLAY=3D$'\u21a9'
=C2=A0 else unset POSTDISPLAY
=C2=A0 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

--000000000000f14f1905eb377a54--