Re: [tw] Re: Generating HTML attribute strings from wikitext?

2015-05-31 Thread Evan Balster
Hey Richard -- A solution through a mechanism like that is possible, but is both roundabout (filters are made for producing lists of different items, not formatting data for output) and extremely limited (I don't know of any way to make a filter that interleaves fields from a list of tiddlers --

[tw] Generating HTML attribute strings from wikitext?

2015-05-30 Thread Evan Balster
Hello, all -- Is there a simple way to use plaintext data from wikitext, which can then be fed into HTML (or SVG) attributes? If not, could I lobby for one? The gulf of execution here looks like this: !-- One of a series of thin SVGs used to compare characters' lifespans -- svg width=12px

Re: [tw] Re: [TW5] Request: Refresh Delay in edit-text widget

2015-10-06 Thread Evan Balster
I'll get around to finishing the message I drafted two weeks ago here... I see a lot of sense in Jeremy's point about always editing the Tiddler store directly, and I won't contest that. My main objection to the tag / field approach to refresh delay is that the delay isn't a descriptor of the

[tw] Feature Request: Sidebar tab hiding as a built-in option

2015-09-10 Thread Evan Balster
I often use TiddlyWiki to create documentation which is used by other people. It's useful to create a helper tab or two for browsing those wikis or calling up commonly-used information -- but adding those to the four default tabs makes for a rather complicated-looking sidebar. For the sake of

[tw] Re: Feature Request: Sidebar tab hiding as a built-in option

2015-09-10 Thread Evan Balster
For the record, I'm quite comfortable making the customization -- I just feel as if this functionality is useful frequently enough that it shouldn't require surgery on TiddlyWiki's core. On Thursday, 10 September 2015 17:17:59 UTC-5, Mat wrote: > > @Evan - I'm not sure if you're asking for help

[tw] Re: Linking to a file (newbie)

2015-09-10 Thread Evan Balster
Try a HTML link, EG: click here! This might also work: [[click here!|file://test.txt"]] That should work for a text file in the same folder as your wiki. Generally you'll need URI prefixes in order to link to stuff outside TiddlyWiki. On Thursday, 10 September 2015 13:11:28 UTC-5, Scott

[tw] Re: TWC to TW5 help

2015-09-10 Thread Evan Balster
Something like: <$list filter="[tag[apdl]tag[help]]+[sort[title]]"> {{!!title}} {{!!summary}} Where "summary" is a field of the tiddlers in question. <$list> is neat -- everything inside is printed once for each element in the list. You can't use markup with $widgets very well, so you

Re: [tw] Re: [TW5] Get list of descendants by recursively assembling filter?

2015-09-10 Thread Evan Balster
http://tiddlywiki.com/static/TextWidget.html <$text text="[["/><$view field="title"/><$text text="]]">> There might be a simpler way, but this works. ...So you're rendering this all to a string for use as a parameter to another filter? If you manage that, I'm *very* curious as to how. (I've

Re: [tw] Re: [TW5] Get list of descendants by recursively assembling filter?

2015-09-12 Thread Evan Balster
A few notes: 1) Macros always have to be at the top of the file, before any WikiText. 2) The syntax $(variable)$ only applies inside macros. Outside macros, use <>. 3) Your trick isn't working because there's no way to *render* WikiText into a filter expression. Basically, the code inside

[tw] Rendering WikiText into attribute strings (Core Macro Request?)

2015-09-12 Thread Evan Balster
Use Case: Suppose within my TiddlyWiki I'm rendering an infographic as SVG. The SVG contains a path, which is defined by a string containing a list of vertices. Suppose further I want to use an operation with at least one <$list> widget to populate this path, as below. Because the path is

[tw] Re: [TW5] Render WikiText into attribute strings?

2015-09-12 Thread Evan Balster
ably to cull duplicated items in a recursive search. His calling code is thus: <$set name="myList" value=<> > <$list filter=<> /> (where <> is a recursive macro involving <$list>.) I suspect this isn't an entirely uncommon sticking point. On Satu

Re: [tw] Re: [TW5] Get list of descendants by recursively assembling filter?

2015-09-13 Thread Evan Balster
}} <$macrocall $name="heirarchy_sub">> \end \define heirarchy(ROOT) <$tiddler tiddler="$ROOT$"><> \end <> On Sunday, 13 September 2015 12:44:05 UTC-5, Evan Balster wrote: > > 2) The reason for this behavior is that macros do not set variables

