oxdc / obsidian-vertical-tabs

An Obsidian plugin that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.
MIT License
85 stars 0 forks source link

Groups - Auto-close and font style change #48

Closed Lotus49b closed 3 weeks ago

Lotus49b commented 3 weeks ago

Hi there! This plugin continues to make work easier!

I think I mentioned this before, but maybe you can keep these ideas in mind while you're working on more great features.

  1. I'm using Zen mode as you suggested in order to avoid manually closing the current group when opening notes in another group (I don't want multiple windows open). An "auto-close group on switching notes in another group" option would be nice (but not essential).
  2. There's almost no visual difference between folders and notes in the tree, except for a small indent. Maybe use a bold font for the group title to make it stand out a bit more? (but please don't create a solid background behind it as that will detract from the active note highlighting)

Thanks for the good work, much appreciated.

oxdc commented 3 weeks ago

An "auto-close group on switching notes in another group" option would be nice

Forgive me. I still didn't get what you mean by "auto-closing groups". Could you please record a demo video or provide a screenshot of it? Thank you.

There's almost no visual difference between folders and notes in the tree, except for a small indent. Maybe use a bold font for the group title to make it stand out a bit more?

Unfortunately, this design is adopted by Obsidian and Vertical Tabs should not deviate too much from it in order to provide a consistent UI to the users. The indent should be clearly marked by a vertical indicator.

image

If the vertical indicator is not visible, I'm afraid that this could be an issue of your theme.

As you can see from the screenshot above, I applied the bold face style to the groups. You may achieve this with the following CSS snippet,

.obsidian-vertical-tabs-container .is-group > .tree-item-self {
    font-weight: bold;
}
Lotus49b commented 3 weeks ago

Hi! So here I am working on the German study note. The folder 1 is visible, and 2 is invisible because I don't want multiple windows open, but seeing multiple notes on the tab bar is good (although only one note in this folder). image

Action 1. Now I open a note from folder 2, and I have 2 windows open at once. image

Action 2. I will now click the eye on folder 1 to make it invisible, so I will have only one window open. image

It would speed up the workflow if Action 2 was automatic. But as I said earlier, this is not an essential feature, just a quality of life thing. You are doing very useful things on the plugin and this shouldn't fill up your to do list. As we discussed before, using Zen mode accomplishes this to some extent.

Also, thanks for the bold font CSS snippet. That does the job perfectly, and also applies a colour (as you can see from the below screenshot). image

oxdc commented 3 weeks ago

using Zen mode accomplishes this to some extent

May I ask if there is anything missing or unsatisfactory by using the Zen Mode? Especially comparing to your proposal? I want to understand more about your needs. Thank you.

Lotus49b commented 3 weeks ago

Zen mode is fine, but sometimes it's necessary to see all the tabs in the tab bar when the left sidebar is minimised, eg. when working with wide notes (tables etc.)

Having said that, Zen mode does work when you get used to it, the trick is in shifting your habitual focus from the tab bar to the side.

BTW - What I like most about this plugin is that it supports you better than workspaces, because you can see all your other work areas /activities at a glance. For someone who has difficulty with task processing (ADHD and reduced Executive Function) this provides a valuable "scaffold".

P.S. I've just posted another issue (separately from this so you can track it) regarding new notes opening outside of the current working group

oxdc commented 3 weeks ago

It would speed up the workflow if Action 2 was automatic.

I'm afraid this feature would break Obsidian's design and interrupt other users' workflow. Automatically hiding inactive groups will make it difficult to setup a side-by-side view.

Zen mode does work when you get used to it, the trick is in shifting your habitual focus from the tab bar to the side.

This is Vertical Tabs all about!

but sometimes it's necessary to see all the tabs in the tab bar when the left sidebar is minimised

Got it, I'll add an option for this feature when the setting page comes out. Thank you for your feedback!

oxdc commented 3 weeks ago

I have made some modifications to the Zen Mode. Now, you may achieve your proposal by the following steps:

  1. Enable Zen mode;
  2. Disable Show active tabs only.

After these two steps, Vertical Tabs will hide inactive groups but show all your horizontal tabs within the active group. You may hide the sidebar (and Vertical Tabs view) without losing the sight and control of other tabs.

I'll close this issue right now. The feature above will be available a few days later, after I fully tested some changes. Please update when it comes out. If you run into some problems related to this feature, please reopen this issue.

oxdc commented 3 weeks ago

You can now show the horizontal tabs after enabling the Zen Mode. Please update to v0.10.0 and read the instructions above. If you encounter any problem, please reopen this issue. Thank you.