dominiclet / obsidian-note-definitions

Obsidian plugin for seamless viewing of personal definitions
MIT License
104 stars 5 forks source link

coloring definitions depending on the file with definitions #77

Open vkhatuntsevv opened 2 months ago

vkhatuntsevv commented 2 months ago

i'm not entirely sure i need to add a separate issue for that, but at the same time not sure where i can ask about that as well

what i want to do is to color underlined definitions depending on what file definitions are in

for example

i have two files in folder "definitions": Flowers and Minerals

when i open some other file and there are words like Rose and Emerald, for example, i'd like Rose to be underlined with green color and Emerald underlined with blue color. as well as other definitions which are in Flowers definitions file and Minerals one respectively. like it works with Supercharged Links (if you/anyone are/is familiar with this plugin)

im not that smart in css so i can't really understand how to do that. i can only guess with "if definition is in File_x, then words associated with definitions in File_x are colored this way", but that is not very helpful to me haha

upd: additionally gonna say, just to clarify things: no, i don't want to color every definition in one file one specific color. instead, i want color of definitions underlining depend on the file where these definitions are in

vkhatuntsevv commented 2 months ago

if you did not fully understand, i can clarify in details or elaborat