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 bf39bc24 for ; Sun, 29 Sep 2019 15:11:51 +0000 (UTC) Received: (qmail 10438 invoked by alias); 29 Sep 2019 15:11:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24308 Received: (qmail 4651 invoked by uid 1010); 29 Sep 2019 15:11:43 -0000 X-Qmail-Scanner-Diagnostics: from mta01.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25580. spamassassin: 3.4.2. Clear:RC:0(24.224.136.30):SA:0(-2.6/5.0):. Processed in 3.111642 secs); 29 Sep 2019 15:11:43 -0000 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.30 as permitted sender) X-Authority-Analysis: v=2.3 cv=QqQgIm6d c=1 sm=1 tr=0 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=cOxmub1TG0pep6oOwAYA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgedtgdekkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucfkphepvdegrddvtdejrdeltddrudelgeenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: completion is over thinking things. To: zsh-users@zsh.org References: <306325bb-395d-a16b-a771-0786c23cb46e@eastlink.ca> <8ef96620-e762-d52c-207f-c3ac5620879f@eastlink.ca> From: Ray Andrews Message-id: <3894eb29-b17a-0bf3-21f9-f9c44cb37428@eastlink.ca> Date: Sun, 29 Sep 2019 08:11:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-CA On 2019-09-29 6:09 a.m., Mikael Magnusson wrote: > > Claiming that completion not completing invalid arguments for your > command is an "issue" seems pretty far fetched to me. If you always > want to complete files, don't run compinit in your startup files. > I appreciate the sophistication of that, but there are times when I really do want to complete on a filename even if it might seem like an invalid argument superficially.  I thought that compinit was the entire completion system!  Commenting it out and restarting, just as you say, I get 'dumb' file completions just as wanted.  Can we have it both ways?  That is, tweak compinit so that perhaps on a final press of the TAB key it  will fall back to dumb file completion even if a kosher match has not been found?  Or some sort of temporary fallback to dumb completion?  Most of the time it seems that file completion is all that's happening and anyway this sort of issue is very rare here, but short of restarting it would be nice to have dumb completion 'override' when wanted.  Perhaps if a final press of TAB was used then instead of this: Completing package ... we'd see: Fallback to completing file ... or something like that. I looked at zcompdump and there's nothing in there that looks promising.  I know that completion is the most inscrutable part of zsh, so I won't even attempt to understand it, and any tweak will be taken without question and on authority.  Or is there an approachable document?  Or some workaround?