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 1e399136 for ; Fri, 13 Dec 2019 16:00:51 +0000 (UTC) Received: (qmail 10839 invoked by alias); 13 Dec 2019 16:00:44 -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: 24523 Received: (qmail 14271 invoked by uid 1010); 13 Dec 2019 16:00:43 -0000 X-Qmail-Scanner-Diagnostics: from mta02.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25656. spamassassin: 3.4.2. Clear:RC:0(24.224.136.13):SA:0(-2.6/5.0):. Processed in 4.508419 secs); 13 Dec 2019 16:00: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.13 as permitted sender) X-Authority-Analysis: v=2.3 cv=XKxOtjpE c=1 sm=1 tr=0 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=-n3ZX4m1Xijj2pAx9r4A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelledgkeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffhvfhfkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecukfhppedvgedrvddtjedrledtrdduleegnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: completion of filenames From: Ray Andrews To: zsh-users@zsh.org References: <1575995450.4447.3.camel@samsung.com> Message-id: Date: Fri, 13 Dec 2019 07:59:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US On 2019-12-10 8:59 a.m., Ray Andrews wrote: > On 2019-12-10 8:30 a.m., Peter Stephenson wrote: >> >> Suffix aliases are already handled.  So if it's a file in the current >> directory, >> you should find typing ./ completes files with a suffix alias >> defined. >> >> pws >> > Doesn't work.  This could be something I've botched up myself. Here's > what I think is relevant: > If no one has any ideas about this, I'm tempted to try to tinker with it myself.  Where is 'expand-or-complete' defined?  The string shows up dozens of times but I can't find the widget definition. Or, isn't there a file somewhere that defines the proper completions for a given command?  Yeah, I saw it once but can't remember where it is.  Anyway, supposing that I hid that file?  If it can't do any of those match-ups between a  command and it's valid completions, might it not just give up and complete the filenames anyway?  Or, just make a sort of 'universal' command or nul command that always completes on filenames.  Dunno,  but it seems that simply bypassing the initial search for a command should be doable.  What I do now is type a one letter command that's a function equivalent to 'edit', then however many letters to start the filename, then hit TAB to complete on filenames, then go to the beginning of the line, erase the single letter command, and voila, I have my completed filename. Perhaps that operation can be made into a widget?  I found a few custom widgets on the web but none that do any such thing, but I'd bet it can be done.  The customizations that are on offer are mind boggling, but in my case it's the simple thing that's hard to do.