[tw] Re: Feature Request: Sidebar tab hiding as a built-in option

2015-09-10 Thread Evan Balster
I'm not sure if requiring a theme installed is sensible... I feel as if the closest UX analog is the "toolbars" setting. You don't need a theme installed to enable or disable the "clone" button on all tiddlers, or to conceal the "new tiddler" button in the sidebar. On Thursday, 10 September

[tw] Re: [TW5] Render WikiText into attribute strings?

2015-09-15 Thread Evan Balster
quot;> plain To The Top=on the bottom=== It's quite possible to *transclude* into attributes with TW5 -- it's just that such transclusions are never wikified. On Tuesday, 15 September 2015 16:34:29 UTC-5, Evan Balster wrote: > > My actual scheme fo

[tw] Re: [TW5] Render WikiText into attribute strings?

2015-09-15 Thread Evan Balster
the data in to json tiddlers - they can contain ordered > lists (arrays), and then have some widgets like the ractive.js templates > (see http://mlarocca.github.io/01-22-2014/pathsjs_ractive.html for an > example) that can handle json tiddlers. > > On Saturday, September 12, 2015 a

Re: [tw] Re: [TW5] Bug? <$set> widget with filter does not trigger refresh

2015-09-16 Thread Evan Balster
I posted an issue on github shortly after PMario's remark. See: https://github.com/Jermolene/TiddlyWiki5/issues/1937 My work-around for this issue is to either substitute a <$list> widget for the <$set>, or to enclose the <$set> code in a <$list> widget with a similar filter and an unused

[tw] Re: [TW5] (Tobias Beer) calc macro does not handle zero properly

2015-09-16 Thread Evan Balster
sNaN(until)) { if (!( "+" == op || "*" == op ? result <= until : result >= until )) { if("true" == beyond) { result = true; } else { result = until; } } if(beyond && result !== true) { result = false; } } } if(!isNaN(result)){ r = result.toString(); dec = r.indexOf('.

[tw] Re: [TW5] (Tobias Beer) calc macro does not handle zero properly

2015-09-17 Thread Evan Balster
There's some path of execution where the value of "result" is still a number on the last line -- if I had to guess, due to the fixed-point conversion. Older versions of TiddlyWiki, including 5.1.7, must forcefully convert non-string types returned from macros, while newer versions do not.

[tw] Re: [TW5] How to get rid of "Drop here (or use the 'Escape' key to cancel)" green ribbon?

2015-09-17 Thread Evan Balster
It's horribly annoying. With the latest versions, you can click and drag on a link to any tiddler and the green ribbon will disappear because the dragged item is non-importable. On Thursday, 17 September 2015 01:20:37 UTC-5, Linus Johnsson wrote: > > Dear all, > > This may seem a trivial

[tw] Re: [TW5] (Tobias Beer) calc macro does not handle zero properly

2015-09-17 Thread Evan Balster
The toString() in the return statement could probably be eliminated if the path resulting in a number at that point could be corrected. I suspect the problem occurs when the "toFixed" conversion is made, because no further conversion turns that into a string. On Thursday, 17 September 2015

Re: [tw] Re: Feature Request: Sidebar tab hiding as a built-in option

2015-09-17 Thread Evan Balster
Chiming in to say that this does not avert the "trivial upgrading" problem. Regards, Evan On Thu, Sep 17, 2015 at 4:22 PM, Tobias Beer wrote: > Hi Metabele, > > For what purpose would you be setting a *side-bar* field? > > Best wishes, > > — tb > > -- > You received this

Re: [tw] Re: Feature Request: Sidebar tab hiding as a built-in option

2015-09-11 Thread Evan Balster
Thanks Jeremy! On Friday, 11 September 2015 10:28:32 UTC-5, Jeremy Ruston wrote: > > Great thread. There's a bunch of points I'd like to respond to: > > Firstly, to respond to Evan's original request, I also think that the > sidebar tabs should be selectable just like the toolbar icons. > >

[tw] [TW5] Bug? <$set> widget with filter does not trigger refresh

2015-09-14 Thread Evan Balster
Changes in the filter result of a <$set> widget do not cause its content to be redrawn. This differs from the behavior of the <$list> widget, which does drive a refresh. Example code: !!Edit Text <$edit-text tiddler="BugDemo"/> <$button set="!!prop" setTo="yes">Force Update !!!Displayed

Re: [tw] Re: TWC to TW5 help

2015-09-11 Thread Evan Balster
In a tiddler tagged with *$:/tags/Macro* -- \define property_table(PROP) <$list filter="[tag[apdl]tag[help]]+[sort[title]]"> {{!!title}} {{$$PROP$$}} \end ...And elsewhere in your wiki: <> This might seem more complicated by comparison to the old way, but it ends up being *a lot* more

Re: [tw] Re: [TW5] Bug? <$set> widget with filter does not trigger refresh

2015-09-19 Thread Evan Balster
} }; exports.setvariable = SetWidget; exports.set = SetWidget; })(); On Friday, 18 September 2015 13:15:41 UTC-5, Evan Balster wrote: > > Note that the issue with <$set> not refreshing occurs regardless of > whether a value/emptyValue condition is used. > > On Friday, 18 Sep

