[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Keyboard commands for editing recentf buffer?

From: Drew Adams
Subject: RE: Keyboard commands for editing recentf buffer?
Date: Wed, 13 Jan 2010 17:14:33 -0800

> Does anyone know of a way to edit the recentf files in the buffer
> directly? What I'm hoping for is way to:
> Mark files
> Unmark files
> Delete files that I don't want to be kept in history
> Sort by recency, filename, path

Dunno what you mean by "files in the buffer" (what buffer?).

But with Icicles you can sort, (un)mark, and delete files whenever you use a
command that completes a file name. And you can remove file names from the
`file-name-history' or the `recentf-list', individually or by groups.

For recentf files, you can do all of this when you use multi-command
`icicle-recent-file(-other-window)'. More generally, for any files (recent or
not), you can do it when you use any file-access multi-command (e.g. `C-x C-f' =

* You can *delete* the file named by the current completion candidate using
`S-delete'. Cycle to delete as many files as you like.

But did you really mean *delete* the _file_?

If you meant only to remove a file name from the `recentf-list', then you can do
that by using `C-S-RET' when you use command
`icicle-recent-file(-other-window)'. That removes the current completion
candidate from the `recentf-list' - cycle among candidates to remove multiple
files. Or use `C-|' to remove all file names that match your input in the

* You can also clean up any input history, including `file-name-history', in a
couple of ways.

** When you cycle through the minibuffer history (as usual), `M-k' deletes the
current entry (e.g. a file name) from the current history (e.g.

** `M-i' in the minibuffer prompts you for matching history entries to remove.
Entries matching your current input are candidates for removal. `C-!' removes
all such matches; `C-RET' or `C-mouse-2' removes a specific candidate. `C-u M-i'
clears the current history completely (without prompting).

Command `M-x icicle-clear-history' prompts you for a history to clean up (e.g.
`file-name-history'); then it behaves the same as `M-i', letting you choose
entries to remove.

* You can cycle among available sort orders using `C-,' during completion.

* You can mark/unmark files that are completion candidates. I call it saving a
set of completion candidates (e.g. for later use during file-name completion).

[Except for the specific behavior of `C-S-RET' and `C-|' for
`icicle-recent-file(-other-window)', all of these things are general - you can
use them with completion of any kind, not just file-name completion. You can use
`M-k' during `M-x' to remove commands from the command history; you can save
("mark") a set of variable names during `C-h v', and so on.]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]