I have an org file and buffer named test.org that contains this line:
[[https://en.wikipedia.org/wiki/Emacs#/media/File:Emacs_Dired_buffers.png][myimg]]
I want to put my cursor/point somewhere on this link and then run a function that downloads this png file and adjusts the link to something like this
[[file:img/Emacs_Dired_buffers.png][myimg]]
I use img/ because I prefer relative paths. So I'd like to download the picture to a subfolder which is in the same folder as my org file.
At the moment I can't find a solution.