You might want to try Dired+. It offers these commands for use with recentf:
C-x D r
C-x 4 D r
C-x D R
C-x 4 D R
diredp-dired-recent-dirs should do what I think you're looking for:
diredp-dired-recent-dirs is an interactive compiled Lisp function in
It is bound to
menu-bar subdir diredp-dired-recent-dirs,
C-x D r.
(diredp-dired-recent-dirs BUFFER &optional ARG FILES)
Open Dired in
BUFFER, showing recently visited directories.
diredp-dired-recent-files, but limited to recent directories.
A directory is recent if any of its files is recent.
The doc of
diredp-dired-recent-files, which the above refers to, tells you about using a prefix arg. Note that
0 as prefix arg prompts you for the
ls switches to use, and you can specify chronological order with the switches (e.g. switch
You can also just use option
diredp-default-sort-arbitrary-function to sort the entries however you want.
diredp-dired-recent-files is an interactive compiled Lisp function in
It is bound to
C-x D R.
(diredp-dired-recent-files BUFFER &optional ARG FILES)
Open Dired in BUFFER, showing recently visited files and directories.
You are prompted for
Recently Visited Files).
With a numeric prefix arg you can enter names of recent files to
include or exclude.
No prefix arg or a plain prefix arg (
C-u C-u, etc.) means
list all of the recently used files.
With a prefix arg:
- If 0,
-, or plain (
C-u) then you are prompted for the
switches to use.
- If not plain (
- If >= 0 then the files to include are read, one by one.
- If < 0 then the files to exclude are read, one by one.
When entering files to include or exclude, use
C-g to end.
The file listing is sorted by option
diredp-default-sort-arbitrary-function, if non-
default) then the listing is in reverse chronological order of opening
or writing files you access.
g to revert the buffer, as usual. If you use it without a
prefix arg then the same files are relisted. A prefix arg is handled
C-x D R itself.
When called from Lisp:
ARG corresponds to the raw prefix arg.
FILES is passed to
diredp--dired-recent-files-1. It is used only
when the command is used as part of the