zsh-workers
 help / color / mirror / Atom feed
* [PATCH] Fix file name completion of GNU digest utilities
@ 2021-09-01  4:38 Shohei YOSHIDA
  0 siblings, 0 replies; only message in thread
From: Shohei YOSHIDA @ 2021-09-01  4:38 UTC (permalink / raw)
  To: zsh-workers; +Cc: Shohei YOSHIDA

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-01  4:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01  4:38 [PATCH] Fix file name completion of GNU digest utilities Shohei YOSHIDA

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