nathonius / obsidian-highlight-extended

MIT License
5 stars 1 forks source link

Alternative indicators #5

Open phlind opened 2 years ago

phlind commented 2 years ago

A small feature request: Would it be possible to support alternative indicators, like ! instead of @. I'd like to reserve the @ for citations in my vault. So giving the user the ability to choose between some indicators would be nice.

Another option would be to don't use any symbol at all, since =={…} seems to be unique already as a syntax. That way it would be even more "human readable". The nice thing about your plugin is that it makes also semantic highlights easy and future proof, because if we read our notes in another editor, we still can identify the meaning of the highlight, for example: ==text=={source} for a missing source.

nathonius commented 2 years ago

Yeah I have the identifier because things like green are valid CSS, but I guess no one really uses those and I can always fall back if there's no variable with that name.

The issue with configuring the identifier is that there will be some collisions; I initially used $ but that read as math expressions.

I could put a disclaimer I guess. 😅 I'll look into disabling it entirely.

phlind commented 2 years ago

Ah, I didn't realize that you can directly enter colors in the brackets. Some users might want to do this. Maybe then it makes more sense to keep the identifier. An option to choose between @and ! would maybe be an option for a little more flexibility.