abo-abo / org-download

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

org-download-heading-lvl with German umlaut #176

Open fab6 opened 3 years ago

fab6 commented 3 years ago

Hi,

I am using these settings to get screenshots into directories fitting to the header title:

(setq org-download-method 'directory)
(setq-default org-download-image-dir "./img")
(setq-default org-download-heading-lvl 1)

This works quite good! As I am writing often in German it happens that I have German umlaute in the title. This creates the screenshot and puts it in the correct directory, but I am not able to preview it, e.g. like here

image

image

When I change the umlaut ü to ue the preview works good again. image image

Is there an option which automatically replaces the different umlaute (ü,ä, ö) before saving? Or do you have some other hint for this?

Thanks!