That’s great!
Here’s my long form tiddler,
How to Use, Maintain, and Update a node.js-based Instance which uses Sections and parts of Shiraz.
The Section-Editor uses a field se-type
to realize which tiddler should be sectionize! In other words, the viewtemplate monitors tiddlers having a field se-type
and triggers the section-editor macro!
Another approach is to define a new content type like
Section Editor (text/vnd.tiddlywiki.section)
or
Section Editor (text/s-tiddlywiki)
but I am not sure, if this is a good practice or not? So, I would appreciate one of developers or @jeremyruston give advices here!
Mime types are standardized. So creating or using text/s-tiddlywiki
is an absolute no go!
text/vnd.tiddlywiki.section
won’t work either. …
Since you don’t change the “type” of the text content. Changing the mime-type wouldn’t make sense. It’s still pure text/vnd.tiddlywiki
as far as I can see.
BUT I didn’t have a closer look at the editor for 2 weeks or so. … I assume your content is still standard wikitext. It’s just the “edit / view template” that is different. right?
If so … No mime-type change !
I can provide links to the specs. … But that’s a deep dive into the “rabbit hole”. … Just tell me
Yes, they are standard wikitext!
Thank you!
Ciao @Mohammad
I am appreciative you produce tools that can make sense to ordinary users.
The whole idea of “sectioning” I think is one of those intuitive things that most any end-user will understand.
TW is exceptionally well equipped for sectioning.
It is nice to see that used so explicitly.
Just a comment
TT
Thank you Josiah!
I am happy you like it! I also appreciate your ideas, critical reviews and your support!
I should extend my appreciation to @Mark_S, @stobot, @sull-vitsy, @saqimtiaz, @TW_Tones, @Birthe, and @pmario!
Best wishes!
Section Editor has a main macro called section-editor(source, pattern:"")
So, it is quite easy to be used independently! or called whenever you like!
Section Editor 0.9.1 is in the way! It can produce a master tiddler to list several tiddlers ! still have all the features working!
Stay tuned!
I have created my first Patchwork Tiddler using Section Editor!
It aggregates tiddlers using a filter like [tag[demo]]
and create a patchwork tiddler!
Amazingly each tiddler in aggregated is sectionized and one can edit/fold/delete/etc each section!
It supports header and footer! so you can for example add nodes in footer or link to tiddler in the header!
If you use Shiraz then you have unlimited flexibility!
First demo Patchwork Tiddler using Section Editor
Remarks
In the above demo
Every tiddler is shown with optional header/footer
header is: link to title - created date
footer is: backlinks
This example uses Shiraz to beautify header/footer! But Section Editor is independent from Shiraz and one can customize UI as he/she wishes!
Date: Oct 18th, 2021
Update: 0.9.1 (beta)
Section Editor Release 0.9.1
Major change: support for creating patchwork tiddler!
- Oct 18th, 2021
- [NEW] patchwork tiddler to create contents by transcluding several other plain or compound tiddlers
- [NEW] adding header, and footer for each transcluded tiddler
- [New] viewtemplate can handle both single tiddler and patchwork tiddler
- [FIXED] improved docs
- [FIXED] foldstatusTid replace statusTid
Code and demo
- Demo: Section Editor — create, edit, fold, manage sections
- Code: GitHub - kookma/TW-Section: create, edit and manage big and lengthy tiddlers through sectioning
If you like it, star it!
I have all kinds of ideas on how to use this! However, I noticed that expanding or collapsing the sections makes the “dirty” indicator turn red. I have to admit, I haven’t studied the plugin thoroughly so this may be obvious, but is there any way to prevent this? I’d like to be able to collapse or expand a section without the dirty indicator being set.
Could you send a screenshot and show those indicator?
Have you tried different styles?
If you mean the markers, how one realize which heading is collapsible?
I’ll send a screenshot tomorrow.
I probably didn’t explain well. If I open or close a section (which is similar to the details html tag), the dirty indicator turns red which would normally indicate the TW has been edited.
I got what you mean. You can hide it
You can save after change, It does not hurt you
But the reason, Section Editor uses a fold state, so next time you open your wiki you see folding states as when you left your wiki
If still you don’t like it use temp tiddler instead of state tiddler. This can be done from utility macro tiddler in Section Editor
I like the new patchwork tiddlers and the new styles!
I think I found a bug. When I save a section with latex (using katex plugin), it trims the first $'s. A latex equation like this: $$e=mc^2$$
would save like this $e=mc^2$
, thus breaking it. I don’t know why it’s happening when my equations don’t use an exclamation mark.
Here’s a screen recording:
Thanks for feedback. I will have a look, by the way check does it occur when you change and click done e.g save or if you click cancel you have the same behavior?
I suspect the search-replace causes the issue.
It only happens when I click save. Cancel keeps the $$s intact.
Is it or will it be possible to fold sub-headings? Ex: Folding heading 1 folds all lower level headings and content until the next heading 1 (similar to Microsoft Word)?
@sull-vitsy
I think this is a bug in Tiddlywiki search-replace
operator! I am submitting a ticket to GitHub! I will update you!
- open https://tiddlywiki.com/
- create a tiddler with below content
<$vars for="equation $$x$$ end." with="relation $$x$$ finish." source="This is equation $$x$$ end.">
{{{ [<source>search-replace<for>,<with>] }}}
</$vars>
Please see bug report: [BUG] Search-Replace with $ in Search String · Issue #6129 · Jermolene/TiddlyWiki5 · GitHub and join us there!