mdelobelle / obsidian_supercharged_links

obsidian plugin to add attributes and context menu options to internal links
MIT License
537 stars 35 forks source link

How to stop Attribute Selector from overpowering Folder Selector in importance? #211

Open bluerosegarden opened 1 year ago

bluerosegarden commented 1 year ago

Hello! I have an attribute selector that targets any file with the attribute publish: true, and I also have a folder selector that targets anything under my Other Site/ folder.

The first one works flawlessly and always has, however I want the Other Site/ styling to override it. The problem is, the files in Other Site/ also use the published attribute and that takes precedent over the folder selector. I've tried moving the folder selector to the top above the attribute selector, and I've tried moving the attribute to the bottom (and vice-versa just to make sure I was mistaken) and neither work.

At first I just thought the solution would be as easy as having two conditions for one selector to raise its importance level (such as a folder selector AND an attribute selector), but as far as I can manage to find there isn't a way to do that. I could manually add the styles in a snippet, but that ruins the convenience of this plugin hahaha. Any help would be amazing, thank you in advance!

Pellucid1137 commented 7 months ago

Hi!

I was going to create a new issue, but I saw that this one was still open. I've noticed the same behavior between attribute and tag selectors, tag and path selectors, and two attribute selectors as well. There seems to be an arbitrary "priority" which the selectors take precedence in, dragging selectors above or below other does not seem to be able to fix this.

Any help or perhaps a feature would be greatly appreciated. Thank you!