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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 5c9a0be2 for ; Thu, 27 Jun 2019 20:48:23 +0000 (UTC) Received: (qmail 23099 invoked by alias); 27 Jun 2019 20:48:15 -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: 23990 Received: (qmail 20648 invoked by uid 1010); 27 Jun 2019 20:48:15 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi1-f177.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25489. spamassassin: 3.4.2. Clear:RC:0(209.85.167.177):SA:0(-2.0/5.0):. Processed in 3.556198 secs); 27 Jun 2019 20:48:15 -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.167.177 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=taSB+RZM8BJfepQEClM0Mc5SQua/PUD5vh49ruWLOs0=; b=rS+eya8x61Q97Vm4wxhirkVaL8+r8O2osq291Qd1xBp5qz7eXE9kwsLcVu5zbOG6+M e1FMJ/M5h86U7iE3K3GP0mIft0bhef2MWJp3M9RByyNWTG1dxDDMzocsa60Oy3/f0i0h 999qp6/bv4TDGhHQ2MHT016ypLOD6TroQ1m3XAjrxtrtxyPE4Nvx0ySMep6hjmY+ky0J YyhvPUOJ/s9+YKok/2AhxKuF6lucDobVktnlMOXOyxIZLGSdUO/HavSqGwGHdq9++5cn 2lQD+djHdc5D/cuBFgSMracSgWakQCjN/S6OA70CMiG+v7J19IPoYtnO1HShJfG6VoDa FxCg== X-Gm-Message-State: APjAAAUW1y443bUu1WDcRyBsLoU8EOgqcN279lkppECRvC8e9eE4hpm7 7GV4ccgkKv/WM99DBcjTrmAO+B04p+5yyryyKBd2PkvG X-Google-Smtp-Source: APXvYqzyjXAyvUoHxtn0lC88i6/t/9TFE6NJohipgICm6Z91VAWmJa1NZZuSJIPOjgrLM42asvPZX2X4PwCyzvnm1dk= X-Received: by 2002:aca:d6d7:: with SMTP id n206mr3387272oig.179.1561668458614; Thu, 27 Jun 2019 13:47:38 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Thu, 27 Jun 2019 22:47:27 +0200 Message-ID: Subject: Fast-Syntax-Highlighting _adaptive_ Git support To: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, the new Git support in F-Sy-H is **adaptive** =E2=80=93 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 =E2=80=93 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 --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org