From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20121 invoked from network); 19 Apr 2021 17:30:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Apr 2021 17:30:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618853400; b=qVbAiiRV5PQA6G6eprqUADv5Ynb+W8YbM09o0LSS6el2eBOLbT+4p6+Gdb157RItvmL1hb5Vx3 GaLysiGKJlVxvAXYc7sCMyK6Bwij9BfDf1YHwSLPXiJZbgDrOnZZe+3vjNegehGcfue8OPgJ+K UAYvJXYGdMRHgtQ3rzV9KgFgVxBUttd1vKgbUE7uW3oK0jIisBUEFKtDvWlC+pT0CB+Z/ldJMF gJkcQM1xRhV6tFgDt1E2F+zMV33PmcMYB1pb6YyE1dBNsjpXOtxy5a6okl4z/p2WRVUI6gk0Ka bFlCQVRh8JS49Ipl1nDb7WH1iKNy/ZBqGovuwYSXYpz3dQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f172.google.com) smtp.remote-ip=209.85.208.172; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618853400; bh=rODQQeaqWLX0bkdAiz0mjy4IXyy7wHwptTSv5tFEscI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:Date:Message-ID:Subject:MIME-Version:Content-Type:From: DKIM-Signature:DKIM-Signature; b=Vn56w336jpq4lDJPeoIMXZI/OCboYiuSOMOW0M1SE+xOZfSXvrLwHXuUpB+okF/WtkjOBslCgV seXwoDpW+TJCcjZVW9mu9bYnfxGNjiBEb/J1FywS/FbYDY820sOQyQ8Vm47HOVr8uLy+p5/I+p zjjhmqZV8I3EwdAcvwQm949M5bx8P0dYO72vODp/87ixmAl+dX617H9Qm6M5UL05AV8OTdXlKH G8AtKIte6Y4aR+dM/y91bxv/Ukd9eGKMl5HDGK37VMTs8pWjvekemXnO5eSD4V5l6nyquQ/Agw ZIOb861IQYHrlLs0wSjIqgFM8PJJyaPj701mfPvZP06zrQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:Date:Message-Id:Subject: Mime-Version:Content-Type:From:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=7JOtOdVcvNQLfB1K17lfcOTjv97tJ+oU/jF/gVsA7Qg=; b=W0wEKyGpZzVEZPCjn1caehdoas flmNoYBSXyqPayRw5xUZpB6pPuiSRY3tSbxFXjQ+DKXFE/eVc2r8yN8Z7QBUe5RVljvzOCQANchqT cLICTQnJl9oHprdJD4li1hZXu775mRWNS6Zx0yWoN6GTFaoWHs12BATyDdOzfGfibPRmwdqZYY2pv raEq7Pu7yTkwk96/HHblVUDqRumkz0Kv+yBbzkin3fcMnqj+3tUisQo96OK347tEJ4fcN4843VwR5 ZPBd13I/MVweU4GLNNA15s+EZ8Z36hNMqXnjOBp6L380GdChuuImnUVO6aFppKSw6D5zCy0XBLFrR MGTrdrAA==; Received: from authenticated user by zero.zsh.org with local id 1lYXih-0007PA-Cl; Mon, 19 Apr 2021 17:29:59 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f172.google.com) smtp.remote-ip=209.85.208.172; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f172.google.com ([209.85.208.172]:35792) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lYXiP-00079D-Vm; Mon, 19 Apr 2021 17:29:43 +0000 Received: by mail-lj1-f172.google.com with SMTP id a1so40332792ljp.2 for ; Mon, 19 Apr 2021 10:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=7JOtOdVcvNQLfB1K17lfcOTjv97tJ+oU/jF/gVsA7Qg=; b=H6XzJU5Wa6Xjr5Gzqf+fLQR2dvASJF9mtJcNswXEvVSBhQotFceflB1EL7UfeFDWM9 iCio2cN1XkWkw0zD/nle2bogCYilM6Pt7RAQCfzLCTbtu+E1D8j66ZWa8Yb3hGEe11qz 5DQ94fOb8/sKhD7BvOPFx+BxKKH3f/1g3l9Y1JMOqLJ/eiqhr3FyuTRZ1MgBQcveY8YL NfihYFIA6mkbtlC6zJrcsGe12/qxcl7C3wPXYhzaJNpvR3Jc+DkWSeazsKLhCVqecb0N 3O61BnYjCYmMHXzfIgwTJWajhjzpTFSkDeUJxh8UhgOjM3S19rcbT5lm+FQLPnvYMhQH ejjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=7JOtOdVcvNQLfB1K17lfcOTjv97tJ+oU/jF/gVsA7Qg=; b=BAXhksQQRuCY2Nj+X2+YLYeesbr3PREiW3BvMjU0cNuEw78uBmAFogHL/4+imIE7Sj pOJOtbJUoEN+n6UUoU6Qlt76F/LAUO6vkCZv3XQ6mNpAJPw5JYb7228FfZ/aRQx+lgzp 6nslimWUBegnseUFhQJxfcfV2AtQjhnTFOSy8puetqGiwup8GRBTBUxR/l8d9XgvfQ3v gzDAUZthTJXmfuH+eRenBja5hZEwPdUeyr1ZYYWotScPMHTZswH68WJyqL++wBnFgBfo WCxfexyMPNJJv9+75sPheohhAIgmnmaYrtO8G0tKAj5SG6JItEUEseC6wyBgU5ExrPkN 25Ew== X-Gm-Message-State: AOAM530c6qn50sK73/scPh0xEyzrqPxWAi771MyRwm8LMzhBHY1NzB9Z +n1ili0QDVVxtAN4QDU7hUjloE3R3kKSng== X-Google-Smtp-Source: ABdhPJwdXKG/3E6GcxrtPxfFLRmfnyMQvg2utaAtFamT9RtjlxJuH+Gy/71xz5YKgt+dmyFWlLpEcg== X-Received: by 2002:a2e:960a:: with SMTP id v10mr2114589ljh.339.1618853381205; Mon, 19 Apr 2021 10:29:41 -0700 (PDT) Received: from [192.168.1.15] (hag-tkubng22-50df3e-132.dhcp.inet.fi. [80.223.62.132]) by smtp.gmail.com with ESMTPSA id y22sm1107291lfl.196.2021.04.19.10.29.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Apr 2021 10:29:39 -0700 (PDT) From: Marlon Richert Content-Type: multipart/mixed; boundary="Apple-Mail=_F12B0BE0-C750-4542-9A7B-755CDB68C8D6" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: [PATCH] Add -L to add-(zsh|zle)-hook[-widget] completion Message-Id: <5D55AAA6-C100-4FBA-A1D5-3DCD7D965DC3@gmail.com> Date: Mon, 19 Apr 2021 20:29:39 +0300 To: Zsh hackers list X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Seq: 48621 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --Apple-Mail=_F12B0BE0-C750-4542-9A7B-755CDB68C8D6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 =E2=80=A6and hide mutually exclusive options. --Apple-Mail=_F12B0BE0-C750-4542-9A7B-755CDB68C8D6 Content-Disposition: attachment; filename=0001-Add-L-to-add-zsh-zle-hook-widget-completion.txt Content-Type: text/plain; x-unix-mode=0644; name="0001-Add-L-to-add-zsh-zle-hook-widget-completion.txt" Content-Transfer-Encoding: quoted-printable =46rom 8b0221296db36c4d55d1b99577886f72afd76d3b Mon Sep 17 00:00:00 2001 From: Marlon Richert Date: Mon, 19 Apr 2021 20:24:36 +0300 Subject: [PATCH] Add -L to add-(zsh|zle)-hook[-widget] completion MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit =E2=80=A6and hide mutually exclusive options. --- Completion/Zsh/Function/_add-zle-hook-widget | 9 ++++++--- Completion/Zsh/Function/_add-zsh-hook | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Completion/Zsh/Function/_add-zle-hook-widget = b/Completion/Zsh/Function/_add-zle-hook-widget index f108d1868..c0bd77819 100644 --- a/Completion/Zsh/Function/_add-zle-hook-widget +++ b/Completion/Zsh/Function/_add-zle-hook-widget @@ -26,9 +26,12 @@ _add-zle-hook-widget() { local context state state_descr line typeset -A opt_args _arguments -s -w -S : \ - '(-D)-d[remove HOOK from the array]' \ - '(-d)-D[interpret HOOK as pattern to remove from the array]' \ - {-U,-z,-k}"[passed to 'autoload']" \ + "(-d -D -U -z -k)-L[output in form of 'zstyle' commands]" \ + '(-L -D -U -z -k)-d[remove HOOK from the array]' \ + '(-L -d -U -z -k)-D[interpret HOOK as pattern to remove from the = array]' \ + '(-L -d -D)-U[suppress alias expansion for functions]' \ + '(-L -d -D -k)-z[mark function for zsh-style autoloading]' \ + '(-L -d -D -z)-k[mark function for ksh-style autoloading]' \ ':hook type:_add-zle-hook-widget_types' \ ':widget:_add-zle-hook-widget_widgets' } diff --git a/Completion/Zsh/Function/_add-zsh-hook = b/Completion/Zsh/Function/_add-zsh-hook index e8ae97052..4d8a96dab 100644 --- a/Completion/Zsh/Function/_add-zsh-hook +++ b/Completion/Zsh/Function/_add-zsh-hook @@ -14,9 +14,12 @@ _add-zsh-hook() { local context state state_descr line typeset -A opt_args _arguments -s -w -S : \ - '(-D)-d[remove HOOK from the array]' \ - '(-d)-D[interpret HOOK as pattern to remove from the array]' \ - {-U,-z,-k}"[passed to 'autoload']" \ + "(-d -D -U -z -k)-L[output in form of 'typeset' commands]" \ + '(-L -D -U -z -k)-d[remove HOOK from the array]' \ + '(-L -d -U -z -k)-D[interpret HOOK as pattern to remove from the = array]' \ + '(-L -d -D)-U[suppress alias expansion for functions]' \ + '(-L -d -D -k)-z[mark function for zsh-style autoloading]' \ + '(-L -d -D -z)-k[mark function for ksh-style autoloading]' \ ':hook class:(chpwd precmd preexec periodic zshaddhistory zshexit = zsh_directory_name)' \ ':hook function:_add-zsh-hook_hooks' } --=20 2.31.1 --Apple-Mail=_F12B0BE0-C750-4542-9A7B-755CDB68C8D6--