Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Chroma functions in FSH – detailed Git highlighting
- X-seq: zsh-users 23441
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Chroma functions in FSH – detailed Git highlighting
- Date: Tue, 5 Jun 2018 22:26:03 +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=R/aD5eSIgfXN9hhcRC76zYIBylqWXnfxm6Nzqmnwm7U=; b=Ey5l9KRhozIDAyp80oYL9/vjYdrZzxwuDEp4qAdiYIYLL+ux4EAjwSGDYBbxlb86JC 0ylCeWRvNvsOzsV1yyNnM8hAHLy3yRTZIAcxPxbkfWAwOMPn1NvaYCP1ZUqi9eAuEPpO H7F2Q+EiBf+LpAkm7A2HP/W6K0wbOwkEi3bdWSJQrhhPtj/4LZ4ebeZaza0zhhGTtOXy NFsD7LO1J04OSjEs+G1PcTU1aCLiTVUlZdizAuCdF5dosTxhfT4aMdRfWIrwv082/IdW 0g6otg+URagXa+7C91GEcI9ipv7gdHiSu0QjydzaR/XsaEJnyOYswwScKLXtJGj0u3KZ c+Uw==
- 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,
"chroma functions", being something similar to "completion functions",
are per-command, specific highlighters. Chroma tracks current command
(e.g. git), highlights it, and even allows to emit a message under
prompt. It will verify if proper remote and branch is entered, and if
commit message doesn't exceed 72 characters, more is coming. Checkout
the demonstration:
https://asciinema.org/a/185707
There's also proof of concept under-prompt message video:
asciinema.org/a/ZIweHJk6M7EFiiaDiTthFAVxf
Any ideas for commands that should have chromas are welcomed.
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author