Re: [tw] Re: [TW5] Bug? <$set> widget with filter does not trigger refresh

2015-09-18 Thread Evan Balster
Note that the issue with <$set> not refreshing occurs regardless of whether a value/emptyValue condition is used. On Friday, 18 September 2015 10:00:44 UTC-5, Tobias Beer wrote: > > Despite the limitations, I have added the example here... > > Conditional Variable Assignment @ tb5 >

Re: [tw] Re: [TW5] Request: Refresh Delay in edit-text widget

2015-09-23 Thread Evan Balster
pensive, adding a store lookup for every > changed tiddler. > > Best wishes > > Jeremy. > > > > > > > On Wed, Sep 23, 2015 at 10:52 AM, PMario <pmar...@gmail.com > > wrote: > >> >> >> On Tuesday, September 22, 2015 at 9:09:31 PM UTC+2, Ev

[tw] Re: [TW5] Request: Refresh Delay in edit-text widget

2015-09-22 Thread Evan Balster
Hmm... Reading through the old topic. So the source of objection to this feature is that the data might be erased if the containing widget tree is refreshed within that small interval of time? I would consider that acceptable... However, based on a quick look at the code, I can speculate

[tw] [TW5] Request: Refresh Delay in edit-text widget

2015-09-22 Thread Evan Balster
There's a lovely TiddlyWiki feature called refresh delay which makes preview mode usable by inducing a brief lag between the latest keypress and the refreshing of the wiki. (If we transclude the content of a draft

Re: [tw] Re: [TW5] Request: Refresh Delay in edit-text widget

2015-09-23 Thread Evan Balster
ave a strong understanding of the situations where this might occur, other than a keypress followed by another keypress (which should reset the delay). On Wednesday, 23 September 2015 16:01:46 UTC-5, Jeremy Ruston wrote: > > Hi Evan > > On Wed, Sep 23, 2015 at 8:21 PM, Evan

Re: [tw] Ignoring formatting rules in $wikify widget

2016-05-10 Thread Evan Balster
Here's an alternate use case that isn't well-served by text or HTML output: Say I want to use TiddlyWiki to generate some C++ source code which utilizes substitutions. (I have actually done this insofar as generating pseudocode for filtering routines, so it isn't too far afield of

Re: [tw] Ignoring formatting rules in $wikify widget

2016-05-10 Thread Evan Balster
I would agree with that reasoning, generally. And yes, I'll certainly be out of luck if I have something that looks like a {{transclude}}, <> or <$widget> in my code. For my uses I suspect all of these would be exceedingly unlikely. Mainly, I just find the default behavior -- *removing*

[tw] Numeric position info in $list widget and other filters (working implementation)

2016-05-12 Thread Evan Balster
Hello! There's a feature I've wanted to see in TiddlyWiki for a while: The ability, when using the $list widget, to create a variable corresponding to the position of the current item in the list. My interest in this feature is to use it for coordinates when generating SVGs. I took the

Re: [tw] Re: Numeric position info in $list widget and other filters (working implementation)

2016-05-13 Thread Evan Balster
Yeah, after reading through the list widget's code -- particularly the refresh routine, whose performance would be negatively impacted -- I had an inkling that it might make more sense to make a new widget (EG. $numbered-list) rather than customize the existing one. I may investigate that later.

[tw] Ignoring formatting rules in $wikify widget

2016-05-10 Thread Evan Balster
I'm *very* enthusiastic about the new Wikify widget! I was hurting for this feature ages ago when experimenting with generation of timeline SVGs and other visualizations in TiddlyWiki, and now that it's here I might revisit those utilities and kick them up a notch! I have one minor gripe, for

Re: [tw] Re: Numeric position info in $list widget and other filters (working implementation)

2017-01-31 Thread Evan Balster
o take this further? > > ..or anyone else? > > It is in deed a desirable feature and would make it possible to use the > listwidget a bit like arrays. > > <:-) > > > > On Saturday, May 14, 2016 at 2:57:10 AM UTC+2, Evan Balster wrote: >> >> Yeah, after

Re: [tw] Re: Numeric position info in $list widget and other filters (working implementation)

2017-02-01 Thread Evan Balster
Ah wait, no, that's *this* thread. Not my brightest moment. Jeremy, would it be possible to get an *unoptimized* version of the list widget as a basis for customization? As it is, it looks like the optimization adds a lot of code complexity and it's a little hard to know what to strip out

Re: [tw] Re: Numeric position info in $list widget and other filters (working implementation)

2017-02-01 Thread Evan Balster
Oh hey --- there's my own numbered list implementation, which was apparently implemented with a filter trick. Didn't realize that was its own thread. https://groups.google.com/forum/#!msg/tiddlywiki/13_TTJqEEiw/tMBRblyiBQAJ – Evan On Wed, Feb 1, 2017 at 12:08 PM, Evan Balster <e...@imitone.

Re: [tw] Re: TiddlyWiki Hangout #102 will be on Thursday 5th January 2017 at 5pm GMT

2017-01-05 Thread Evan Balster
Dmitry, it seems like you didn't quite get a chance to fully explain your situation and needs with this userbase you're interested in transitioning to TiddlyWiki. Could you expand on those a little more here? – Evan Balster creator of imitone <http://imitone.com> On Thu, Jan 5, 2017 at 2

[tw] Re: TiddlyWiki Hangout #102 will be on Thursday 5th January 2017 at 5pm GMT

2017-01-04 Thread Evan Balster
I'll be chiming in this meeting about dataflow programming and making TiddlyWiki more useful for detailed number-crunching tasks. I'm interested in using TW-like workflows for things like interactive math, data visualization, story chronologies, game systems, planning and work logging. For

Re: [tw] Re: Numeric position info in $list widget and other filters (working implementation)

2017-04-19 Thread Evan Balster
Quick reminder because I managed to forget about this myself at one point: I *did* provide a working (if hacky) solution in the OP. The addposition operator is a fairly low-impact way to achieve this effect, and it doesn't take O(N^2) time to execute. To review, a filter step

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-16 Thread Evan Balster
or TiddlyWiki. > > *May I ask how you use the results TRUE and FALSE in wikitest once > calculated?* > > Do you use it in filters etc? > > Regards > Tony > > On Sunday, 17 December 2017 03:20:17 UTC+11, Evan Balster wrote: >> >> Question: do you have

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-16 Thread Evan Balster
is incredibly easy to set up and > use! One question: Could this be made to work with date and time? > > Cheers, > > Stef > > On Friday, December 15, 2017 at 5:37:26 AM UTC+1, Evan Balster wrote: >> >> >> Introducing the *Formula plugin*: >> http://e

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-18 Thread Evan Balster
Hey, Mat — Getting greedy but... possible to make array output be links? I tried this > but no worky: > (= "[[" & nth([tag[Expenses]], 1) & "]]" =) Oh, yeah! This had actually crossed my mind. The default array-to-string conversion isn't very useful except as a display format, because it's

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-18 Thread Evan Balster
Time will tell. It's my experience that hasty decisions about syntax can make language design tougher later on, so I'm not inclined to jump the gun on brevity options. One of the tough things about filters, in particular, is that the multi-run syntax should be supported in the future. That

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-18 Thread Evan Balster
er 2017 14:34:25 UTC-6, ste...@gmail.com wrote: > > Hi, > > On Monday, December 18, 2017 at 12:14:02 AM UTC+1, Evan Balster wrote: >> >> >> Please continue experimenting and reporting any issues you turn up. I'll >> be interested to see if the date & time st

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-19 Thread Evan Balster
e > returned error > - 3.00 > - [3.00] > - "[3.00]" > - "3" > > Thank you very much for your hard work on this plugin. Mat is right - you > brought the chairs to the dinner party! > > Diego > > > >

