From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Q: Is there a built-in way to read multiple file names? Date: Tue, 23 Jul 2024 23:02:46 +0700 Message-ID: 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> <86frsaihom.fsf@gnu.org> <878qy2igat.fsf@localhost> <86cyndire5.fsf@gnu.org> <87v80wxsxo.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28744"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Tue Jul 23 18:04:07 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 1sWHzj-0007JF-Ct for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Jul 2024 18:04:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWHz7-00018X-Oc; Tue, 23 Jul 2024 12:03: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 1sWHyi-0000kT-0C for emacs-devel@gnu.org; Tue, 23 Jul 2024 12:03:06 -0400 Original-Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWHyf-0003Bs-FB; Tue, 23 Jul 2024 12:03:03 -0400 Original-Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5c697fc4aa2so3284924eaf.2; Tue, 23 Jul 2024 09:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721750579; x=1722355379; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VIMuHDmsbxpYJh2YaJFsapDJksygtOO4ajZ6TO8cTFI=; b=WEkSVBIRpFR8rVMaZzSmq9YcKNlabyiyjXGBk4ji8erQT0zuhTpOJqkddzDHyRIDnR pgbCBoW2E7tXix9WUs7sdoiZWTSI86hx8lLf7lx9g3hUxtsydMxgqAi9MKwjdtmKxG+F tc0NMuzXAa2aDwjmn834unOgzpfxKCm0cAj8CyW9yyto2Lc1CaobnxQJDMK+f2pY3lgo Ovus2ZCiPZkljYIRaNRFe4xHyHgzqIapw3bW5RUze5VBAY1n0yt5xnMt5tkBzPaaMvAU POFxL0IB2eVjMW1qV1pEs2lfFf9arsW9mvIFQAt2vUcWy6zTeilDEc8NIkXFrs8Xrrlu It8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721750579; x=1722355379; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VIMuHDmsbxpYJh2YaJFsapDJksygtOO4ajZ6TO8cTFI=; b=AlEUlO3Z49IvLiWRu/FeSR2vJ7f7y+1XJ9JqdsJbVDGZXxqI7aEOQyBC7bBmP8svDw IRYTF0zVdpIO3WHv9v90/mWwigC+EFO3StKvS9oXIDQ/ayM8fbCNjda0nipEy1QhI3VI fljJKTnvXXUlvNP5bW0Ijt4n9m+hF8ClFIkD+6diJDtVHzvdN/yyWkhtYxmILiE641Z3 Yl3mzZ+3hi33NUy2jI6v31AWS1qBt80Z4IxyhpDZczcjKZ2I8Kn3ySnQ1Gbyh0KmaJAj xhlh4ddtOBfVkDVt58eMKjVgpU7ufbT1bSNPlfZ9EVi8NcdF/ndb1mgEvIaGk1/eceLa o9Dw== X-Forwarded-Encrypted: i=1; AJvYcCWU3M4yuafw/TMCduOFKy7Rmb4G0RhDhYiVoEhijkjfF8PrvIq0w9ihtXm9WGFF+fHZ/ojV/4KlcNsKQLoAIc3R4bhp X-Gm-Message-State: AOJu0YyWLyCAfM0hnM1rFpvKvLf1XElR4wxJlAoDalKtacmvNdGS/s4C uuTW4PF9jrxGcQAJKFVOpCi24PqErhEpr//r1qxhGaaVoKYAiESBFEUkyzWomakYLmRdltZA1cT +T3/GzYR9XzRPVtm2Y8f+jZ7n2Ng= X-Google-Smtp-Source: AGHT+IFOCjRB+jOaa4wC6UJcAaP9hfwGKCev2DSi45BDT5vEx1TRq+JZEm8cYCgRvRmT+2LX7Z1ADcrvzrcWt+HB7tA= X-Received: by 2002:a05:6358:98a8:b0:19f:4ca6:86c2 with SMTP id e5c5f4694b2df-1acc5c6e3femr1206817855d.25.1721750578677; Tue, 23 Jul 2024 09:02:58 -0700 (PDT) In-Reply-To: <87v80wxsxo.fsf@localhost> Received-SPF: pass client-ip=2607:f8b0:4864:20::c31; envelope-from=yurivkhan@gmail.com; helo=mail-oo1-xc31.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:321996 Archived-At: On Tue, 23 Jul 2024 at 18:12, Ihor Radchenko wrote: > Imagine that a user marks two files: > 1. /home/user/1/2/3/4/5/file1 > 2. /home/user/5/4/3/2/1/file2 > > During step (2), dired will display <...>/5/4/3/2/1/ directory. > > Now, imagine that file1 needs to be unmarked. To do it, the user will > have to go up all the way to /home/user and descent down to 1/2/3/4/5 - > very awkward. And even more awkward if the user does not remember the > full path for file1. It seems to me what you want is a shopping cart UI for files. Use cases: 1. When in a Dired buffer, I want to be able to add one or more files to the cart. 2. When in a Dired buffer containing one or more files that are in the cart, I want to see them as marked. 3. When in a Dired buffer containing one or more files that are in the cart, I want to be able to remove some of them from the cart. 4. At any time, I want to be able to see the list of files in the cart. 5. When in the cart, I want to be able to remove some or all of its files. 6. When in the cart, I want to be able to execute a command that accepts a set of files. Stretch goal: 7. I want to be able to have multiple carts, one of them designated as =E2=80=9Ccurrent=E2=80=9D for purposes of cases 1=E2=80=933. 8. When in the cart, I want to see the total number and/or size and/or disk usage of its files. A cart could be a separate buffer containing full file names, one per line, with embedded newlines suitably escaped.