New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: counsel-recentf with files ordered by last visible #1560
Comments
This sounds more like a feature request for So I suggest to open a feature request for If getting things done in the Emacs core seems too slow, you could also set up a new package on MELPA, e.g. |
For posterity, this has been submitted as bug#31385. |
@basil-conto thanks for submitting this. Did you ever see any progress in that recentf bug, or find a workaround? I have been wondering about this behavior myself recently. |
@zzamboni No, sorry. I have not followed up on it because I do not use |
@wolfv6 @zzamboni The following works well for me.
cf. https://tsuu32.hatenablog.com/entry/2019/12/16/124052 (in Japanese) |
@tau3000 thanks for the tip! Works well for me too. I've added this to my config: https://github.com/zzamboni/dot-doom/blob/master/doom.org#miscellaneous-keybindings |
Currently counsel-recentf lists file history in minibuffer in the order they where opened.
There is a more human friendly way to list file history.
Instead of listing files in the order they were opened, list files in the order they were last visible.
This is more human friendly because it is how human memory works.
I remember when I was last looking at something (not when I opened it).
So when I think, "I was just looking at such-and-such. What file was that in?", I find the file listed near the top of the minibuffer.
Here is a more detailed description:
List currently-visible files at the top of minibuffer.
Below currently-visible files, list file history in the order that they where last visible.
Every time a file disappears from view, it is moved to just below currently-visible files.
Use cases:
Example minibuffer counsel-recentflv with 2 windows currently open:
This might be relevant.
https://www.emacswiki.org/emacs/RecentFiles mentions recentf variables:
file-was-visible-p
keep-default-and-visible-recentf-p
keep-default-and-visible-recentf-p
The text was updated successfully, but these errors were encountered: