Aside:
Man, I wish you had started a separate discussion thread (with a link back to this one and a link from this one) related to that for a full discussion “over there” instead of intertwingling that with the intent of the original post.
Because what you bring up is worthy of its own thread.
Mostly: I have a couple of cognitive disabilities, and I get confused and overwhelmed when various threads of discussion are all mixed together branching off in really different ways all on the same web page.)
Not your problem, but if I stop participating in this thread (i.e. not answering questions related to the original post), I hope folk understand why I’m out.
Now, back to Riz’ post:
You are referring to this thing which decides whether or not to enter a process of reporting info about all tiddlers to Session Storage:
<$list filter="[[$:/info/url/search]get[text]regexp[action=do_rpt]]">
Although I cannot stand doing things in javascript, there are two scenarios in which I will use javascript:
- there is no choice but to do it in javascript
- it is more painful doing it without javascript than to do it with javascript
What you’re suggesting is an immediate “oh hell no” fight or flight reaction by this kid.
Why on earth would I use javascript when I could just have multiple of those lines for various processing?
For example:
`
<$list filter="[[$:/info/url/search]get[text]regexp[action=do_process_A]]">
…
</$list>
<$list filter="[[$:/info/url/search]get[text]regexp[action=do_process_B]]">
…
</$list>
<$list filter="[[$:/info/url/search]get[text]regexp[action=do_process_C]]">
…
</$list>
<$list filter="[[$:/info/url/search]get[text]regexp[action=do_process_D]]">
…
</$list>
`
That seems pretty clear and concise with just TiddlyWiki syntax.
What benefit would we get replacing that simple code with javascript?