[tw] Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-14 Thread Evan Balster
yWikiFormula/issues>, and feel free to share any function or operator extensions you develop. For my part, I'll be tearing a lot of old, bad code out of my tax ledger wiki and my D character sheet automator. And generating some slick SVGs. :) Enjoy — Evan Balster, imitone <http://imito

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-15 Thread Evan Balster
Hey, Mat — So there is an Array datatype in the plugin now, but filter runs are the only way to create one. TiddlyWiki's filters are (in my mind) the most natural analog to "cell ranges" in spreadsheet software, so this does make some sense for the record. That said, there's a strong case

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-19 Thread Evan Balster
t; > Hey Evan, > > Were you thinking something like this? Or peraps something more > self-contained where the input is defined as a field of this tiddler? Let > me know! > > Diego > > On Tuesday, December 19, 2017 at 3:00:27 PM UTC-6, Evan Balster wrote: >> >>

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-19 Thread Evan Balster
nexpectedly change. > > Best, > Diego > > On Tuesday, December 19, 2017 at 11:38:58 AM UTC-6, Evan Balster wrote: >> >> Hey, Diego — >> >> Noticed the COUNT error last night and fixed it in repo. Good catch on >> the IF error. I've also noticed that

[tw] Re: Thousands seperator with plugin "letfilter" (let:sum)

2017-12-19 Thread Evan Balster
Hey, Marcus — I'm thinking about adding some nicer number formatting options in my formula plugin, which is similar in purpose to the let operator and in active development: https://evanbalster.com/tiddlywiki/formulas.html If this interests you, I recommend opening an issue on the GitHub:

[tw] csv_unpack plugin: Import CSV rows as tiddlers/fields

2017-12-19 Thread Evan Balster
Hey, all — Made another plugin for my own use; some here might find it helpful: http://evanbalster.com/tiddlywiki/csv_unpack.html It parses imported CSV files, converting each row into a tiddler. It works as part of TiddlyWiki's own parse mechanism. CSV files are expected to have a header

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-18 Thread Evan Balster
Released version 0.1.2: http://evanbalster.com/tiddlywiki/formulas.html * Add months, years, add_months, add_years functions. * The DATE function no longer rejects a date argument. * Fix an off-by-one-month error parsing transcluded date fields in -MM-DD format * Better documentation

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-18 Thread Evan Balster
, Evan Balster wrote: > > Released version 0.1.2: http://evanbalster.com/tiddlywiki/formulas.html > > * Add months, years, add_months, add_years functions. > * The DATE function no longer rejects a date argument. > * Fix an off-by-one-month error parsing transcluded date fields in &

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-18 Thread Evan Balster
, Evan Balster wrote: > > Issues targeted for next update: > > * Make arrays more useful (add NTH, AVERAGE, etc): > https://github.com/EvanBalster/TiddlyWikiFormula/issues/11 > * Parsing bug with zero-argument functions: > https://github.com/EvanBalster/TiddlyWikiFormula/issue

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-17 Thread Evan Balster
t; I expect knowing this may help the less sophisticated users (still me at > this point) make use of formula. > > Thanks in Advance > Tony > > On Sunday, 17 December 2017 12:41:19 UTC+11, Evan Balster wrote: >> >> Hey, Tony — >> >> I'm not an impatient r

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-17 Thread Evan Balster
he date & time stuff suits the needs of the users who've chimed in about that. On Sunday, 17 December 2017 02:22:36 UTC-6, Evan Balster wrote: > > Hey, Tony — > > I might have been a little terse in documenting the logical functions. > > The IF function chooses be

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-17 Thread Evan Balster
Hey all — What appears missing that I need at the moment is; Add_month, Add_year Heh, you got me. I haven't written add or difference functions for years or months yet because those entities represent variable quantities of time and the proper approach wasn't quite clear. For the moment you

[tw] Re: Extending TiddlyWiki editor with fieldModules / editType ?

2017-12-07 Thread Evan Balster
Hey, Jeremy — Haha, it's quite strange that the $edit-text widget is used to show a color-box! Looking at $:/core/ui/EditTemplate/fields, there is one line that seems to have the potential for convenient WikiText integration: <$edit-text tiddler=<> field=<>

[tw] Extending TiddlyWiki editor with fieldModules / editType ?

