hide tabs bar properly
addresses #16
I’ve noted that just a simple display none is the solution. This guy is dead, do you think creating a new one would be better?
Tested and I don't see this as a good idea. How can you drag your window around if the bar you would grab to drag is completely gone? Or were you thinking of using this more in full screen only mode? That might be OK.
because is the main purpose of all that, is removing tabs at all, visually, you can switch between them with shortcuts. but the idea is that, is not for everyone but there are people wishing a clear UI like me :)
Instead of setting the display to none, try adding these 2 new sections to the CSS instead. This does what you want it to visually, you can't see the top bar, but functionally the top bar is still technically there so that if you're in window mode you can still drag the window around. That works pretty slick! I also added something to make the min/max/close buttons up there almost blend into nothing until you hover over them, which is visually more zen as well.
As a note, I've also created an enhancement for this plugin to enable a "Zen One (Active Pane Only)", or super zen mode similar to the other obsidian plugin, and it works well too. I plan on submitted a PR to this plugin for it, but I can include the below code as a new optional on/off setting as well. If Maxymillion doesn't come back around to merge the changes I'll probably submit my fork as an alternate extension option.
/* Hide the top bar, but it's still there from a click and hold to drag the window perspective */ .zen-enabled div.workspace-tab-container { position: absolute; height: 100%; width: 100%; }
/* Better blend the min/max/close buttons in zen mode */ .zen-enabled div.titlebar-button-container.mod-right:not(:hover) { background-color: var(--background-primary) !important; opacity: 0.2; }
FYI, I just submitted a more robust pull request #22 that includes a new toggle option to hide the "Title Bar", which basically does what you're looking for here. Plus it has the new Zen One (Active Pane Only) activation method I previously mentioned and some additional error handling added in there.