Just a quick one.

Often it seems I need a copy of a list of files / directories in plaintext without any gubbins such as a path, permissions, date and allthose shenanigans, basically basenaming; for example:

So how can I achieve this in emacs? I would really prefer to usedired somehow rather than shell / ls (which was my first thought)

Below is my typical dired listing:

drwxr-xr-x 4 4.0K Jan 15 19:35 Backupdrwxr-xr-x 3 4.0K Jan 14 19:33 Cameradrwxr-xr-x 22 4.0K Jan 15 19:01 content-rw-r--r-- 1 65 Dec 31 16:34 .directory

Rectangle marking first came to mind but the paste seems to have aweird format and strangely inserts the text.

So I came up with the following process:

In dired, select ’(’ dired-hide-details-mode which toggles offall the details and gives:

BackupCameracontent.directory

This looks very promising and surely a simple M-w (kill-ring-save)will work?. It doesn’t work. It still copies the full details :(

However if org-copy-visible is used it does the same as in org mode inthat it only copies the visible parts of the region. I had no ideathat functions from one mode can be used in another!