Search code examples
emacsdired

Tell find-name-dired to only show filenames


Is there any way to make find-name-dired to only show filenames that I can move through and select? I have a lot of files that are buried in subdirectories, and I don't want it to print out the entire subdirectory every time it finds a file.


Solution

  • Two problems with this:

    1. How would you distinguish between two files with the same file name in different directories?

    2. Dired needs the full path in order to be able to do anything with that file.

    You could deal with (2) by using text properties or overlays to hide the directories, but due to (1) I really couldn't recommend that.

    Edit: to otherwise customise the output of dired to reduce unwanted noise you can use Dired Details (optionally with Dired Details Plus)