artempyanykh / marksman

Write Markdown with code assist and intelligence in the comfort of your favourite editor.
MIT License
2.06k stars 35 forks source link

Add support for tag completion #111

Closed realprogrammersusevim closed 1 year ago

realprogrammersusevim commented 2 years ago

I often use tags to help me find notes in my Zettelkasten system and it would be extremely useful to have some sort of tag completion. It could be triggered by typing a # and then a letter to show that the user isn't trying to type a header. Then the completion options would be all the other tags used in a folder. This would help to show what other common tags are and make sure all of them are uniformly spelled and worded.

artempyanykh commented 2 years ago

Thanks for raising this @realprogrammersusevim! Could you provide a small snippet of markdown doc showing how you use tags?

realprogrammersusevim commented 2 years ago

Here's an example of how I put tags in my documents:

# My Note

Saying lots of smart stuff. Much smartness, much wow.

[[Another Note]]

#tag #smartness #anotherTag #brilliantInsight
GordianDziwis commented 1 year ago

Another way to define tags is using markdown frontmatter:


---
tags:
  - foo
  - bar
---
pidgeon777 commented 1 year ago

Hello, any update on this useful feature?

artempyanykh commented 1 year ago

Hi @pidgeon777! Well, winter holidays wasn't the most productive season :) Anyhow, I plan to pick this up soon, although the first version won't support tags defined in front-matter, only #tagname will be supported initially.

artempyanykh commented 1 year ago

Support for tags has been merged in #159 . I'll push the next release soon-ish, but feel free to build from source and give it a spin meantime.

eguiraud commented 1 year ago

Hi, I think this is available in the latest release and can be closed.