Folks, Please find attached a work in progress experiment bundle of tiddlers. Drop in an empty wiki and see how new tiddlers (Via done button) gain a serial number and existing tiddlers can have one added. This replaces the standard edit template done button (hides existing), and modifies $:/core/ui/ViewTemplate/subtitle <file:///C:/Data/TW5/scratch/Scratch%20(1).html#%24%3A%2Fcore%2Fui%2FViewTemplate%2Fsubtitle> to show the serial number under the view tiddler buttons.
See $:/PSaT/Tiddler-serial-numbers <file:///C:/Data/TW5/scratch/Scratch%20(1).html#%24%3A%2FPSaT%2FTiddler-serial-numbers> for more Try the following where N is a valid serial number :<<tsn N>> :<<tsn N link>> :<<tsn N text>> :<<tsn N transclude>> Or :<<qualify-tsn>> :<<tsn> PS this is very initial and has inconsistent notes and pieces. Regards Tony On Friday, August 30, 2019 at 5:38:00 PM UTC+10, TonyM wrote: > > Folks, > > I am working on a Tiddler Serial number (TSN) tool and would like some > community input. Like always I try and design to avoid impacting on any > other related solutions and with a view to sharing. > > Features > > - When you save a tiddler it will obtain the next available serial > number and assign it to the tiddlers tsn field. > - Tiddlers you do not create (or some other process creates eg import) > will provide you a button to add a serial number if desired, also for > existing system tiddlers > - Any tiddler with a serial number will display it like the subtitle, > in the right hand side under the tiddler buttons. > - An optionally displayed, copy to clipboard button next to the TSN > will allow you to copy a macro command to include > - A link to the tiddler eg `<<tsn n [link]>>` > - Plane text version of the current tiddler title `<<tsn n text>>` > - Transclude the content of the tiddler `<<tsn n transclude>>` > - Or the above for a named field in the tiddler with that serial > number. > - Or just copy the serial number > - When the title changes for any reason the serial number in the above > macros in your tiddlers will be used to lookup the correct tiddler > title/content > - You can use a full macrocall to the tiddlers with given serial > numbers for programmatic listing and actions to support the serial numbers. > - A new version of qualify will allow you to name state tiddlers based > on the serial number so these state tiddlers will follow the tiddler > whatever its name. > > Futures; > > I am thinking of taking this further to detect the occasions on which a > tiddler name changes as a result of edit and rename. Then provide a method > for you to trigger a rename process to update other content based on the > old and new name such as your own list fields, further supporting the > ability to rename tiddlers and list those containing the tiddler name or > serial number references like `<<tsn n`. > > - Keep a log of all names a given tiddler serial number has over its > lifetime > - Ability to restore the previous name > > I also would like to generalise this so you can store serial number > related tiddlers under another namespace eg; $:/mydata/n such that they > will follow the current tiddler no matter its title. > > Regards > Tony > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/628f94e8-2ab4-45cd-bde4-646bc8226d90%40googlegroups.com.
proto-tiddler-serial-numbers.bundle.json
Description: application/json

