3 ms·
My Emacs takes ages to start but for a reason. It takes most of the time to automatically load every file I've ever edited into a buffer. Finding the right buff
by jonathanstrange 4y ago
My Emacs takes ages to start but for a reason. It takes most of the time to automatically load every file I've ever edited into a buffer. Finding the right buffer is much faster for me than navigating the filesystem, and whenever I use bookmarks they're outdated too quickly or I can't remember them. I guess my habit is the equivalent of piling papers on a desk.
- OskarS 4y agoI just use recentf for that. My buffer list contains everything in the recentf (this works with buffer list replacements from both Helm and Ivy). Makes it trivial to open up any file I've had open before. Opening all buffers you've ever edited sounds nuts to me. What if one of the files you edited was a 10 gb log file or whatever?
- zeendo 4y agoI like this approach and almost considered doing it after reading this - or probably only opening the last few hundred files - but then I realized that the recent file list probably gets me 99% of the way there. Is there anything you get by opening the files that you wouldn't get by opening files from the recent file list instead?
- stjohnswarts 4y agowell I usually have trouble remembering the exact name of the file I was editing 2 months ago? :) . Now if there is a plugin to have rg look through the last few hundred files that I've edited that would be a game changer.
- watrup 4y agoI have something very much like this, a trivial addition to find-file. Typing C-u C-x C-f shows the recently edited filenames (with paths), and vertico + orderless makes it a joy to instantly pick the specific recent file. I get the same UI with regular find-file (C-x C-f), so the two bindings live harmoniously in my brain and fingers. (defun MY-consult-find-file (arg) "If no prefix: find-file, otherwise consult-recentf." (interactive "p") (let* ((filename (if (eq arg 1) (call-interactively 'find-file) (call-interactively 'consult-recent-file))) ))) (global-set-key (kbd "C-x C-f") 'MY-consult-find-file) Before switching to vertico/orderless, I used ivy with essentially the same machinery. That worked great too.
- thom 4y agoI find 'ido-use-virtual-buffers' a much more lightweight way of achieving this, FWIW. I'm sure similar features are available for Ido alternatives.