@Yaisog
In JD’s revisions plug in, the revisions are shown in the tiddlerinfo tabs.
Is it possible for your implementation also?
Hi @arunnbabu81, I’ll have a look, but cannot promise anything regarding timeframe or even implementation.
There is no urgency from my side. Take it as just a suggestion.
Can you add also a whitelist of tiddlers to keep patches for (and not to keep for others)? This would be great for me as I’m a bit hesitant to keep patches for every change I make but there are some tiddlers where this is important for me (and having to keep deleting patches for all others is a burden)
@arunnbabu81 @Ittayd
I just uploaded an update that should include both of your suggestions.
The revisions are now shown in a tab of the info area. This can be toggled via the ControlPanel settings page.
The settings page now also contains a whitelist editor. The whitelist, just as the blacklist, works as a filter, i.e. to only back up tiddlers in the $:/plugins/yaisog namespace, you would replace the universal default [is[tiddler]]
with [prefix[$:/plugins/yaisog]]
. The blacklist is applied after the whitelist, if you wanted to fine-tune the selection.
Have a nice day
Yaisog
PS: Please note that I also updated the wiki to v5.3.5, so that the custom $:/core/modules/filters/format/timestamp.js override is no longer needed, and I replaced the $:/plugins/yaisog/macros/friendly-date-subfilter with a JavaScript version $:/plugins/yaisog/modules/filters/userfriendlydate.js that implements the same functionality in a custom filter operator.
I just noticed starting at the bottom of the revisions list, you can also move up and forward in time to see the tiddler content evolve.
Couple issues I found…
- Click the edit button then…
- Click on the Revisions button, then the More options button…
Thanks for the heads-up.
No. 1 was a result of a messed up offline upgrade to 5.3.5. After a full re-upload everything should be OK now.
No. 2 was a side effect of sticky titles and lazy code re-use. Now fixed.
Have a nice day
Yaisog
I was wondering if it would be possible to see a rendered view of each version rather than the code and differences?
- I understand you came at it from an author’s perspective but thinking of it from a readers perspective.
It may also be interesting to display who the modifier was for each change/version as well as a more readable modified time and date.
@TW_Tones This would probably not be incredibly hard to do. For the date format, you’d probably only needed to change the toc-body
macro in $:/plugins/yaisog/patches/Viewer, and to render the tiddler you’d put a $wikify
instead of the $diff-text
in $:/plugins/yaisog/patches/Viewer/ItemTemplate. The modifier
should already show up in the fields if it changed between revisions.
However, since this is just a proof-of-concept and not a real plugin, I don’t plan to add a lot of customizations. I actually like the date format that I used, and in my single-user wikis I have no need for displaying the modifier (always me). I might add a switch to show the rendered output or something like the editor preview panel at some point in the future, though. The drawback would be that it’s difficult to identify the changes, especially in larger tiddlers.
Have a nice day
Yaisog
Thanks for the tips.
I think we need a range of supports for multiuser tiddlywikis, however it may even be possible to import updated tiddlers with the user being the indicator of the source.
I suppose “I am thinking out loud”
Thank you. I see this is not a plugin. Why do you need to use a custom page template in order to catch tm-save-tiddler and can’t use the th-saving-tiddler hook? Otherwise, wouldn’t it be cleaner to replace NavigatorWidget.prototype.handleSaveTiddlerEvent (to save the revision then call the original) instead of overriding all the page templates?
This is a pure WikiText solution and always was intended to be (well, except for the userfriendlydate
filter operator, which is a comfort feature I used from a personal wiki project).
There are no shadow tiddlers being overwritten, so we do not have to worry about keeping up with future updates to the NavigatorWidget. Any existing PageTemplate can easily be modified to make of use of Revisions by adding the $genesis widget as demonstrated in the demo.
I always want to make a git diff viewer and change reverter. Can I use your UI in my future git revision plugin?
I’m using nodejs wiki (TidGi app) with git, so revision comes without cost, and is optimized by git binary. But till now, I still have to manage revert using Github Desktop or SourceTree app, without in-wiki support, it is a pity.
Sure, go ahead.
Yaisog