Closed qingshuizheng closed 7 months ago
BTW, I find another brainless typo in the following line, could you hot fix it: "latest created" -> "latest captured" ?
https://github.com/ahyatt/ekg/blob/e139a3304fe65698b72c4e503e9e5bc2cfa995fe/ekg.el#L1607
Thanks for noting this (especially before the release). It's a serious problem. I think a variable to disable making automatic tags on save is a good thing. We can maybe also detect whether we are in an org-mode block, in which case nothing should be done. Or, perhaps we can change the way tags are written to be less common, perhaps merging with the inline command logic. I'll consider all these things and fix this.
I've added a few fixes that should resolve this (mostly). Please try it out and see how it works for you.
This works well. Will report back if there are more caveats. Thanks for the fix!
I haven't really looked into the code of inline-tags yet, some unwanted inline-tags is starting to bugging me already. They are collected quite unexpectedly (see screenshot 1) and I am expecting more to come.
There are 3 solutions I can think of:
org-in-src-block-p
, if t, don't collect this part.Another issue is, if you open a trashed note with inline-tags, then close it with "C-c C-c", the note will be tagged with a mix trashed tags and non-trashed tags (see screenshot 2). This trashed note cannot be deleted by
ekg-notes-trash
any more, and this note will appear both in the regular notes buffer (e.g.,latest-modified-notes) and the trashed notes buffer.