Skip to content

Conversation

jfaz1
Copy link
Contributor

@jfaz1 jfaz1 commented Jul 29, 2024

I'm working on a dashboard similar to emacs-dashboard and I needed some form of recent file history. This PR:

  • Adds an optional limit to history
  • Adds a find-file-history command that displays the last 10 accessed files
  • Binds it to C-x C-h

@jfaz1 jfaz1 requested a review from vindarel July 29, 2024 17:48
@vindarel vindarel requested a review from cxxxr July 29, 2024 20:18
@vindarel
Copy link
Collaborator

nice addition : )

maybe a history of 10 by default is small? But I didn't try, usage will tell.

@jfaz1
Copy link
Contributor Author

jfaz1 commented Jul 29, 2024

maybe a history of 10 by default is small? But I didn't try, usage will tell.

Maybe. I started at 20 and tried some values, at the end I think it should probably just fit without scrolling by default, I don't think most using the feature are gonna try finding a file they accessed >20 opens ago probably.

@cxxxr
Copy link
Member

cxxxr commented Jul 29, 2024

It's great!

@cxxxr cxxxr merged commit b2eeea0 into lem-project:main Jul 29, 2024
2 checks passed
@cxxxr
Copy link
Member

cxxxr commented Jul 29, 2024

I think it would be good to integrate this with find-file (like readline's isearch or modern editors).

@jfaz1 jfaz1 deleted the recent branch July 29, 2024 21:18
@daedsidog
Copy link
Contributor

I was really missing this from Emacs. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants