[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add file-ring to dired-aux.el
From: |
Juri Linkov |
Subject: |
Re: [PATCH] Add file-ring to dired-aux.el |
Date: |
Tue, 22 Oct 2024 21:15:56 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) |
> * 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")))
Re: [PATCH] Add file-ring to dired-aux.el,
Juri Linkov <=