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.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, 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 bb7c623f for ; Fri, 6 Mar 2020 04:46:48 +0000 (UTC) Received: (qmail 7572 invoked by alias); 6 Mar 2020 04:46:38 -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: 24714 Received: (qmail 27143 invoked by uid 1010); 6 Mar 2020 04:46:38 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f47.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25738. spamassassin: 3.4.2. Clear:RC:0(209.85.221.47):SA:0(-2.0/5.0):. Processed in 1.393905 secs); 06 Mar 2020 04:46:38 -0000 X-Envelope-From: luomat@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.221.47 as permitted sender) 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; bh=P7PCv3pyP7C0UdyyGCW1dGp5CKw+OZeFyF1VS4FyF0A=; b=ZJ2J54IgZFE3pcbo9c1jwj+Qows8D4mVrLzZDuUafwv5HA/3mkt/OXYfYeJMvKXhiX xk+12p0t0s9Y1wcyhd62wC8nMqlZPadgTjcylev+mGt1E5+8b/wPqEkvt+kZt5V0YiyE PtA+2yDiKEtP3EUplynzzFVluYdHcEDOY7wL5/ZQWJB8xvM7zQp8dgIDLS7PnJndorct 4dSdSYFKlVeCWtEMhAZ5nJqpgIGPXxAX3vSxHDAmlSxa92bdY2l9Tb+q2I2iU3wD0Trr QU0ycLGGic29ARUWOdFQXsuyIONoB/lhWqyJcBNX6TSj9N5bok6Kyb9e09lf38NqZ6Ym 6vdQ== X-Gm-Message-State: ANhLgQ1zMj3PNzXqZm6Q/CQbT8wl31uSsHL5CbJpdOp9ICb8W+oNSgVR aasRfzsJxlnz6TOHFTnSm+hrN9t2y6FToVhEY7lFrrjnuv4= X-Google-Smtp-Source: ADFU+vsoB4goci/PMOl07NxqZPlc5aR09S2JraOwP+UlVU0WLOMRAhxsEs0OPL3tb4HjTabSLbre4CztnN1XxhfKgKA= X-Received: by 2002:adf:e6c9:: with SMTP id y9mr1798983wrm.246.1583469962257; Thu, 05 Mar 2020 20:46:02 -0800 (PST) MIME-Version: 1.0 From: TJ Luoma Date: Thu, 5 Mar 2020 23:45:26 -0500 Message-ID: Subject: completion for 'alerter' To: Zsh MailingList Content-Type: text/plain; charset="UTF-8" I just learned of a new tool called 'alerter' (https://github.com/vjeantet/alerter) and wondered if someone could explain how to make a completion for the various options that it has. I've never really understood how to create a completion. For example, when I type 'tar -' followed by 'tab' I get this: $ tar -[tab] tar function A -- append to an archive c -- create a new archive f -- specify archive file or device t -- list archive contents u -- update archive v -- verbose output x -- extract files from an archive These are the options for `alerter` -help -json -message VALUE -remove ID -list ID -reply VALUE -actions VALUE1,VALUE2 -dropdownLabel VALUE -title VALUE -subtitle VALUE -closeLabel VALUE -sound NAME -group ID -sender ID -appIcon URL -contentImage URL -timeout NUMBER I came across https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org which is supposed to explain how to write a completion, but I'm afraid that I don't really follow most of it. Is there a simpler starter tutorial or does someone have an example completion that I might be able to modify? Thanks Tj