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=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,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 e0ab8aa2 for ; Fri, 10 Jan 2020 22:43:27 +0000 (UTC) Received: (qmail 17312 invoked by alias); 10 Jan 2020 22:43:17 -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: 24641 Received: (qmail 13695 invoked by uid 1010); 10 Jan 2020 22:43:17 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua1-f49.google.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(209.85.222.49):SA:0(-2.0/5.0):. Processed in 3.878591 secs); 10 Jan 2020 22:43:17 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.222.49 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=27o9HWeVPgWH1guffZbpIoBpDL87un8FH+4mQs2BM9Y=; b=DknCvR357ytkhSI0DZpQxXrpkRVISSAbUpKThqFRX/vKzszlGf1G3Y/lVIanUb8uYN sLmryYpQLsE7l+WRGs/qUSTNpWREuyD34nrr/SvzoVPBBL7NjMUSTPOaeL3aZGg/KmCR snk5oRQhNLwm+9+Uh/q2+Bv3WsDkgAYnxY834mvpLbbuLoO5F/uNMJINFfgBfK4QBibn zm048Wq1qzQiSnV3Ygje5TKEzj1yyORuCOds44nHiUo39113c1pLxf8pLYj261qFmP1G /uRotaQsq7a4JE93E2jCfQmgJsfDRogBgjvhkM3OWHzijsCEk9L7/pqDSn1amhxpA0tN 6MAQ== X-Gm-Message-State: APjAAAWtFaCryMEP+ZXxkExTEpT60dWD80rNpA1EiKWr2heINM2Vj1oC lJ6fCrtL592dQoseOhc9yw+oLffWDk8+ktq49qq6Ag== X-Google-Smtp-Source: APXvYqxyvtZIecTmUlgYODGuYPJDJZcuazMqPaErQjt8eeS1xXUFS5y/iekS34ly2SML3GJWvU8TcLQ6ewzV8FP54z8= X-Received: by 2002:ab0:6954:: with SMTP id c20mr660193uas.82.1578696159705; Fri, 10 Jan 2020 14:42:39 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Sebastian Gniazdowski Date: Fri, 10 Jan 2020 23:42:28 +0100 Message-ID: Subject: Re: z-sy-h and z-asug: zle-line-pre-redraw, POSTDISPLAY, coexistence (was: Re: emulate bash key bindings) To: Roman Perepelitsa Cc: Daniel Shahaf , Zsh Users , ericdfreese@gmail.com Content-Type: multipart/alternative; boundary="000000000000cebf8a059bd0d703" --000000000000cebf8a059bd0d703 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable pt., 10 sty 2020, 19:45 u=C5=BCytkownik Roman Perepelitsa < roman.perepelitsa@gmail.com> napisa=C5=82: > > I wasn't able to find an existing library to do this. z-sy-h's main > highlighter isn't factored out, so I cannot reuse it. I also want > something a bit more precise and performant. On the plus side my goal > is more modest than z-sy-h. I only need to extract "command" words. > For example, given this zsh code: > > () { sudo foo bar && baz } > > I want to get "sudo" "foo" and "baz". > You might check out zshelldoc. --000000000000cebf8a059bd0d703--