Ignore html files when adding links #667
-
|
Hi, I use Denote to organise files and often export org-mode or markdown to html. Either to read them more easily, or to send to people. So, my Denote directory contains a lot of html files which only differ in the extension. This causes problems with the Denote links, which are only looking at the ID and don't work when multiple files share that ID. Is there a way to make Denote ignore certain filetypes? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hello @TS-CUBED! Try this: ;; Exclude all files that have a literal dot followed by "html".
(setq denote-excluded-files-regexp "\\.html")
;; Another example for more exclusions:
(setq denote-excluded-files-regexp "\\.\\(html\\|xml\\|json\\)") |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, that works perfectly. Did I miss that in the documentation? Apologies if I did. |
Beta Was this translation helpful? Give feedback.
Hello @TS-CUBED!
Try this: