vrtmrz / obsidian-tagfolder

MIT License
211 stars 17 forks source link

Feature request: when using "a seperate pane for showing list" feature , can we have some way to highlight current tag? #75

Open liangzh-404 opened 1 year ago

liangzh-404 commented 1 year ago

when using seperate pane for list in sidebar, currently I have no way to know the tag I am selecting

image
vrtmrz commented 1 year ago

Thank you for asking me! And, sorry for the delayed response.

It should be shown top of the area. However, this will be scrolled out with items (This behaviour has been adjusted along File Explorer)

Probably the following CSS snippet will help us.

.nav-folder.mod-root > .tree-item-self.nav-folder-title:first-child {
    position: sticky;
    top: 0;
    background-color: var(--background-secondary);
    z-index: 10;
}

If you want to limit this effect only to the separated list, please add a selector like this:

[data-type="tagfolder-view-list"] .nav-folder.mod-root > .tree-item-self.nav-folder-title:first-child {
    position: sticky;
    top: 0;
    background-color: var(--background-secondary);
    z-index: 10;
}