Hi Gustav, I played a bit with your proposition. I like it; in particular the completion function to insert links from the attachment directory with
C-c C-l attached RET It seems natural to me to have a more specific link type for attached files. In my opinion your patch should be applied to the 'next' branch. My 2ct, Marco