Best Practice: Tiddlywiki and Structure of Long Note

You wrote (most of) the regex :confused:

:flushed:
You have no idea how many times I’ve looked at my code and said, “Who wrote this?”

So do you use CSS to hide away your own tagged areas as you work?

1 Like

With help from Eric and Saq, and the kin plugin, I did get branch level search working. The main advantage is that it uses the toc-expandable macro without modifications. It does require a button, and I know the very thought of all this manual labor strikes fear in the hearts of many TW users. But there you go …

3 Likes

Write more briefly? :innocent:

That is neat and I can see it being very useful in some situations. I imagine you could add keyboard shortcuts as alternatives to the buttons, Enter and Escape perhaps?

Very nice Mark! I assume you find the location of tiddler in tree and then you open the branches up to first level! Very interesting!

This can have many use cases! Maybe its time to publish a plugin :wink:

1 Like

Well, I have now :grin:

3 Likes

plugins_MAS_TOC-Search.json (5.9 KB)

1 Like

You may use Section Editor from kookma library.

Hi, everyone,

I might not have understood the original problem or the sub posts, but I am not an academiologist, coputations major or chefs de 'ordinateur so if my answer doesn’t make any sense to you, forgive me:

This is some of "long" text 

...With serveral paragraphs, 

naturally. 

And here are several citations and references (and other items I'll want in their respective fields). 
(use your imagination, please)

Manually create a JSON tiddler by “Creating a custom export format”: instructions at: https://tiddlywiki.com/#Creating%20a%20custom%20export%20format

Do that but change the extention to .json. Change the description to JSON Raw Text

You could paste your paper into one single tiddler and prefix the whole text with [ and suffix the whole thing with ].

Then you prefix all the individual components paragraphs, citations, etc. with {"title":"title for unique tiddler","text":"

Example:

{"tags":"EnglineerPaper#32","title":"EngineerPaper#32","text":"<list filter="[tag[EngineerPaper#32]]">
{"tags":"EnglineerPaper#32","title":"001 title for unique tiddler","text":"This is some of "long" text
{"tags":"EnglineerPaper#32","title":"002 title for unique tiddler","text":"...With serveral paragraphs,

…etc.

Then suffix each component with "},, but the last one with only "}. Make certain you do not leave any spaces or other characters in a JSON file outside of the ""

in the type field: “text/plain

Export as raw JSON (NOT the regular JSON export)