Currently counsel-recentf lists file history in minibuffer in the order they where opened.
- if an opened file is not one of the 12 most recent files opened, it is place at the top of history
- if an opened file is one of the 12 most recent files opened, it's place in history remains unchanged
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:
- reference a file often, while editing multiple files in another window
- edit a file often, while referencing multiple files in another window
Example minibuffer counsel-recentflv with 2 windows currently open:
file currently open in window1 (currently open files are ordered as they appear in the frame)
file currently open in window2
file last visible at 3:10 (not-visible files are ordered by times they where last visible)
file last visible at 3:15
file last visible at 3:19
file last visible at 3:30
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
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