(feat): allow special 'ignore key in capture template (#1701)

Allow 'ignore as a valid value in place of function
This commit is contained in:
Jethro Kuan
2021-07-28 20:17:59 +08:00
committed by GitHub
parent 1848ca2495
commit 0c24540639

View File

@ -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