I frequently use a single Tiddler to group a bunch of examples on a related topic. For example, I may have one which groups examples for the sed command.
Here is an example:
! Installation
You found a computer that doesn't come with it installed??
! Examples
!! Replacing in-place
It seems like some systems don't behave well when you exclude the
backup file location. Best to just include it and remove it afterwards.
`sed -i.bak -e 's/hi/hello/g' *.go`
!! Using Regex Groups
You have to escape the parens that are part of the grouping. This example looks for
an instance of `somethin` followed by any letter. It upper-cases the final
letter and does not remove the `somethin`.
`sed -i.bak -e 's/\(somethin\)\(.\)/\1\u\2/g' *.go`
! References
* [[Official Manual|https://www.gnu.org/software/sed/manual/sed.html]]
I would love to have a template which generates a table of contents based on the headings in a Tiddler and displays that TOC at the top of the tiddler when rendered. Does such a thing exist? Or what would be the simplest way of creating this if it does not.
Thank you.
TiddlyWiki lacks a possibility to make intra-tiddler links. Jumping around in a single tiddler seems to be impossible as the # is used in other ways.
It may be possible if you just want a list of heading items not actual links to that part of each tiddler.