From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ec3ceabb for ; Sat, 4 Jan 2020 12:47:22 +0000 (UTC) Received: (qmail 18995 invoked by alias); 4 Jan 2020 12:47:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45230 Received: (qmail 28379 invoked by uid 1010); 4 Jan 2020 12:47:14 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(66.111.4.27):SA:0(-2.6/5.0):. Processed in 4.58269 secs); 04 Jan 2020 12:47:14 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeghedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehttd dttddtredvnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhi vghlrdhshhgrhhgrfhdrnhgrmhgvqeenucfkphepjeelrddukedtrdehjedrudduleenuc frrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgr mhgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Date: Sat, 4 Jan 2020 12:46:30 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: [PATCH] Improve _man file-path completion Message-ID: <20200104124630.kbjxlu3ctdyadcx7@tarpaulin.shahaf.local2> References: <83C0ABA0-99A5-4DAD-98D6-DBB919F61E24@dana.is> <20200104003913.3gq5hnlmhndwbzz4@tarpaulin.shahaf.local2> <07B00625-9EC2-454E-B3E0-6F520DE4A899@dana.is> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07B00625-9EC2-454E-B3E0-6F520DE4A899@dana.is> User-Agent: NeoMutt/20170113 (1.7.2) dana wrote on Fri, Jan 03, 2020 at 19:17:56 -0600: > How about something like the following, then? +1, thanks. > On 3 Jan 2020, at 18:39, Daniel Shahaf wrote: > > Aside: > > > > % compdef _f f > > % _f() _files -/ > > % f Util/ > > . > > offers files, rather than nothing. Bug? > > I seem to recall this being discussed before, and it isn't really a bug, but > we could change it if we decided to. Someone was complaining about it on IRC > just the other day. I think we'd simply need to remove *:all-files from > pats=(...) Well, it seems like a bug to me, given that -/ "specifies that only directories should be completed". If the completion function had wanted files to be offered, it wouldn't have passed -/ in the first place. *shrug*