From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rahguzar Newsgroups: gmane.emacs.devel Subject: Re: Q: Is there a built-in way to read multiple file names? Date: Sat, 13 Jul 2024 18:28:31 +0200 Message-ID: <87r0bxqms0.fsf@zohomail.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8306"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 29.4 Cc: Thierry Volpiatto , Eli Zaretskii , 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 Sat Jul 13 19:38:13 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 1sSghI-0001r6-OT for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Jul 2024 19:38:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSggb-0001D7-QT; Sat, 13 Jul 2024 13:37:29 -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 1sSfc2-0006rh-AC for emacs-devel@gnu.org; Sat, 13 Jul 2024 12:28:42 -0400 Original-Received: from sender-pp-o91.zoho.eu ([136.143.169.91]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSfc0-00059U-32; Sat, 13 Jul 2024 12:28:42 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1720888114; cv=none; d=zohomail.eu; s=zohoarc; b=kppo/ITFG7CNoBVRD2xwEfdtw8389qKA5+eZGiq4Ez4/stIjC+NB1L4IWhS7V9jtGtMzJ+91U/xo+xl4BaPykO6HFDVadgziCqHh8cCAquHFArm270s3pAgzAI4NQEhEqiKHqzB0XW+0XiE55CXTsI41nmzQqPXUrZ6FZouNSkY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1720888114; h=Content-Type:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=TdS90iqGvCaY/qa+LcfOo/wdQjOE3YImyqxf9ql2oy8=; b=EurJwGnmz1nj2je4etOREfXSuMmWRDQqIO4qiSMgNSoGuRSJvKCdIRiMagFhLqElQ8NThQq0gVWeFXYF11pamuj1Z4bHKrXmU18/5TgynFdyIXHgtwrLUY+fCErYOJXW76MIUgSlwpRYLf54XAjCxpcsAmOYwU0VwoQ8yuBVHog= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1720888113; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=TdS90iqGvCaY/qa+LcfOo/wdQjOE3YImyqxf9ql2oy8=; b=ar2o1/U2kEF9MHeHRS1fgJvShpdpENKZHBQUPKovaXlxg9d+UlsoTM3mcupZafEk Ua9RhJcrFhhG3NBq1jSj6LM9j/9Nr7Da4d4GguiniMiHRFCjFyRQejJSi0A1Bfc4KPr yg+P69qM6HSragEwasirJhEB9easJUEjx/La4UkY= Original-Received: by mx.zoho.eu with SMTPS id 1720888112679500.3866986394372; Sat, 13 Jul 2024 18:28:32 +0200 (CEST) X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.169.91; envelope-from=rahguzar@zohomail.eu; helo=sender-pp-o91.zoho.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 13 Jul 2024 13:37:27 -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:321616 Archived-At: > Sure, but I want the same thing to work for non-helm users. > Preferably, without having to write helm-specific/ivy-specific/etc code. If you want a mostly completing-read interface for this task, maybe the function filechooser-read-file-names [1] from my GNU ELPA package filechooser can help you. It uses a group-function to distinguish selected files from the rest. It works pretty well with vertico but I think should work with any UI which supports group-function well. It is entangled with some details of the package so probably not directly useful but I think adapting to an API similar to read-file-name is not too hard and hopefully can help with something similar to serve Org's needs. There is also filechooser-dired for a dired based take. [1] https://codeberg.org/rahguzar/filechooser/src/commit/62a9ef588331b06c818ea5db5a73e756f20fd13d/filechooser.el#L379 Rahguzar