abo-abo / org-download

Drag and drop images to Emacs org-mode
1.08k stars 79 forks source link

clipboard to nested subdirectories #166

Open fab6 opened 3 years ago

fab6 commented 3 years ago

Hi,

I am looking for a way to have a nested image directory up to level 3 when creating screenshots

* Le1
** Le2
pic12
** Le3
pic123

and combine it with

 -*- mode: Org; org-download-image-dir: "./img/direname"; -*-

i.e. the path for pic12 should be something like

./img/direname/Le1/Le2/pic12_date.png

and for pic123 something like

./img/direname/Le1/Le2/Le3/pic123_date.png

Is this possible? Using (setq-default org-download-heading-lvl 3) does not provide the levels above... it seems.

Thanks in avdance!

fab6 commented 3 years ago

it would be fine to have something like this

./img/direname/Le1_Le2_pic12_date.png

or even

./img/direname_Le1_Le2_pic12_date.png