From 0c2454063939fdf75320cd0ed9ce494e46967ad6 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Wed, 28 Jul 2021 20:17:59 +0800 Subject: [PATCH] (feat): allow special 'ignore key in capture template (#1701) Allow 'ignore as a valid value in place of function --- org-roam-capture.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org-roam-capture.el b/org-roam-capture.el index 48f5fc0..0c66f12 100644 --- a/org-roam-capture.el +++ b/org-roam-capture.el @@ -767,7 +767,9 @@ properties to be added to the template." (pcase template (`(,_key ,_desc) template) - (`(,key ,desc ,type ,body . ,rest) + ((or `(,key ,desc ,type ignore ,body . ,rest) + `(,key ,desc ,type (function ignore) ,body . ,rest) + `(,key ,desc ,type ,body . ,rest)) (setq rest (append rest props)) (let (org-roam-plist options) (while rest