Hum so from what I understand to make such a thing works it would require to somehow modify the way tiddlywiki navigate to an url and use a linkcatcher to be able to trigger an action widget…
I found more info on this feature :
When TiddlyWiki starts up it processes permalinks according to the following steps; the same steps are repeated if the permalink changes dynamically (this happens in response to the user editing the address bar, for example).
- If the permalink contains a colon, treat the string before as the target and the string after it as the story filter
- If the permalink doesn’t contain a colon, treat the entire string as the target and mark the story filter as unspecified
- If the story filter was unspecified and we’re in the process of starting up, then set the story filter to the empty string if the target is specified, or to the default tiddlers if the target is unspecified
- If the story filter was unspecified and we’re not starting up, then set the story filter to the current story list
- Evaluate the story filter as the story list
- If the target is specified and not present in the story list then add it at the top
- If the target is specified then navigate to it, otherwise navigate to the first tiddler in the story list
So it seems like this is the story filter that needs to be tweaked ?
I guess this would be done in $:/core/ui/PageTemplate…
@TW_Tones Yes sorry about that, I will reformulate :
If we add a colon in the url of a wiki, navigating to that url make tiddlywiki treat the string after it as the story filter.
We can define an ActionWidgets in a macro, and provided it is used in a triggering widget, the action widget will be executed.
TW 5.2.0 now support literal macro parameters.
My question then is : is it possible to catch and trigger the action widget generated by a macro in the story filter ?
@TiddlyTweeter yes that’s what I meant ! That way we could use bookmarks to interact with a wiki - a bit like what the safe mode does but with far more possibilities.
Maybe that’s not possible without modifying $:/core/modules/parsers/wikiparser/wikiparser.js …
If not possible, maybe with a javascript bookmarklet?