reddit / emacs

Caching Yankpad snippets for a quicker note capturing

AndreaSomePostfix · 2022-08-21 17:01
Kribbstar · 2022-08-22 16:30
Didn't "yankpad--active-snippets" work for you?
AndreaSomePostfix · 2022-08-22 21:57
I don't think so, because \`yankpad--snippets\` was called every time. Ah I see: it is because of this code here: [https://github.com/ag91/ya-org-capture/blob/master/ya-org-capture.el#L100](https://github.com/ag91/ya-org-capture/blob/master/ya-org-capture.el#L100) \`yankpad-set-local-category\` empties \`yankpad--active-snippets\` :P The issue is pretty unique to me then! Although \`yankpad-set-local-category\` seems part of the public API, so it is possible to fall into that issue.