Better regex for generating custom org IDs

This commit is contained in:
Lucien Cartier-Tilet 2020-07-11 18:06:35 +02:00
parent 2885e1da34
commit 0f9975a7bf
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -2279,7 +2279,7 @@
(org-with-point-at pom
(let* ((orgpath (mapconcat #'identity (org-get-outline-path) "-"))
(heading (replace-regexp-in-string
"/" "-"
"/\\|~" ""
(replace-regexp-in-string
" " "_" (if (string= orgpath "")
(org-get-heading t t t t)