Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fast-Syntax-Highlighting _adaptive_ Git support
- X-seq: zsh-users 23990
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Fast-Syntax-Highlighting _adaptive_ Git support
- Date: Thu, 27 Jun 2019 22:47:27 +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 :content-transfer-encoding; bh=taSB+RZM8BJfepQEClM0Mc5SQua/PUD5vh49ruWLOs0=; b=aVLdRo+iVeQCaCOdYiFaCFYMLm3iGB3ou5USeMomNtOuaJE+p04h9HeFZANX+DGz3I gy4mSZ95r9yy8u2diP66ZaD2dImGr4CpSMqcb9h1e0ZT4PJiyv8/G7JG411I0KkErkXF N+RDrxm2EP0gq5Wy7MIXhTBMdOZnz7mEsqtwJyMxpTViJ6UPpyT8KblCX4ahUG4PTYTh xpmKCG4eQjiQS4uYCto5eIXsPBvtS/Cs4Xghy2hCkyvCefedkt915XVmvEn4cUXIkRQk C6gOY0x5eEQ3CxslnDVECwJysgLlXoYFyCFy/9zoydoRAN5V7dYlUdOnkOKXFV0RE3gM ZQqw==
- 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,
the new Git support in F-Sy-H is **adaptive** – despite being
specific-command oriented (like it was before). This means that not
only the highlighting detects Git specifics and e.g. verifies if the
entered tag or branch is correct, but also that it changes the
expected command syntax on-the-fly, according to the options entered.
For example git fetch --multiple gets only a series of repository
names, not a single repository name and a series of refspecs like it
does normally.
This allows to verify the correctness of the entered git command even
before executing it. Little implementation background – all this is
based on an abstract definitions with a custom syntax, in general no
code has to be written (only basic callbacks).
Asciinema screencast of the feature: https://asciinema.org/a/253411
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author