This only works when you create the attach folder manually, but not when you want org-attach to generate the attach directory for the current node.
If I have to stay with a workaround that covers many scenarios, I would stay with Ihor's snippet, which seems to me simpler than the patch that I suggested before, and you don't need to define new attach commands/methods. I would vote for a patch in that direction (Ihor's code). Best regards, Juan Manuel Christian Barthel writes: > On Thu, Jun 10 2021, Ypo wrote: > >> C-c C-a >> >> s >> >> (not "S" like in the video, but "s") > > Thanks, that is an interesting workaround: > Setting the directory twice and using the copy/delete action > accordingly. > > Does anyone know if there is a workaround to attach a file and > delete the old one (or move the file) or do I need to write a > small elisp function for that?