From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.devel Subject: Re: Q: Is there a built-in way to read multiple file names? Date: Mon, 15 Jul 2024 19:12:38 +0700 Message-ID: References: <875xthfyz3.fsf@localhost> <87a5it6vr6.fsf@localhost> <86r0c5196r.fsf@gnu.org> <87ttgtpf1k.fsf@localhost> <878qy4jgpn.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40691"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 15 14:24:14 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sTKkY-000AOh-NU for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Jul 2024 14:24:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTKkF-0008Iy-6q; Mon, 15 Jul 2024 08:23:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTKZa-0001xg-R2 for emacs-devel@gnu.org; Mon, 15 Jul 2024 08:12:58 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTKZZ-0004iL-9e for emacs-devel@gnu.org; Mon, 15 Jul 2024 08:12:54 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sTKZV-0004ET-00 for emacs-devel@gnu.org; Mon, 15 Jul 2024 14:12:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Content-Language: en-US, ru-RU In-Reply-To: <878qy4jgpn.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 23 X-Spam_score: 2.3 X-Spam_bar: ++ X-Spam_report: (2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 15 Jul 2024 08:23:53 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321669 Archived-At: On 14/07/2024 19:33, Ihor Radchenko wrote: > Max Nikulin writes: >> tar cvfz f.tar.gz one/two.txt three/four/five.jpg six/seven.org >> >> I would prefer to avoid rambling through directories and marking files >> when I approximately know location of files. I find it convenient to >> type and hit TAB (or C-/ in some cases) to confirm that a file exists. > > Sorry, but I do not understand what you are describing. > Do you mean that you type partial completion, hit TAB, and get _all_ the > matching candidates completed, separated by spaces? Usually it is something like tar cvfz f.tar.gz ontw thfof sse to get arguments in the command above. In most cases I prefer this way, not marking each file and directory view may be distracting (at least til to get list of completions). It is basic completion. Rarely I use M-* insert-completions readline function. >> At first I though that it might be easier to bind to key sequences some >> functions that add/remove current text to/from an externally maintained >> list (perhaps displayed in another buffer) while single item is >> presented in the minibuffer. However is should be a pain when users >> configure their preferred completion frameworks. > > I think that icicles does exactly this. So does > filechooser-read-file-names that Rahguzar shared. I do not mind. The question is how much efforts are necessary for minimal variant without external dependencies.