sporadic work in progress. caveat emptor: this is a bit of a hack
- add
org-mode
type to TiddlyWiki + render it (now using mooz’s org-js) - edit
tid
files in emacs
see discussion on issue 1530 about how to get TW/TD to monitor + update tiddlers edited externally
also see this tiddlywiki fork
- generate the plugin’s tiddler:
python compileorg.py -save $DIRNAME
where$DIRNAME
is the base path (contains the tiddlywiki.info file) of your tiddlywiki. this will auto-populate a tiddler that is the org-mode plugin. tiddlywiki $DIRNAME --server $PORTNUMBER
[default 8080] / launch TiddlyDesktop
provides a basic tiddlywiki mode that:
- narrows the buffer so the
tid
header metadata is hidden - tries to apply the correct major mode based on the tiddlywiki-specified content type
- updates the timestamps on save
- currently outputting raw html (and not a widget tree) to TW from the plugin
- don’t know how to disable the section header numbers from the html output; this is easily (and probably better) addressed using a stylesheet tiddler, for example:
- create a tiddler, any title, e.g. “org stylesheet”
- important: must give add a tag called
$:/tags/Stylesheet
- set e.g. this text to stylize section header numbers (or hide them, or whatever)
span.section-number {
font-family: monospace;
opacity: 0.2;
margin-right: 0.5em;
}
span.task-status {
padding: 2px;
margin: 2px;
}
span.task-status.todo {
color: red;
font-weight: bold;
}
usually resolved by restarting the server. At present these are minor annoyances.
sometimes when renaming files from the browser. Haven’t looked deeper into cause.
previous commit relied on auto-revert-mode
, which caused a lag from the tiddlywiki server picking up the change and updating the file mtime.
the update mechanism is overridden in this tiddlywiki fork such that auto-revert-mode
is no longer necessary. I don’t know the larger impact of the workaround.
from experience (and not investigation), tiddler files and tiddler titles should have no spaces in them.
TiddlyWiki will convert spaces in titles created through the browser into underscores, but reads the tiddler title from the title
field in the tiddler headers.
This causes some trickiness in the org-style links when editing in emacs. It may be possible to use %20
for spaces in the links. Haven’t bothered trying, but mixing plain spaces and underscores will fail.
node build-executable-javascript.js $PATH_TO_TW_ROOT