Provide bookmark organisation tools
A feature I miss in vimb is some way to group bookmarks together, list available groups, list the members of a group and on the way choose a bookmark to display/load. Also a facility to open all bookmarks in side a group. It would be nice to store all open websites inside the same group with a few commands, but because vimb doesn't manage tabs like other major browsers, this might be difficult up to impossible.
Now, a possible decision is whether those groups should be implemented independently of the current bookmark tags or not.
- If they were independent, the bookmark system of vimb would be like the system of Firefox and other major browsers. Here putting groups inside of groups, such that if group B is a proper subset of group A (A contains some bookmarks not in B and all bookmarks in B are in A), when group A is queried group B is listed and all bookmarks in A which are not in B. Just like in Firefox and other major browsers.
- If the proposed group functionalities were implemented using the current bookmark tags, then a directory tree structure as in major browsers can't possibly be enforced. So even in the example above, when querying group A, all bookmarks inside it would be displayed. Group B would maybe be mentioned next to the relevant bookmarks.
This functionality is very important to me, because I can't really handle the enormous list of bookmarks which vimb produces. Because I don't always remember a bookmark, I forget about it, but it might be useful when I look for something.
I don't want to put somethin such complicated direct into vimb. Well I use bookmarks really seldom, so it's enough for me to step trough prefiltered list to get the right bookmark.
I can understand your intension, but I don't want to bloat vimb by many commands to handle bookmarks that follow a paradigm that not all people want to use. I think you should manage the bookmarks out of vimb by some other tools matching you workflow. You could add the bookmarks by vimb with some tags and group the entries based on the tags into some hierarchic structure and use another script to open groups into new vimb instance (this requires SOCKET support which is not ported to webkit2 at the time). I hope we can keep vimb lightweight and put in some nice features that can be used in a very flexible way.
Hi, @Columbus240, I have multiple bookmarks files to achieve "groups / folder" for my bookmarks with vimb, in my conf I have something like :
augroup bookmark
autocmd LoadFinished file:///*/bookmark e! bookmarkFileToHtml();
autocmd LoadFinished file:///*/bookmark.d/* e! bookmarkFileToHtml();
augroup end
Where I have my root bookmark file ~/.config/vimb/bookmark and a folder with secondary bookmarks file in directory ~/.config/vimb/bookmark.d
And on my root bookmark file I just need to add this :
file:////home/david/.config/vimb/bookmark.d/hardware Hardware Bookmark
to point the group "Hardware" dedicated bookmark files hardware
It's a readonly solution, since I need to edit in vim my root bookmark and manualy remove / put bookmarks in other files but this is a solution to keep organize in different groups your bookmarks.
Maybe it can help you...
@tyjak Nice approach!