2017-12-06 Thread Evan Balster
Hello — I build wikis with complex relationships and field information. Tagging is great for simpler wikis but some use-cases need more specific relationships like "parents", "spouse" and "friends"... Typing titles of related entities is tedious and error-prone. And I've been aware for some

[tw] Re: csv_unpack plugin: Import CSV rows as tiddlers/fields

2017-12-20 Thread Evan Balster
On Wednesday, December 20, 2017 at 8:45:40 AM UTC+1, Evan Balster wrote: > > >> Made another plugin for my own use; some here might find it helpful: >> >> http://evanbalster.com/tiddlywiki/csv_unpack.html >> >> It parses imported CSV files, converting each row

[tw5] Re: TW Twitter -- Computational Notebooks in TW? ...

2018-05-12 Thread Evan Balster
Hello, all — Regarding what I mean by "computational notebooks" and why I took the time to write a robust math plugin: I think it's really valuable to be able to interactively model information as part of a note-taking and problem-solving process. TiddlyWiki was already very good at doing

[tw] Re: Condition: An if-else plugin for wikitext

2017-12-30 Thread Evan Balster
Whoopsie! I found errors with the "match" parameter and when the widget is refreshed. Late night work can be pretty sloppy, eh? Here's the latest, 0.1.1: https://evanbalster.com/tiddlywiki/condition.json - Fix an error when refreshing the condition widget. - Fix "match" attribute not

[tw] Re: Condition: An if-else plugin for wikitext

2017-12-30 Thread Evan Balster
; > > $if: > <$if not value={{<>}} match="show"> > > \define get-note-state() > $:/temp/state/$(currentTiddler)$-$(_notetype)$-$(unique)$ > > LOL... I think I *am* going to need another var :) > > > On Saturday, December 30, 2017 at 3:32:05 PM UTC-

[tw] Re: Condition: An if-else plugin for wikitext

2017-12-30 Thread Evan Balster
Oh, wait, sorry, shoot. That won't work at all, it'll just expand to the string of the transclusion. Yeah, you're going to have to set another variable, or use <$tiddler> or something. On Saturday, 30 December 2017 16:27:12 UTC-6, Evan Balster wrote: > > OK, so this is a

[tw] Re: Condition: An if-else plugin for wikitext

