[IDEA] Advanced Edit Mode?

120 views
Skip to first unread message

dieg...@gmail.com

unread,
Apr 30, 2021, 3:23:41 PM4/30/21
to TiddlyWiki

Hello all,

I hate to beat a dead horse but I still think an "advanced edit mode" would be very useful. I'm trying to develop a proof of concept, but I am having some trouble. I've broken it down into the following pieces/questions notes.

This is just to start the conversation again and see if anyone can help me hobble along towards a proof of concept.
  • An edit text widget whose contents will show the ".tid" version of a tiddler
    • Important tiddlers for this part: $:/core/templates/exporters/TidFile which uses the $:/core/templates/tid-tiddler template.
    • You can see it in action and get the "tid" version of any tiddler by doing: {{ || $:/core/templates/tid-tiddler }}
      • Question: This all comes out on "one line". What happens to the "new lines"?
    • Question: How can I populate the contents of an edit-text widget to be the .tid version?
      • It seems it can only edit a field of a tiddler, so Id have to create a new field which is the tid version of a tiddler of interest?
      • Where does the edit-text widget live? Certainly not in the tiddler of interest itself.
  • Assuming the above works, when saving, the content of the widget needs to be "imported"/parsed back to overwrite all fields of the tiddelr of interest.
    • Question: Can/should I use the import mechanism here?
Note: This mode would be very very useful in quickly defining fields, but it would be supercharged when paired with multi-line fields (which is currently not supported - I wish!!)

Thanks,
Diego




Charlie Veniot

unread,
Apr 30, 2021, 4:06:16 PM4/30/21
to TiddlyWiki
Are you talking about a custom form (however simple or elaborate) to edit tiddlers?

A button on a tiddler (say a source tiddler) that would open a simple "editor tiddler" (as a modal) for editing the source tiddler?

Charlie Veniot

unread,
May 1, 2021, 12:43:22 AM5/1/21
to TiddlyWiki
Okay, a semi-matching no-fuss-no-muss solution?  Alternative tiddler editor: text à la JSON
On Friday, April 30, 2021 at 4:23:41 PM UTC-3 dieg...@gmail.com wrote:

dieg...@gmail.com

unread,
May 3, 2021, 8:31:39 PM5/3/21
to TiddlyWiki
CJ

Thank you! This is a great start and will help me out a lot!

Charlie Veniot

unread,
May 3, 2021, 8:38:46 PM5/3/21
to TiddlyWiki
Hey, I had a blast putting that together.  If you can tweak that thing to fit what you want to do, then I'll be in a celebratory mood !
Reply all
Reply to author
Forward
0 new messages