Two things to comment. First, I followed your instructions how to set it up and the good news is.... I got the very same error locally.
So why it happened? Well, I made a mistake! Basically... We ran the tiddlywiki.js at the current working directory ./
which.... uh.... for me contained folder kompendium
it wasn't that folder. So I tried to enter the folder kompendium
and ran the command then it worked just fine! So I suggest you to check that. Either enter the kompendium
folder or add it to the command relative from the current working directory (or absolute path if you like)
The second thing that I was thinking was, why are you using --server
instead of --listen
... So I was going to tell you that --server
is deprecated while `--listen`` is newer command. Here is a link to read more on that.
https://tiddlywiki.com/#ServerCommand:ServerCommand%20ListenCommand
Also I decided to take your command and make it into a listen command for your convinience, so here is my attempt:
tiddlywiki kompendium --listen port=5678 root-tiddler=$:/core/save/lazy-all host=0.0.0.0
Notice where I put kompendium
, that's what I needed to get it working instead of the current directory (./
)
That should be all!
Tl;dr version (which may not work, since I am guessing): Replace Step 3 with
forever start --spinSleepTime 10000 ./usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js kompendium --listen port=5678 root-tiddler=$:/core/save/lazy-all host=0.0.0.0
Have a good day/night!
--server
, it works too, nothing wrong with it... But --listen
is more readable, this is up to personal preference. Both work like I said, just repeating myself to remove any reason for doubt.
@ejmoog: Normally, I'd give you a written version to follow, however the easiest way to figure this out is a little impractical to write in text (it'd be long) so I will give you a video version of how to do it:
Basically, all you have to do is to find a tag pill (or add your own to a tiddler) that's called $:/tags/MenuBar
and click on it, then drag and drop to rearrange the Tiddlers to the way you want them to be. That's all.
Alternatively, You can make a tag pill in any tiddler you want if you don't want to navigate to settings (which is how I figured it out the tag name that's used) by using the following macro
<<tag "$:/tags/MenuBar">>
And then you save that tiddler and click on the tag pill, rearrange via drag and drop and delete the macro you added if you don't need it.
Yes, that's the "harder" way to do it, because the drag and drop automatically creates the list
field you mentioned. There is also for the specific tiddler that's a MenuBar item also list-before
and list-after
but as a value you must add the name of the tiddler MenuBar item that you want to list this one before or after. This way you avoid making a list
field in the tag, but have a list-before
on a specific tiddler.
More information here: https://tiddlywiki.com/#Order%20of%20Tagged%20Tiddlers
@ejmoog: That wasn't mentioned when you asked the question. However, there is a shim (made as an official plugin) that replicates the drag and drop functionality on Mobile so test it to see if it is works.
Screenshot to guide you: https://i.imgur.com/cPEKFqy.png
Try <<list-links "[tag<currentTiddler>]">>
Up and Down button? You mean to rearrange items with such buttons instead of drag and drop? I don't know of such thing. I cannot assist you further with the drag and drop shim though. I could suggest trying a different browser and see if that helps, if not.. Then you can use other way such as what you mentioned for the list
field or the list-before
/list-after
.
\define str()
Very
"""
Long
"""
String 'where' I can have any "quotes"
\end
<$text text=<<str>> />
<$macrocall $name="cpblk" src=<<str>> />
the <<str>> can not contain ' """ ' .
@ejmoog: Here is what you are missing out... You have to use the macrocall widget instead of the macro calling shorthand syntax with <<copy-to-clipboard "text">>
. Additionally, you have to use macro parameter as variable which happens with <<__parametername__>>
that makes it a variable/macro like, unlike the regular version of $parametername$
which is simply string substitution.
For more information, see "Parameters as Variables <<__...__>>
" in this Tiddler https://tiddlywiki.com/#Macro%20Definitions%20in%20WikiText
Here is the full idea to what you told me and it works for me:
\define cpblk(src)
<$macrocall $name="copy-to-clipboard" src=<<__src__>>/>
<pre><$text text=<<__src__>>/></pre>
\end
\define str()
Very
"""
Long
"""
String 'where' I can have any "quotes"
\end
<$macrocall $name="cpblk" src=<<str>> />
@ejmoog: I am not exactly sure what you are asking... Though I will say if URL is external resource, you pretty much have to use HTML anchor directly... Though it's nice to combine it with target="_blank"
and rel="noopener noreferrer"
However, if it is a link to a tiddler, internally in the same Wiki, you have to use <$link to={{!!url}}>some text</$list>
otherwise it will still work but it won't be that neat.
Anyway, since I am not sure what exactly you are trying to do, I will give you few examples and ideas of 2 macros that you can try to implement for yourself. Maybe your answer is somewhere there....
So here. Screenshot of the tiddler to make it easier to follow, hopefully: https://i.imgur.com/MFsIF5r.png
And the text, so that it is easier to copy/paste and modify yourself.
\define anchor(url, text) <a href=<<__url__>> target="_blank" rel="noopener noreferrer"><<__text__>></a>
\define anchorfield(fieldname, text) <a href={{!!$fieldname$}} target="_blank" rel="noopener noreferrer"><<__text__>></a>
<$link to={{!!url_internalTW}}>Internal Tiddler Link</$link>
<a href={{!!url_externalweb}} target="_blank" rel="noopener noreferrer">Link to external Web Page somewhere</a>
<<anchorfield url_externalweb "Macro field: Link to external Web Page">>
<<anchor "https://tiddlywiki.com/#Macro%20Definitions%20in%20WikiText" "Macro: Link to external Web Page">>