After having used org-agenda just for my todos and scheduled events, I just found out one can use it to search one’s notes too. It works great! With one bad side-effect. I added several org directories using:
(setq org-agenda-text-search-extra-files (directory-files-recursively "~/Writer/" "\\.org$"))
Now, after searching, all the files the agenda had opened to look for my search string have been added to the list of recent files. So (find-file (completing-read "Recent files: " recentf-list))
becomes less useful because it doesn’t show the latest opened files on top of the list anymore, but instead a complete list of all my org-files.
Is there a way to prevent agenda search from caching files into recentf-list?
Thank you very much for any help!