Replies: 4 comments 4 replies
-
|
That's great! I've also thought about having tag completion, which would help, and at the end of the completion you could add it to the tags. You might need both, though, because if you don't use completion we wouldn't detect you added it. One thing that worries me is that you can change remove a tag in the text when editing an existing note, and tags you previously had because of that text wouldn't be removed. Maybe it's not such a big deal, though. |
Beta Was this translation helpful? Give feedback.
-
|
I've taken a different approach to this in the |
Beta Was this translation helpful? Give feedback.
-
|
I just tried this branch. It works well for existing tags, but it didn't seem to add #newtags (new inline tags) when I added them #inline like that, even if I triggered completion after typing them (naturally it says no completion found), unless I enable my save-hook above. I'm using |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this is a good point. I'm not able to get new tags to work either. Perhaps a combination of both would be good - I like the idea of being able to complete tags. One question, though, since tags can have spaces in ekg, we wouldn't know by default when a tag has finished. Your solution works for single word tags, and maybe that's the best we can do if we have to detect tags, or maybe we can select something like "#[multiple world tag]". Another variation I'd like to think about: maybe instead of using completion we can have a command that will look for text between "#" and the point, and insert that as a tag in the note. Let me play around with these approaches and see what might work well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Coming from logseq, I expect to be able to just type #tags anywhere in the #ekg note body. So I wrote a before-save hook to extract all such tags from the body and add them to the tags list. Here it is, in case you want something similar.
(Extra credit if you can figure out why the
(setf ...)form doesn't work in here!)Beta Was this translation helpful? Give feedback.
All reactions