wikilabs / plugins

TW5 plugins: https://wikilabs.github.io
30 stars 8 forks source link

idea - explore the possibilities for dynamic 2 way fields in wikitext #99

Open pmario opened 3 years ago

pmario commented 3 years ago

It would be interesting, to explore "wikitext dynamic fields"

See this post about "protected fields" : https://groups.google.com/g/tiddlywiki/c/AEvEPZaduHE/m/tdnbpaPlAAAJ

The "edit button" may do a "search / replace" if the "OK" is clicked.

eg:

\customize @due-date _type=date _mode=inline _endString="\" "

IMO @due-date:"21 May. 2021" may be an INLINE rule. 
\customize @comment _type=text _mode=block _endString="---"

@comment There may be a multiline text
That can be edited in edit-mode. 
It will be saved on tiddler save
---

The comment-field will be "protected" ... If the edit button is clicked, it will open a new multiline text area. If OK is clicked, the text in the wikitext area will be replaced!

So there is only 1 source of truth. The wikitext.

PROBLEMS

So may be there needs to be better tooling. !!