commit 04f2591c850d96a45ceac3420af95944473644d7
parent ceda87e8d432d9425aec89625689976ead303347
Author: Nick Econopouly <wry@mm.st>
Date: Sun, 11 Oct 2020 01:45:02 -0400
Use Anki connect query for tag completion
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/anki-capture.el b/anki-capture.el
@@ -159,7 +159,7 @@ Turning on this mode runs the normal hook `anki-capture-mode-hook'."
nil nil default-deck)
anki-capture-tags
(completing-read-multiple "Choose tags (comma-separated, press TAB to complete): "
- (with-current-buffer storage-buffer (org-get-buffer-tags))
+ (anki-editor-all-tags)
nil nil (mapconcat 'print default-tags ",")))))
;; if the user hasn't set anki-capture-file we have to make sure storage-buffer is in org-mode