zsh-workers
 help / color / mirror / 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
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

zsh-workers

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ https://inbox.vuxu.org/zsh-workers \
		zsh-workers@zsh.org
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


code repositories for the project(s) associated with this inbox:

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git