aidenlx / alx-folder-note

Add description, summary, and more info to folders with folder notes.
MIT License
250 stars 14 forks source link

Add `is-active` class to `div.nav-folder-title` when folder note is active #53

Closed JeppeKlitgaard closed 2 years ago

JeppeKlitgaard commented 2 years ago

Hey Aiden,

First of all, thank you for an amazing plugin!

I think it would make sense to style the folder as 'active' in a similar way to how Obsidian styles nav-files, such that a is-active class is added.

This would allow the user to more easily see that the folder note is open.

image

samwarnick commented 2 years ago

Was just thinking this morning that this would be a great feature! I ran into a weird edge case: if my folder note is a kanban board using obsidian-kanban, then is-active is not added. I can make a repo with a sample vault if that would be helpful.