Beautiful work again @Mohammad I am so Jealous of your productivity, well documented and beautiful solutions.
The tools to organise into folders is wonderful and it would be nice if one day it can also accommodate URL bookmarks, or you make an independent solution.
Below is a quick hack POC
If you do decide to go ahead do connect because I have some powerful tools for urls.
You have structured your design so well I found I could modify $:/plugins/kookma/favorites/templates/item-link-btn to include a small macro “url-link” as follows;
I know you have developed a lot of solutions, I have a rather long list of your solutions in TW-Script (Open TW-Scripts, in the sidebar open Cyclopedia, Responder, and filter for Anthony…)
Perhaps to start, you could clone you favorites plugin to a bookmarks plugin, on in which clicking on a bookmark icon says it (the tiddler) shall appear in the bookmarks tab which can also be organised into folders.
Once you do this I will provide the following;
If it (the bookmark tiddler) has a url field (or other set name) this will be what clicking on the title will go to.
When the tiddler has a url field or the text field starts with a url on the first line, use the tiddler title which when clicked goes to the address, and provide a link to the tiddler it is found in, in a small button.
My current links automatically set a target so similar links reopen the same tab - I can provide the custom equivalent of $:/plugins/kookma/favorites/templates/item-link-btn
R-click allows you to open in new tab/browser window instead.
But the question is what if the one tiddler contains multiple fields containing urls - how and would we list them?
I have a special project called Protocol links that finds all fields (in a tiddler OR Wiki) whose value contains a “protocol prefix” and uses an appropriate display mechanism. Prefixes include file:// http/s, mailto etc…
In one case we use an arbitrary field name and the link is named according to the fieldname
In another case I extract the link name from the url
We could use this method and rather than, or in addition to, folders, we allow one or more links to arise from each tiddler saved in the bookmarks.
Can you see how to extend a version of your favorites to handle multiple links from one tiddler?
I have more advanced link handling to share, but the above would be a great start.
Tony, I suggest a shorter way to start. I myself develop a prototype first and then go through details.
What you think if:
have a viewtoolbar button (a toggle button)
on click add bookmark tag (you now this can be a star as Tiddlywiki allows Emojis)
on second click remove the bookmark tag (toggle button)
create a sidebar tab (a tiddler tagged $:/tags/Sidebar)
list tiddlers with bookmark tag (use a template to show caption/title and url if it has url field)
Structured bookmarking
6. a tiddler tagged bookmark and also has a tag (itself has bookmark tag)
6.1. instead of list you can use your own developed toc macro
All are bold. (The $:/favorites tiddlers are not included in the plugin, so they are not listed there.)
I have removed all tiddlers in $:/favorites and uninstalled and reinstalled, but still the same.
I can see that $:/favorites/folders/recent and $:/favorites/favlist are updated when I click “the heart”, but the Favorites tab isn’t updated. Not on reload of the whole TiddlyWiki either.
That is a bug! I push a new update in few minutes. But the JSON I sent you shall work!
I also added a First Aids tiddler to do the job automatically after you upgraded to new version!