I imagine my brain as a bunch of hamsters spinning away in the far recesses
of my subconscious mind.
Just when I manage to spell out my thoughts on something, after a little
bit one of those damned hamsters spin out a "ah, but what about this?"
An alternate "save tiddler" button ! (Well, maybe alternate actions for
existing save button, but I'm thinking that would be harder for some
reason.)
This alternate "save tiddler" button would parse the text of a tiddler,
replacing every @fieldname:value reference with creation of the field with
that value and replacing with {{!!fieldname}}.
I think.
Something like that. Might be ugly. Might be slow. Might not work at
all. But might work, with some serious rolling up of sleeves, untucking of
all wedgies, and burning the midnight oil.
Or might be easy as pie. Just waiting on any one of them hamsters to spin
something at me.
On Friday, April 23, 2021 at 10:57:13 AM UTC-3 Charlie Veniot wrote:
> But then I would sometimes qualify, responding to users, with a "but it's
> going to cost ya."
>
> With a soupçon of (i.e. a whiff) "just because we can do it doesn't mean
> we should."
>
> I'm thinking some javascript would be necessary. Javascript and I do not
> along get.
>
> I do have thoughts about doing this via pure/pristine TiddlyWiki magic.
>
> - One would involve a "process this tiddler's content" button to parse
> through the entire content of the tiddler's text and then turn into fields
> whatever looks like fields. So not at all on the fly.
> - The other would wrapping every field with a transclusion (using your
> example: {{value@fieldname||MakeField}} ), which would plop a button
> right
> there for you to press on (after save of a tiddler) which would create the
> field in the tiddler and put the value in the field. From that point on,
> the transclusion would display the value from the field instead of a
> button. Again, not on the fly.
> - A macro could be used instead, but it would be the same result,
> so just a matter of personal preference re transclusion versus macro
> *(I
> always go transclusion unless there is a technical benefit to go macro
> instead*)
>
> Just like putting [[This New Tiddler]] in the text of some tiddler does
> not automatically create that non-existent "This New Tiddler" until one
> manually clicks on the link (i.e. manual intervention required to actually
> create the tiddler), the same goes with fields: manual intervention
> required. That seems like a smart thing to me security-wise. If full
> auto-creation of tiddlers and fields could happen, then imagine some
> malicious code madly auto-creating tiddlers and fields in a TiddlyWiki to
> the point of effectively causing a "denial of service" attack, totally
> locking/killing your TiddlyWiki.
>
> With javascript, I'm betting it could be done. But I'm thinking it might
> not be such a good idea.
> On Friday, April 23, 2021 at 6:23:41 AM UTC-3 [email protected] wrote:
>
>> So Charlie, tell me, can it be done, what i want? On the fly? :-)
>>
>> Ray
>>
>> Op vr 23 apr. 2021 om 04:22 schreef Charlie Veniot <[email protected]>:
>>
>>> To paraphrase what I always told my users in the twenty-five year career
>>> I loved:
>>>
>>> "We can get TiddlyWiki to do anything short of pumping out toast!"
>>>
>>>
>>>
>>> On Thursday, April 22, 2021 at 10:22:50 AM UTC-3 PMario wrote:
>>>
>>>> On Thursday, April 22, 2021 at 1:24:45 PM UTC+2 [email protected]
>>>> wrote:
>>>>
>>>> I dont know if it yet exists but i would like to know if it is possible
>>>>> to
>>>>> create (or fill existing) fields within a tiddler.
>>>>>
>>>>
>>>> Everything is possible. (almost ;) ...
>>>>
>>>> This is my text i write in the tiddler about subject so and so
>>>>> @fieldname:value (for instance: @due-date:20210912 and that field
>>>>> due-date is created
>>>>> or filled with value 20210912)
>>>>> If possible more than 1 field in a tiddler.
>>>>>
>>>>
>>>> I think, there is a plugin somewhere, that knows how to create tags in
>>>> a similar way.
>>>>
>>>> https://ibnishak.github.io/Tesseract/pluginsandmacros/hashtag2tag.html
>>>> ... found it, but don't know if it still works ;)
>>>>
>>>> -mario
>>>>
>>> --
>>> 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/245c3f25-dce0-4c97-bb70-b2548ddc271en%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/tiddlywiki/245c3f25-dce0-4c97-bb70-b2548ddc271en%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
--
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/43829bb1-30aa-48f3-8ddb-6bfbbab76ec0n%40googlegroups.com.