Matus Goljer (Fuco1), whose work I’ve written about many times before, has an interesting post on his use of org-attach. The point of the post is a way of automating the finding of the Org headline that points to an attached file. Normally, that’s not a problem because you’re starting with the Org file but occasionally you search for the attached file directly outside of Org and want to find the Org entry that points to it.
To me, the part of the post that resonated the most was that org-attach
provides a way of avoiding the agonizing decision making that goes into deciding where to store documents in the file hierarchy. In that respect, it sort of reminds me of my email strategy. Following Ben Maughan, I store all my saved emails in a single flat file and use the excellent mu4e search capability to find them. It really is far superior to trying to figure out where in a complex file hierarchy the email belongs.
The same is true in storing a file related to an Org file heading. Rather than trying to figure out the proper place to store it, you simply let Org worry about where it is and use Org’s search and linking capabilities to find it.
Goljer’s post is short and worth a read. It’s another example of how Emacs and Org mode can make your life easier.