[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : bmenu for recentf (or abstracting-away bmenu)
From: |
Drew Adams |
Subject: |
RE: [External] : bmenu for recentf (or abstracting-away bmenu) |
Date: |
Thu, 16 Nov 2023 16:46:59 +0000 |
> I want to have a buffer-menu for recent files,
> in a way similar to bookmarks.
Not sure just what you mean by a buffer menu for
recent files, similar to bookmarks.
But if you use Dired+ then you have these commands,
which give you Dired listings of recent files and
directories: `diredp-dired-recent-files' and
`diredp-dired-recent-dirs'.
You can optionally add other files/dirs to such a
listing, and optionally exclude files/dirs from it.
___
C-x D R runs the command diredp-dired-recent-files,
which is an interactive compiled Lisp function in
'dired+.el'.
It is bound to menu-bar subdir diredp-dired-recent-files, C-x D R.
(diredp-dired-recent-files BUFFER &optional ARG)
Open Dired in BUFFER, showing recently visited files and directories.
You are prompted for BUFFER (default: `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 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 `ls'
switches to use.
* If not plain (`C-u') then:
* 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-nil. If nil (the
default) then the listing is in reverse chronological order of opening
or writing files you access.
Use `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
as for `C-x D R itself.
When called from Lisp, ARG corresponds to the raw prefix arg.
___
C-x D r runs the command diredp-dired-recent-dirs,
which is an interactive compiled Lisp function in
'dired+.el'.
It is bound to menu-bar subdir diredp-dired-recent-dirs, C-x D r.
(diredp-dired-recent-dirs BUFFER &optional ARG)
Open Dired in BUFFER, showing recently visited directories.
Like `diredp-dired-recent-files', but limited to recent directories.
A directory is recent if any of its files is recent.
___
You can sort such a listing in various ways, but you
need to use `C-M-L' (aka `C-M-S-l') to do so - you can't
use the ordinary Dired sort commands, such as `s'.
You're prompted for the sort order for such buffers:
* Last-access order, most recent first (default)
* Last-access order, least recent first
* A-Z (alphabetical), by last part of file/dir name
* A-Z, by full file/dir name
* Z-A, by last part of name
* Z-A, by full name
The default sort order is determined by option
`diredp-default-sort-arbitrary-function'. It
defaults to most recent first.
___
https://www.emacswiki.org/emacs/DiredPlus
https://www.emacswiki.org/emacs/download/dired%2b.el