From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 9707321319 for ; Sat, 30 Mar 2024 11:13:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=o67u3lFmwyghnel2POJvGWhiQ3sju3oi2fjVoFXMAUA=; b=OkDMAqamlBIG/5xfC6aRWMOEOi EyDOAXGcxBM9ky73+iA5cHifpx6ehpr/vyk9dIwMo6mO/dfarJ8w2cxiViX1CYzNduAF6SJxm7Rwn vk9yjIrRlw9blBslN3V1Pa2g99Rn/imxWVYjc6Df4Msk4+1qncfDqFqNldHwOEQCLdyD1OrutTTQU WGKKGqOvQ5U3CQR59RgHDG0+g4cqSL2rbB/XP2pn6ChAkvc+ypb3C6/sxHoVF8kMUut3kd3ONHGhm 7dM3GmOCU9Z7QL1G8za1HXss+Rk3QAdjHPTGSYSXkJ2AEWnLIEWK9z9X1oqgI76QL3vYcfrNnkOT9 o+AzVGLw==; Received: by zero.zsh.org with local id 1rqViS-000PIp-Ca; Sat, 30 Mar 2024 10:13:36 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rqViC-000P0z-QN; Sat, 30 Mar 2024 10:13:20 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.97.1) (envelope-from ) id 1rqViB-00000000NU4-2q6f for zsh-workers@zsh.org; Sat, 30 Mar 2024 11:13:19 +0100 From: Oliver Kiddle To: Zsh workers Subject: PATCH: minor omissions in completions for fc and vared MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <90274.1711793599.1@hydra> Date: Sat, 30 Mar 2024 11:13:19 +0100 Message-ID: <90275-1711793599.626191@YNhh.3dSa.VuHJ> X-Seq: 52859 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: We don't make use of _date_formats in _fc and vared completion excluded the -m and -M options. -m/-M aren't especially new so perhaps that was intentional - they're more useful in widgets than interactively - but at the very least they should have been included with an initial ! and handling for the argument. Oliver diff --git a/Completion/Zsh/Command/_fc b/Completion/Zsh/Command/_fc index 80e570c5d..626d35956 100644 --- a/Completion/Zsh/Command/_fc +++ b/Completion/Zsh/Command/_fc @@ -40,7 +40,7 @@ fc_hist=( '(-A -R -W -e -d -E -i -t -a -p -P)-f[mm/dd/yyyy format time-stamps]' '(-A -R -W -e -d -f -i -t -a -p -P)-E[dd.mm.yyyy format time-stamps]' '(-A -R -W -e -d -f -E -t -a -p -P)-i[yyyy-mm-dd format time-stamps]' - '(-A -R -W -e -d -f -E -i -a -p -P)-t[print time-stamps in specified format]:date format' + '(-A -R -W -e -d -f -E -i -a -p -P)-t[print time-stamps in specified format]: : _date_formats zsh' '(-A -R -W -e -a -p -P)-D[print elapsed times]' '(-A -R -W -I -e -d -f -i -l -m -n -r -D -E -t -P)-a[with -p, automatically pop history on function return]' diff --git a/Completion/Zsh/Command/_vared b/Completion/Zsh/Command/_vared index aba64880a..e7072ca6d 100644 --- a/Completion/Zsh/Command/_vared +++ b/Completion/Zsh/Command/_vared @@ -10,5 +10,7 @@ _arguments -s -A "-*" \ '-f+[specify finish widget]:widget:_widgets' \ '-h[allow access to history]' \ '-e[exit on EOF (^D)]' \ + '-M+[specify keymap to link to main]:keymap:compadd -a keymaps' \ + '-m+[specify keymap to link to vicmd]:keymap:compadd -a keymaps' \ '1:parameter spec:_vars'