zsh-workers
 help / color / mirror / code / Atom feed
From: Shohei YOSHIDA <syohex@gmail.com>
To: zsh-workers@zsh.org
Cc: Shohei YOSHIDA <syohex@gmail.com>
Subject: [PATCH] Fix file name completion of GNU digest utilities
Date: Wed,  1 Sep 2021 13:38:55 +0900	[thread overview]
Message-ID: <20210901043855.82967-1-syohex@gmail.com> (raw)

If summing option(--tag, --binary, --text, --zero) is specified, file name
couldn't be completed. Because current implementation that operand is grouped
at 'chk' group and 'chk' group options are not completed when summing option
is specified. This change adds group for operands and fix this issue.
---
 Completion/Unix/Command/_md5sum | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_md5sum b/Completion/Unix/Command/_md5sum
index 3dfcd6322..e0de826a7 100644
--- a/Completion/Unix/Command/_md5sum
+++ b/Completion/Unix/Command/_md5sum
@@ -45,6 +45,9 @@ args+=(
   '(sum -w --status --warn)'{-w,--warn}'[warn about each improperly formatted checksum line]'
 )
 # Operands
-args+=( '*: :_files' )
+args+=(
+  + operand
+  '*: :_files'
+)
 
 _arguments -s -S : $args
-- 
2.30.2



                 reply	other threads:[~2021-09-01  4:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210901043855.82967-1-syohex@gmail.com \
    --to=syohex@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).