2017-12-30 Thread Evan Balster
: > > > > On Saturday, December 30, 2017 at 4:28:12 PM UTC-6, Evan Balster wrote: >> >> Oh, wait, sorry, shoot. That won't work at all, it'll just expand to the >> string of the transclusion. >> > > Right. And why I said (wished) $if accepting a TextReference (lik

[tw] Re: Condition: An if-else plugin for wikitext

2017-12-30 Thread Evan Balster
that a macro can't define *only* the opening tag of a widget; it needs to define the content and closing tag as well... On Saturday, 30 December 2017 15:24:20 UTC-6, coda coder wrote: > > Hi Evan... > > On Friday, December 29, 2017 at 11:54:54 PM UTC-6, Evan Balster wrote: >> >>

[tw] Re: Condition: An if-else plugin for wikitext

2017-12-30 Thread Evan Balster
on the formula plugin. On Saturday, 30 December 2017 16:48:47 UTC-6, Evan Balster wrote: > > Honestly, stuff like that is why I'm making the formula widget. > TiddlyWiki doesn't do nested expressions, formula does. The only missing > piece is a transclude function accepting a string

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-29 Thread Evan Balster
n tiddler is > via its disposition, then using tools I provide to query such dispositions > the user effectively gains an unlimited number of solutions and > applications. > > For my business it turbo charges rapid development of solutions. > > This is the virtuous circle of a healthy open so

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-29 Thread Evan Balster
ween, with a progress bar of days so far relative to today > > \define showtodayrange(datefield1,datefield2) > > \end > > Regards > Tony > > > On Saturday, 30 December 2017 10:59:55 UTC+11, Evan Balster wrote: >> >> Formula 0.1.7 released: ht

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-29 Thread Evan Balster
t; variable=incperiod> >> >> <$set name=multiple value="1"> >> <$set name=label >> value="(={{!!dateinc}}*<>=)<>"> >> <$set name=newdate value="(=to_tw_date(add_days(<&g

[tw] Re: 2017 was? 2018 hopes?

2017-12-31 Thread Evan Balster
Hey, all — > *What were your favorite Tiddly moments in 2017?* > Letting myself go hog-wild and build a bunch of TiddlyWiki plugins and modifications I've wanted for a long time. :) *What are you hoping for in 2018?* > I have a lot of reasons to dial back my efforts extending TiddlyWiki,

[tw] Re: Condition: An if-else plugin for wikitext

2017-12-29 Thread Evan Balster
; Hello Evan, > > This is *great*, > with your additions you're addressing lots of problems I'm facing right now > > Thanks for your efforts and contributions! > > I'd very much like to see this in the core, is there a chance? > > kind regards, > Simon > > Am Samsta

[tw] Condition: An if-else plugin for wikitext

2017-12-29 Thread Evan Balster
Introducing the *condition* plugin. (Version 0.1 attached, docs included) It provides *$if*, *$else* and *$else-if* widgets that choose whether to show or hide their contents based on simple text conditions. It pairs well with my formula plugin

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-21 Thread Evan Balster
tly, Ive had > tiddlers with two or more of these fields, leaving me with more than one > which is undesirable. I was thinking of using this plugin to solve > that. > > On Thursday, December 21, 2017 at 2:38:47 PM UTC-6, Evan Balster wrote: >> >> Hey, Diego — >

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-21 Thread Evan Balster
ks again for all your hard work > > Diego > > On Thursday, December 21, 2017 at 7:33:46 PM UTC-6, Evan Balster wrote: >> >> Hey, Diego — >> >> Currently boolean expressions use JavaScript's concept of "truthyness" >> <https://developer.mozilla.o

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-22 Thread Evan Balster
e design to > deployment times. > > Be aware, I for one, and I presume many others, are very grateful for your > work here. I can only wish you all the best in return and thank you deeply. > > Regards > Tony > > > On Saturday, 23 December 2017 10:41:25 UTC+11, Evan Bals

[tw] Re: Announcing v0.0.11 of TiddlyDesktop

2018-01-10 Thread Evan Balster
Hey, Jeremy — Works like a charm, and appears to clear up the "back button" crash. I would also like to see a feature to disable or at least throttle backups (eg, one per hour at most)... Fixing the limitations on wiki folders could also be neato. On Wednesday, 10 January 2018 09:22:16

[tw] Re: Removing empty space between numbers with macro

2018-01-08 Thread Evan Balster
Ordinary macros can't remove whitespace — only add. With my formulas plugin installed, you could remove the spaces from {{!!webid}} using this macro-call: <> (This would replace {{!!webid}} in your example.) If you need to replace other

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2018-01-15 Thread Evan Balster
the tiddlywiki file directly, to eliminate your plugin. > > Regards > Tony > > On Monday, January 15, 2018 at 4:05:05 PM UTC+11, Evan Balster wrote: >> >> *Formula 0.2.0 released*: >> https://evanbalster.com/tiddlywiki/formulas.html >> GitHub and issue tracki

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-01-18 Thread Evan Balster
ys to improve the plugin's error reporting. Specifically, it's often used in places (attributes, SVG) where error text won't be visible... It's also useful to know when an error originates inside a certain function, LET value or transclusion... On Wednesday, 17 January 2018 01:15:24 UTC-6, Evan Balster

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2018-01-15 Thread Evan Balster
22.01 >- map(function(x):(x*x* & ','*), [tag[Expenses]get[value]]) > - 4.1208999, 2.2201, 222.010002, > > Diego > > On Monday, January 15, 2018 at 10:26:27 AM UTC-6, Evan Balster wrote: >> >> Hey, Tony — >> >> The JavaScript

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2018-01-16 Thread Evan Balster
> change the amplitude/ period of a sine graph (given a suitable starting > equation). > > Insights from the shallow end. > > Ste > > > > On Tuesday, 16 January 2018 06:08:44 UTC, Evan Balster wrote: >> >> Good catch, Diego. This is actually a symptom of a

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-01-19 Thread Evan Balster
nitTest%2FFunctions%2Fnth%2Fsorted-return > > Which do you think we should stick with? > > Diego > > On Friday, January 19, 2018 at 1:28:44 AM UTC-6, Evan Balster wrote: >> >> Bug(s) confirmed — array and date formatting aren't working correctly. >> Need to invest

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-01-18 Thread Evan Balster
Bug(s) confirmed — array and date formatting aren't working correctly. Need to investigate why. There is also an issue with parsing block comments in Formula 0.2.1, which has been fixed in the repo. Suggested format for unit-test and bug-repro contributions: - Tag with "FormulaTest" -

[tw] Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-01-16 Thread Evan Balster
Announcing the second generation of my formula plugin for TiddlyWiki. See the *Formula wiki* for the latest documentation: http://evanbalster.com/tiddlywiki/formulas.html *Report issues and view source GitHub*: https://github.com/EvanBalster/TiddlyWikiFormula Formula lets you do

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-01-16 Thread Evan Balster
a function is declared, not where it is used. - Added the join function, which is simpler than textjoin. - Fixed a major error in value conversion that caused a reversion to JavaScript behaviors. - Fixed the transclude_index function. On Wednesday, 17 January 2018 01:15:24 UTC

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2018-01-13 Thread Evan Balster
Hello, Simon — The latest version of Formula has some implementation errors in the modulo, trim and subtitute functions. These have been found and patched, but the change isn't yet released, as I'm working on some major enhancements for release today or tomorrow. Added a GitHub issue to

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2018-01-13 Thread Evan Balster
Hey, all — I get 5.6005 as a result (instead of 5.6). > Right now formula uses the JavaScript style for displaying numbers by default, and it's pretty terrible. The inaccuracy is "floating point" error and any reasonable system would round it off somehow. To get rid of it, refer

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2018-01-14 Thread Evan Balster
29 UTC-6, coda coder wrote: > > Ah, the joys of IEEE-754... > > <$if "anyone wants to see the gory details of fp in javascript (and a slew > of other languages all of which are dependent on today's CPUs)"> > https://www.h-schmidt.net/FloatConverte

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2018-01-14 Thread Evan Balster
253A%2520Line%2520Graph=D=1=AFQjCNFVSpeFn8xtN3K92Vtj1tjZ5XXD7Q> > > Regards > Tony > > > On Monday, 15 January 2018 16:05:05 UTC+11, Evan Balster wrote: >> >> *Formula 0.2.0 released*: >> https://evanbalster.com/tiddlywiki/formulas.html >> GitHub and issue tracking

[tw] Re: Removing empty space between numbers with macro

2018-01-09 Thread Evan Balster
Hey, Tob — I made a "condition" plugin for situations like that. TiddlyWiki's built-in reveal widget has a similar purpose but only considers the "text" field of a target tiddler. <$if value={{!!webid}}><$macrocall ...> Plugin here: https://evanbalster.com/tiddlywiki/condition.json On

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-02 Thread Evan Balster
ou get a chance. > > Best, > Diego > > On Friday, January 19, 2018 at 1:28:44 AM UTC-6, Evan Balster wrote: >> >> Bug(s) confirmed — array and date formatting aren't working correctly. >> Need to investigate why. >> >> There is also an issue with parsi

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-01 Thread Evan Balster
gt; >> * <> >> >> >> >> Does formula let you do this type of cascading? >> >> On Thursday, February 1, 2018 at 2:32:34 PM UTC-6, Diego Mesa wrote: >>> >>> Hey all, >>> >>> I am trying to use this plugin in button actions like so

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-01 Thread Evan Balster
gt; > Hi Evan > > On Thursday, February 1, 2018 at 3:24:58 PM UTC-6, Evan Balster wrote: >> >> >> That would look something like this: >> >> <$formula-vars $dict=""" >> dict( >> t1 = 0, >> t2 = <>, >> t

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-04 Thread Evan Balster
nd > > > <$if value=(={{!!$datefield$}}=)> > Has value (=date({{!!$datefield$}})=) > <$set name=indate value= (=date({{!!$datefield$}})=)> > > <$else> > No Value (={{!!$datefield$}}=) > <$set name=indate value=(=now()=)> > > > The above als

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-03 Thread Evan Balster
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

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-09 Thread Evan Balster
Sunday, February 4, 2018 at 2:09:26 AM UTC-6, Evan Balster wrote: >> >> Hey, Tony — >> >> The tw_date function should do what you want: It manually turns other >> things into dates, bypassing the normal "interpretation" mechanism. It >> will accept

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-18 Thread Evan Balster
t; Sorry, I have little code experience and I do not know what the error is. > > TIA > > Manoel. > > > Em quarta-feira, 17 de janeiro de 2018 05:15:24 UTC-2, Evan Balster > escreveu: >> >> Announcing the second generation of my formula plugin for TiddlyWiki. >

  1   2   >