branch: externals/denote commit d57ff29c3b37dc856efe46065fbf16eb72dcc2e9 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add denote--file-regexp --- denote.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/denote.el b/denote.el index 2361fb6275..44c1e0a4e4 100644 --- a/denote.el +++ b/denote.el @@ -93,6 +93,10 @@ If nil, show the keywords in their given order." (defconst denote--keyword-regexp "\\(--\\)\\([0-9A-Za-z_+]*\\)\\(--\\)" "Regular expression to match `denote-keywords'.") +(defconst denote--file-regexp + (concat denote--id-regexp denote--keyword-regexp "\\(.*\\)\\.org") + "Regular expression to match file names from `denote-new-note'.") + (defconst denote--punctuation-regexp "[][{}!@#$%^&*()_=+'\"?,.\|;:~`‘’“”]*" "Regular expression of punctionation that should be removed.")