unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Justin Fields <justinlime1999@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Add file-ring to dired-aux.el
Date: Tue, 22 Oct 2024 21:15:56 +0300	[thread overview]
Message-ID: <86h694dmw3.fsf@mail.linkov.net> (raw)
In-Reply-To: <CAPafesGUrGkk2oaZgVgNtCr+d6WU9BOLzf9THhXuNFvS8TVf5A@mail.gmail.com> (Justin Fields's message of "Mon, 21 Oct 2024 03:11:23 -0500")

> * lisp/dired-aux.el
> (dired-file-ring): New var.
> (dired-file-ring-capture, dired-file-ring-clear)
> (dired-file-ring-move, dired-file-ring-execute)
> (dired-file-ring-copy, dired-file-ring-symlink)
> (dired-file-ring-symlink-relative): New Functions

Thanks, this is a much welcome feature since it adds Dired
operations that are more in line with most file managers.
Let's try to implement the best UI in line with Emacs
conventions.  Currently copying/moving pops up a window
"*Marked Files*" where the user can inspect the list
of files and confirm before starting the process.
Doing the same could be like the following:

1. Copy the file names of marked files with 'w'.
2. In another dired buffer type 'C-y' (yank)
   like suggested by Drew.

Then it could pop up the standard window "*Marked Files*"
and ask for a choice from the list of characters
using 'map-y-or-n-p' or 'read-answer', e.g.:

(read-answer "Choose what to do with marked files "
  '(("copy" ?c "copy")
    ("move" ?r "move")
    ("symlink" ?s "make symlink")
    ("relsymlink" ?y "make relative symlink")))



  parent reply	other threads:[~2024-10-22 18:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-21  8:11 [PATCH] Add file-ring to dired-aux.el Justin Fields
2024-10-21  9:48 ` Eli Zaretskii
2024-10-21 10:14   ` Justin Fields
2024-10-21 10:38     ` Eli Zaretskii
2024-10-21 12:35   ` Michael Heerdegen via Emacs development discussions.
2024-10-22 18:15 ` Juri Linkov [this message]
2024-10-22 18:43   ` Eli Zaretskii
2024-10-23  6:47     ` Justin Fields
2024-10-22 22:24   ` [External] : " Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2024-10-21 15:05 Justin Fields
2024-10-22 15:53 ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h694dmw3.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=emacs-devel@gnu.org \
    --cc=justinlime1999@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).