I use helm-recentf to receive the list of recent files.
I would like to have an opportunity to search over the list of recently viewed files. Can I do it with grep or helm-swoop? Is there any other way?

Lets say I have the list of recent files, and I want to find all occurrences of blah in all recent files. How would I do this?

  • You can search the list using the helm-recentf command, so I'm not sure I understand what you're trying to do here. – jagrg Apr 14 '19 at 1:05
  • You can also grep those files with helm-recentf, but you have to mark the files you want to search by pressing M-a to mark all files or C-SPC to mark them individually. With the files marked, press TAB to toggle the menu, choose the option "Grep Files" and enter your input. – jagrg Apr 14 '19 at 13:24
  • Thank you. It works with C-SPC but not with M-a, it seems that M-a works only for buffers. How can I mark all the files in helm-recentf? – Pfedj Apr 14 '19 at 14:21
  • You're probably trying to do this from helm-mini, in which case there's an extra step: 1. M-x helm-mini 2. C-o 3. M-a. Otherwise, 1. M-x helm-recentf 2. M-a is all you need. – jagrg Apr 14 '19 at 16:38
  • This decision works only for buffers in M-x helm-mini. 1. M-x helm-mini 2. C-o 3. M-a -> only files in Buffers are marked. Otherwise, 1. M-x helm-recentf 2. M-a -> M-a is undefined. I try to comment all packages in my init file except for helm, but before mentioned issue repeats. – Pfedj Apr 14 '19 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.