Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Beautiful syntax-highlighting of $(command) substitution
- X-seq: zsh-users 23420
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Beautiful syntax-highlighting of $(command) substitution
- Date: Fri, 1 Jun 2018 17:21:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EoTKstyIA8+U7UrPukYDIXLjqwrzhUzp4MpNoWtON2E=; b=YfCidLFhVWoE682JqEa3RSUx1fL8jbjmDVk17XPDzmWZVeA1+iguaVVMpo4gdZIdkB 1DeR+Z5nEPAqzt5kSA+MRlwEjkuJUCBWWtWPDKE+tjogxFd7oBXp16Az9UkhTj5SXyfO TWExBUFFBJ5+eYXJOKGWfop6FCgKOvumLqo3X17f6UTnCtfDlR9CwztqA99nPkv9FIgu kcEekotdPJHTeCV4W8X2Kw0WdQfu7OPN5XKmd280aQ7pE1DbaYMARHy0EDsoszhGb3r2 GGrDG0/QOyWEo4p4h93WiGBHFXQIUz3S/sCacSDkZSw675EyqxX8Ok3ec9YeNWVwhZsP I1sw==
- 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
Hello,
fast-syntax-highlighting supports themes and highlighting of $(). This
opened a way to implement: use distinct theme for $() interior. Effect
is in attached file. Additional axample:
http://psprint.blinkenshell.org/cmdsubst3.png
The secondary theme is specified by simple entry in theme ini-file:
https://github.com/zdharma/fast-syntax-highlighting/blob/master/themes/clean.ini#L7
If (Z+x+) flag will be implemented in Zshell, it will be possible to
do all this very correctly, robustly.
Also check out 256-color themes, the difference to default "rigid" 8
colors is drastic:
http://psprint.blinkenshell.org/theme.png
Attachment:
cmdsubst2.png
Description: PNG image
Messages sorted by:
Reverse Date,
Date,
Thread,
Author