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

Reloading bookmarked files/folders #42

Closed Lotus49b closed 1 month ago

Lotus49b commented 1 month ago

Nice feature, thanks!

I see that when I re-open a saved folder containing a file from Bookmarks, Vertical Tabs creates a new folder called "Grouped tabs" and doesn't return the folder name as it was initially bookmarked.

Step 1: Save this folder to Bookmarks image

Step 2: Re-open folder from bookmarks image

Step 3: The file is back in Vertical Tabs but the original folder name is lost image

oxdc commented 1 month ago

Thank you. This is the intended behavior (at least for now). There would be two ways for users to store tab groups:

  1. (implemented & shipped) bookmark the group;
  2. (working on) stash the group into the "later" box.

For Method 1: Bookmarking works with the core plugin and should be used as it is. When you bookmark a group, the name is sent from Vertical Tabs to Bookmark. However, when you open a group of bookmarks, a new group is created by Bookmark, NOT by Vertical Tabs. Because Vertical Tabs cannot distinguish manually created bookmark groups from saved tab groups, it should not make assumptions and modify the name.

Method 2 has more features. When a tab group is stashed, the cursor positions and history records are also remembered, which cannot be achieved with bookmarks.

Lotus49b commented 1 month ago

Thanks, method 2 sounds promising. I assume the "later" box will be inside VT? That will be nice and fast. The Bookmarks feature has never really clicked with me (joke not intended).

oxdc commented 1 month ago

I assume the "later" box will be inside VT?

Yes! This will be a feature of Vertical Tabs.

Azmoinal commented 1 month ago

Method 2 has more features. When a tab group is stashed, the cursor positions and history records are also remembered, which cannot be achieved with bookmarks.

It sounds very interesting. I cannot wait to test it

oxdc commented 1 month ago

Since there would be some time before Method 2 coming out, after hacking into the build-in Bookmark plugin, I implemented Method 1 with automatic name reloading. When you open a bookmark group created by Vertical Tabs, the name of that group will be automatically set. Note that this only works when the bookmark is saved from Vertical Tabs rather than manually created or modified.

Please upgrade to the latest version (v0.9.0). Thank you.