From: Drew Adams <drew.adams@oracle.com>
To: Lockywolf
<for_help-gnu-emacs_at_gnu_org_2023-11-16@lockywolf.net>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : bmenu for recentf (or abstracting-away bmenu)
Date: Thu, 16 Nov 2023 16:46:59 +0000 [thread overview]
Message-ID: <SJ0PR10MB54886156287FDF2C7517C725F3B0A@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87pm0afkr5.fsf@laptop.lockywolf.net>
> 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
prev parent reply other threads:[~2023-11-16 16:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-16 3:13 bmenu for recentf (or abstracting-away bmenu) Lockywolf
2023-11-16 7:03 ` Yuri Khan
2023-11-16 16:46 ` Drew Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SJ0PR10MB54886156287FDF2C7517C725F3B0A@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=for_help-gnu-emacs_at_gnu_org_2023-11-16@lockywolf.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).