Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fast-Syntax-Highlighting demo
- X-seq: zsh-users 23558
- From: David Klann <dklann@xxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Fast-Syntax-Highlighting demo
- Date: Sat, 4 Aug 2018 10:01:57 -0500
- Authentication-results: vps108322.vps.ovh.ca (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=grunch.org
- Autocrypt: addr=dklann@xxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBEhJmF0RBACwU3svIw374HNS/c5hxRZReJDCHkkR4jTXISAKvqa7EqoJ8gX14/5ceWFu 3Bmekwj7WwCMf0qGaIVKAsvlRVa/oKHwPG+kYwmV8bYYo6htjZGum61AMqsDgjUdfcKIcbRr uTEN9f5+SXB+UxBQCBMQtgVgKFyE9KnwBtVQHIwuvwCgqlGT1nmOt5a2dbV86bBI4fQs9csD +wXAGgxsgYjGUwauA/tcOAjylU75nCej0InCC2BJz5J922QX82IhlnOzaO/Rz1uafC8Jm9d0 NpbalRHrou6HswRK4Atf+Rp+elD2Ks6zgjU1vTKwmRZ8Cdi5tCbBCXi4r8FrpMUKu5v0h3v1 DqSyv8ssYFr2EkXjPQ+ho5A0uzj8A/9p4wexALBh/k+891XiCmhopdtD07rry9g2PQ/WBDOJ 6SlRn+/at23RBUo0RpILg6i9EXIDNXrP2CvwkcgyekeyIQRii3SujQ3as/KzO3pR8SDgWmju Z45ab8PPqhQTuY+mTpo9Xr1Gc3k5OTYhYppnMgeaid1shh6sZK6NkHah4s0eRGF2aWQgS2xh bm4gPGRrbGFubkBsaW51eC5jb20+wmsEExECACsCGyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4B AheAAhkBBQJYPvA8BQkVmPJfAAoJEHRak9Yobse8kZUAn1b239afc7QjM+BNcRhNFMkNh7lg AJ0ThNL4UFrdonZAfwT1ekDjYM/+5s7BTQRLC4B1EAgAvthOJduBb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IdQrNHznYLO
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=grunch.org; h= content-type:content-type:in-reply-to:mime-version:user-agent :date:date:message-id:from:from:to:references:subject:subject; s=dkim; t=1533394917; x=1534258918; bh=k10dAR/VvEJ8hVxFaQK2XHIi lfNVpS4XKOaA077w0RY=; b=KNEEsBNoGmOS/xZG8cwUnyy3G4X1ZzE1U1Ii7d8H NTFpRb2M2hS+2ooo0hU0kfI5I7nwK9J6ELFaxRi7ww1Ub9STWEU1zbhuld4r6fai yu5en9kDTwm2VwL9l975/wRlxjoYoLP/d942LL7cezD+FxMuThXFxkl6eJT6YUrk Ltf6v5lqfgJmOXubRSzaUO0Lxz4KF2WVbdzMpJoAqBgXicbpT1w1CGQKNNgQJhNl /fL0ZmmQUkiprIkQ8g5XIiVRPd5+oloPN9s4mJHNMTWHexA8vFHZcM6rq68Ub0R0 +SW/KjtO79GqCJk/Yr/f9q1QEYUAHhCi8oypErcUaEp0AQ==
- In-reply-to: <CAKc7PVAXFivMtwT=9W5ykwLjVSFeu8eiNevCf711TqfSH95epQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Openpgp: preference=signencrypt
- References: <CAKc7PVAGbnDRs+ZiO526n9yCz3PsV+_DZ9Kvu6q3DVLmfb2h9A@mail.gmail.com> <9f891a0c-5f36-a5ab-2902-8e2f5e929901@eastlink.ca> <CAKc7PVAXFivMtwT=9W5ykwLjVSFeu8eiNevCf711TqfSH95epQ@mail.gmail.com>
ZSH continues to amaze me after more than 20 years of using it!
This "add-on" ("plugin", "theme", etc.) is amazing! I keep a casual eye
on changes and progress in command line "technology", and this is one
that is immediately useful!
Thanks, Sabastian, for your work on Fast Syntax Highlighting!
~David
On 08/04/2018 09:13 AM, Sebastian Gniazdowski wrote:
> On Sat, 4 Aug 2018 at 15:43, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>>
>> On 03/08/18 11:45 PM, Sebastian Gniazdowski wrote:
>>> Ideal brackets highlighting, resilient to quoting – note the sidx=...,
>>> eidx=... lines:
>>>
>>> http://psprint.blinkenshell.org/theme.png
>>
>> That's pretty cool. Are you saying you've got the shell colorizing
>> itself? Various editors do that of course.
>
> Yes, brackets (three types: ( ), { }, [ ]) are detected, paired and
> highlighted by the shell, by plugin zdharma/fast-syntax-highlighting.
> Also, after pointing cursor at some bracket, its matched, paired
> bracket is highlighted with blue background:
>
> https://asciinema.org/a/194986
>
> The point is that the code of the solution guarantees correct bracket
> highlighting and pairing, no quoting can disturb it, so e.g.
> constructing a pattern- or regex-hogs is much easier now, such string
> will be divided into blocks delimited by ( ) and [ ] brackets ( { }
> aren't used, at least by patterns, AFAIK).
>
Attachment:
signature.asc
Description: OpenPGP digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author