Streams

single tiddler

test

18th August 2020 at 4:35pm
  • This is a tiddler with a list in wikitext format
  • Try editing this tiddler the usual way to verify this.
  • Then try using the "Edit with Streams" button at the bottom.
    • You will notice that you can now manipulate the contents of this tiddler as if it were a Stream tiddler.
    • Once you are done editing, click "save" at the bottom of this tiddler.
    • Your edited content is once again saved as a list in wikitext format.
  • Under the covers this is what is happening:
    • When you choose "Edit with Streams" the tiddler is parsed as a list, and tiddlers are created for each of the list items.
    • Since TW has powerful tools for manipulating tiddlers, we can now use these to edit the list items at a granular level.
    • When you choose to save, the tiddlers are converted back into one single tiddler and then tiddlers that were created for each list item are deleted.
  • This approach allows us to use all the tools for manipulating tiddlers on a per line basis for wikilists, without having to keep our content in multiple tiddlers.
  • There are caveats:
    • Nodes in the stream cannot contain multiline content when used in this manner. Each node is now mapped to a single line with an * preceding it, that is standard wikilist markup.
    • A tiddler edited in this manner can only contain a list and no other content
    • This is an early demo and I have not done any spent any time on UX, workflow or configuring Streams to fit better into such usage. There is a lot of potential for a better workflow.
  • This is only a demo, do not try to use it for anything else at this time as it is likely brittle.