dired-hacks icon indicating copy to clipboard operation
dired-hacks copied to clipboard

Is it possible to insert all subtrees recursively?

Open rgrinberg opened this issue 8 years ago • 5 comments

This is the only reason why I still have dired+ installed.

https://emacs.stackexchange.com/questions/27215/insert-all-subdirectories-in-dired

rgrinberg avatar May 27 '17 20:05 rgrinberg

Use dired-subtree-cycle, it will cycle these states:

1) Show subtree
2) Show subtree recursively (if previous command was cycle)
3) Remove subtree

Fuco1 avatar May 28 '17 09:05 Fuco1

That still seems like I have to do it individually on every directory I want to recursively insert

On Sun, May 28, 2017, 5:18 AM Matus Goljer [email protected] wrote:

Use dired-subtree-cycle, it will cycle these states:

  1. Show subtree
  2. Show subtree recursively (if previous command was cycle)
  3. Remove subtree

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Fuco1/dired-hacks/issues/83#issuecomment-304502491, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIe-9EPANPlg_Fvyu7dhHd3xdK6O8kjks5r-TvUgaJpZM4Nod24 .

rgrinberg avatar May 28 '17 16:05 rgrinberg

With point on a directory calling the funciton multiple times cycles these options. Is that not what you want? If so then I don't understand the question.

Fuco1 avatar May 28 '17 16:05 Fuco1

The difference with dired+'s implementation is as follows:

  • If I don't mark anything, it will insert all subdirs of all directories in my current dired view
  • If I have mark some dirs, it will only insert those recursively.

With dired-subtree-cycle, seems like I can only insert things recursively 1 by 1.

rgrinberg avatar May 28 '17 16:05 rgrinberg

I see. I guess we could add this to dired-subtree-insert if you place the point on the . or somewhere.

Fuco1 avatar May 28 '17 16:05 Fuco1