From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Q: Is there a built-in way to read multiple file names? Date: Mon, 15 Jul 2024 22:22:33 +0300 Message-ID: <86frsaihom.fsf@gnu.org> References: <875xthfyz3.fsf@localhost> <87a5it6vr6.fsf@localhost> <86r0c5196r.fsf@gnu.org> <877cdx6ryu.fsf@localhost> <86o77914sh.fsf@gnu.org> <874j916qlv.fsf@localhost> <86ikxh13yc.fsf@gnu.org> <87zfqlpfty.fsf@localhost> <86jzhpjt4x.fsf@gnu.org> <87r0bxpecj.fsf@localhost> <86ikx9jrh4.fsf@gnu.org> <87frscjhhm.fsf@localhost> <8634ocjeze.fsf@gnu.org> <87r0buij3j.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17599"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mardani29@yahoo.es, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 15 21:23:24 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 1sTRIB-0004M5-E1 for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Jul 2024 21:23:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTRHS-000331-Rk; Mon, 15 Jul 2024 15:22:38 -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 1sTRHQ-00032p-RW for emacs-devel@gnu.org; Mon, 15 Jul 2024 15:22:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTRHQ-0000gv-8X; Mon, 15 Jul 2024 15:22:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2ACg4k9VaNVSlTVUSGfXX/HIhJaddNJKBCbY8HHWI68=; b=lAhr+XXO5X9E P++HbYPsZY4U+ctmgTJTd0PzZfDPKvyCXYNdP2f81vZyw+CBZFZqwBRzIvE4RfMOEhmwVQEcuhnIG MlVSLkMW3Qx+DxVovxjDTkhk1H3RwjOfUU+gVVsLq1SWwjgxxPrQdE5a3G6zsUaGVtRopPYWmpgoi HwEzkjQoeFG0TNRMmRnS90p0h6S5AEoKs0iGEtojk1OEvA7vy8Oc4y4Ln4XDPy1ZoltYjUQDzQVMq RPStfipLU+CK4YLt7XFsmBYwejLk0GZp81rPKR5Z65ER5x8yIsbel8MOElsINa1YkBo2CaSP10Sja nv4AnGjqdCd/7zpj+7CZeQ==; In-Reply-To: <87r0buij3j.fsf@localhost> (message from Ihor Radchenko on Mon, 15 Jul 2024 18:52:00 +0000) 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:321676 Archived-At: > From: Ihor Radchenko > Cc: mardani29@yahoo.es, emacs-devel@gnu.org > Date: Mon, 15 Jul 2024 18:52:00 +0000 > > Eli Zaretskii writes: > > 3. What does not seem to be trivial is selecting multiple files residing > in different folders. What do you think should be done to dired to > get this? Why do you need to change anything? It should be possible to mark some files, then go to a different directory and mark some more files, etc. When the user eventually types "C-c C-c", the list of all the selected files in all the directories is returned to the caller. An alternative could be for the user to insert another directory into the buffer, like 'i' in Dired does. > I am thinking about something similar to my previous ideas - having a > separate section in dired buffer that lists marked files. > > -------------- dired-select ------------------- > [ Selected files ] > * -rw-r--r-- 1 yantar92 1.2M Jul 6 15:31 xdisp.c (from Git/emacs/src/) > * -rw-r--r-- 1 yantar92 2.5K May 3 15:24 local.mk (from Git/org-mode) > * -rw-r--r-- 1 yantar92 3.8K Jul 13 18:16 Makefile (from Git/org-mode) > [ Dir ] > /home/yantar92/Git/org-mode: > drwxr-xr-x 3 yantar92 4.0K Jul 15 09:48 doc > drwxr-xr-x 5 yantar92 4.0K Jul 15 09:06 etc > drwxr-xr-x 2 yantar92 20K Jul 15 16:30 lisp > drwxr-xr-x 2 yantar92 4.0K Jul 13 18:16 mk > drwxr-xr-x 2 yantar92 4.0K Jun 12 2022 paches > drwxr-xr-x 5 yantar92 4.0K Jul 15 10:45 testing > -rw-r--r-- 1 yantar92 936 Jun 25 10:22 CONTRIBUTE.org > -rw-r--r-- 1 yantar92 1.9K Jun 25 10:22 README.org > -rw-r--r-- 1 yantar92 35K Jun 25 10:22 COPYING > * -rw-r--r-- 1 yantar92 2.5K May 3 15:24 local.mk > * -rw-r--r-- 1 yantar92 3.8K Jul 13 18:16 Makefile This has two disadvantages: . if there are many files, moving too far down will scroll the selected files out of view . it is unusual, and so at least some users will be confused > > Files that have common names are usually listed together, so I don't > > think this problem is as serious as you describe it. A useful feature > > for selecting files is, when the user types a characters, to move > > point the first file whose name begins with that character. If we > > implement that, you get the best of all worlds. > > Why only to file that _begins_ with a character? Why not also moving to > a file that have specific work in its name? regexp? Because it is unusual and idiosyncratic. By contrast, what I describe exists in many selection dialogs, and so will be familiar. But if you want to have selection based on regexps, then Dired has the "% m REGEXP" command. So this, too, is already available.