[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: [PATCH] Add file-ring to dired-aux.el
From: |
Eshel Yaron |
Subject: |
Re: [External] : Re: [PATCH] Add file-ring to dired-aux.el |
Date: |
Sat, 26 Oct 2024 09:02:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi,
Drew Adams <drew.adams@oracle.com> writes:
>> 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.
>
> `C-y' in Dired+ also lets you (with a prefix arg) copy
> the files to any directory, whether or not it has a
> Dired buffer. There's no need limit the use of such
> a file-name list to Dired.
>
> And `C-w' in Dired+ moves, instead of copies, the files
> whose names you copied with `w'. Again, you can use a
> prefix arg to move the files to any directory - the
> command isn't limited to use in Dired.
>
>> 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")))
>
> Dired+ doesn't have anything particular for symlinking
> the copied file names.
>
> If you do that, I suggest you do as I did for copy/move:
> let users optionally specify a target directory with
> completion, and perform the action even outside of Dired.
FWIW, I found these ideas and the discussion so far really interesting.
I'm experimenting with an implementation of this concept that uses a
transient menu to both let you choose an action (copy/move/...) and show
you which files you're about to act on. As a bonus, this also lets you
choose other files to act on or a different target directory.
I'm attaching my current implementation for reference if anybody's
interested, as well as a screenshot of the menu that you get by copying
some file names in one directory and then invoking a command in another.
Best,
Eshel
filet.png
Description: PNG image
filet.el
Description: application/emacs-lisp
Re: [PATCH] Add file-ring to dired-aux.el, Juri Linkov, 2024/10/22
Re: [PATCH] Add file-ring to dired-aux.el, Justin Fields, 2024/10/21