(feat): Cache template variable entry (#387)
Addresses https://github.com/jethrokuan/org-roam/issues/285#issuecomment-606724827
This commit is contained in:
parent
f27e5f2384
commit
48ccb084f0
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ the file if the original value of :no-save is not t and
|
|||
(s-format (org-capture-get :template)
|
||||
(lambda (key)
|
||||
(or (s--aget org-roam-capture--info key)
|
||||
(completing-read (format "%s: " key ) nil))) nil)))
|
||||
(when-let ((v (completing-read (format "%s: " key ) nil)))
|
||||
(push (cons key v) org-roam-capture--info)
|
||||
v))) nil)))
|
||||
|
||||
(defalias 'org-roam--capture-get-point 'org-roam-capture--get-point)
|
||||
(make-obsolete 'org-roam--capture-get-point 'org-roam-capture--get-point "2020/03/29")
|
||||
|
|
Loading…
Reference in a new issue