I've got this idea festering: Add a select widget to the Editor Toolbar, a "insert a widget" widget.
Populate this select widget with a list of "canned" wikitext for pre-configured widgets. Every single item in the select widget will insert, at the cursor location, the wikitext for the relevant pre-configured widget. Each pre-configured widget will have "tiddler" parameter set to the macro <<GetDataTid>> The code for the GetDataTid macro: \define GetDataTid() {{{ [<dataTid>is[tiddler]] [<currentTiddler>addsuffix[ Data]] +[first[]] }}} \end For any widget in a tiddler without the variable <dataTid> defined, GetDataTid will say the Data Tiddler for whatever widget is the title of a tiddler = the current tiddler with suffix " Data" added. If <dataTid> is defined and is a valid tiddler, then GetDataTid will say the Data Tiddler for whatever widget is the title specified by <dataTid>. So as long as I always use the "select widget" widget in the editor toolbar, I should stop running into problems. Maybe? On Friday, April 16, 2021 at 10:50:54 PM UTC-3 Charlie Veniot wrote: > G'day all, > > I have been bitten by this one too many times. This wouldn't happen if I > did not so stubbornly preferred data tiddlers for storing data values, > instead of using tiddler fields. > > But, dang it: I really like data tiddlers for some strange reason. > > As I setup EditText widgets in some tiddler (let's call this a "Form" > tiddler) to maintain values stored in a data tiddler, I often make a > mistake setting up one or more widgets in a way that winds up blowing away > the content of the "Form" tiddler. > > As a trivial/ridiculous simulation that duplicates my regular > self-inflicted drop-kick through the goalposts of life, create a new > tiddler with the following content: > > [image: Screenshot 2021-04-16 10.41.02 PM.png] > > Save that tiddler and type some letter key on your keyboard in this text > field. Wham. Now the tiddler looks something like the following (with > the field "bub" set to whatever key ): > > [image: Screenshot 2021-04-16 10.25.18 PM.png] > > Is there some way for me to tell TiddlyWiki: never allow "index" to be > used with tiddler = currentTiddler (either explicitly set or implicitly > assumed) for any widget? > > > > > > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8f3567d8-43dc-49fc-b11f-593ddc028840n%40googlegroups.com.