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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3109 invoked from network); 20 Sep 2023 22:52:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Sep 2023 22:52:34 -0000 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-Transfer-Encoding:Content-ID:Content-Type:MIME-Version:Subject:To: References:From:In-reply-to:Reply-To:Cc:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=9It/GhG+Hff4lgFhGzrnkRViZqAHJWB97zUgjvXluEE=; b=iYILPWtdQ0937mUX9H0fuDMjGL 9pfhu5oGMQs/2TuMoD24Wg7m950NKGOjKhmyoWiYv4EaDATKuQq8GPBORifP/WJchzvIq9ZCTjkgx 7cOvPycRHJnHi+GdKofDJT5LmDmBhb3M+inlpBFNQJrVjbukthgBK5n83LzR+heIpT/2dcfrPATlM Ond35oBpkKGP2NszJACuoJm+S3XFPjOOayJHRj3+fxPd7a9I5e5D2vcSiC4F7xR7sOBVRCRtFS/ql IEB8wCcr10G372BugwD8DihlRR8wSYLCgFik/ex8E/jbHCfjeu7kjldP8ZZt1Uk7iE80I3cDfineo J5Ow+n2g==; Received: by zero.zsh.org with local id 1qj63d-000Pg0-Tx; Wed, 20 Sep 2023 22:52:33 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qj63Q-000PN0-DS; Wed, 20 Sep 2023 22:52:20 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1qj63P-000AG8-VF; Thu, 21 Sep 2023 00:52:20 +0200 In-reply-to: From: Oliver Kiddle References: To: zsh-workers@zsh.org, 941214@bugs.debian.org Subject: Re: Completion for mutt's -a command line switch MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <39438.1695250339.1@hydra> Content-Transfer-Encoding: 8bit Date: Thu, 21 Sep 2023 00:52:19 +0200 Message-ID: <39439-1695250339.964813@n70D.cLkx.ufXf> X-Seq: 52167 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: On 20 Jun, martin f krafft wrote: > mutt allows attaching files from the command-line: > > mutt -a /file/one /file/two /file/three -- … > > Basically, the rules are: -a takes a list of files, terminated by --. > > Zsh's completion of mutt treats the argument to -a as optional: > > '*-a[attach file using MIME]::file attachment:_files' \ In theory, this should be possible with: '*-a[attach file using MIME]:*--:file attachment:_files' \ However, _mutt also calls _arguments with -S so if it sees -- it takes that as the end of all options and only completes recipients thereafter. Oliver