Hey all — Formula 0.2.3 is out: https://evanbalster.com/tiddlywiki/formulas.html GitHub: https://github.com/EvanBalster/TiddlyWikiFormula
Changes: - Add Array Literal <http://localhost:8080/#Array%20Literal> with conventional syntax, eg. {1, 2, 3, "fork"}. - Add array constructor function (added in 0.2.2 but undocumented) - Enhanced Cell Reference <http://localhost:8080/#Cell%20Reference> syntax - Column names must be capitalized - Support $ absolute references (does not affect formula behavior) - The compiler now recognizes cell ranges (but they are unsupported) - Fixed date-to-string conversion producing an undefined result. - Fixed an error when failing to convert an object to a string. Thanks Diego for pointing out the date conversion problem, which was quite nasty. I think there may be an outstanding problem with array-to-string conversion, which I'll try to fix in my next update. Check out the Auto-Map demo in the latest wiki: https://evanbalster.com/tiddlywiki/formulas.html#Auto-Map It's a bit crude but it demonstrates a first take at a self-organizing graph of links within a wiki. For my next update, I'm thinking about adding a dictionary type (a key-value map like JavaScript's objects) and some related functionality. Excel and Google Sheets don't support key-value maps so I'm considering my options for syntax design. On Saturday, 3 February 2018 19:54:42 UTC-6, Evan Balster wrote: > > Hey all — > > Formula 0.2.2 is out: https://evanbalster.com/tiddlywiki/formulas.html > GitHub: https://github.com/EvanBalster/TiddlyWikiFormula > > Changes: > > - Fixed a bug in the parsing of /* block comments */. // line comments > also > work. > - Implemented regular expression literals in the JavaScript style: > /regex/g > - May be used as a Datum > <https://evanbalster.com/tiddlywiki/formulas.html#Datum> > - When converting strings to regex, both JavaScript and TiddlyWiki > styles will be recognized. > - Formula errors now mention LET assignments they lie inside. > - Formulas as Tag Attributes > > <https://evanbalster.com/tiddlywiki/formulas.html#Formulas%20as%20Tag%20Attributes> > are > now facilitated by a mod using the experimental Mod-Loader Plugin > <https://evanbalster.com/tiddlywiki/formulas.html#Mod-Loader%20Plugin>. > > > *Tony* — I fixed some coercion bugs in 0.2.1 but I'm not sure if those > cover the issues you're reporting. > > The blank definitely won't be treated as a date (what would it default to, > anyway?) > > As for the other one, 2017122410592500 isn't quite a valid TiddlyWiki date > under current semantics. > > *2017 12 24 10 59 25 00* > > The last bit (milliseconds) should be either 3 digits or completely > absent. AFAIK TiddlyWiki dates are never expressed to "centisecond" > precision so this looks out of place to me. I'm strict about what Formula > interprets as a date, because these strings of digits could also be numbers. > > > *BurningTree* — that's a nice looking spreadsheet UI. Consider your > experimentation encouraged! > > > On Friday, 2 February 2018 22:30:02 UTC-6, BurningTreeC wrote: >> >> Hi Evan, >> >> I've found this *handsontable* library and tried making a basic widget >> here: spreadsheet widget >> <http://muritest.tiddlyspot.com/#hot%20spreadsheet:%5B%5Bhot%20spreadsheet%5D%5D%20%5B%5Bthe%20tap%20widget%5D%5D%20%5B%5Bthe%20swipe%20widget%5D%5D%20%5B%5BThe%20widthreveal%20macro%5D%5D%20%5B%5BThe%20wheelreveal%20macro%5D%5D%20%5B%5BPredefined%20layouts%5D%5D%20%5B%5BThis%20is%20a%20preview%20for%20what's%20coming%20with%20v0.1.2%5D%5D%20%5B%5Bmy%20creator%20invented%20the%20touchscreen%5D%5D%20%5B%5BHow%20to%20get%20this%20on%20your%20pc%2C%20laptop%20or%20mobile%20device%5D%5D%20%5B%5B4%20TAP%20to%20Tiddler%20MODAL%20and%20LONG%20PRESS%20to%20open%20sidebar%5D%5D%20%5B%5Bautopopulate%20this%20wiki%20with%20images%5D%5D%20%5B%5BCeci%20n%E2%80%99est%20pas%20une%20pipe.%5D%5D%20%5B%5BI%20am%20Mr.%20Van%20Gogh%5D%5D%20%5B%5BI%20am%20one%20of%20that%20guy's%20paintings%5D%5D%20seamless%20%5B%5Bthe%20best%3A%20you%20can%20drag%2010%20Tiddlers%20at%20once.%5D%5D%20%5B%5Bwatch%20muuri%20in%20different%20colors%5D%5D%20%5B%5Brun%20to%20the%20hills!%5D%5D%20%5B%5BThat's%20the%20way%20I%20like%20it!%5D%5D%20%5B%5Bthe%20best%20louvre%20moment%5D%5D%20%5B%5Bmuuri%20is%20the%20finnish%20word%20for%20wall%5D%5D%20%5B%5Banalogue%20clock%5D%5D%20%5B%5Bmuuri%2C%20muuri%20-%20what's%20this%20muuri-bla%20all%20about%3F%5D%5D%20%5B%5Bsave%20wiki%20button%5D%5D%20%5B%5Ba%20little%20bit%20of%20transparency%5D%5D> >> >> The docs <https://docs.handsontable.com/0.35.1/Core.html> look promising >> and the interface is very nice - the license is MIT >> >> Simon >> > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a9290153-407c-4fd8-8112-05ce7097934e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

