## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### Activity
vielebny
@vielebny
1. tiddlywiki kompendium --init server
1. tiddlywiki kompendium --listen
1. forever start --spinSleepTime 10000 ./usr/local/lib/node_modules/tiddlywiki/tiddlywiki.js ./ --server 5678 $:/core/save/lazy-all "" "" "" "" 0.0.0.0 "" Any suggestions? @yanderella:sibnsk.net [m] 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! PS: Again you can still use --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. @yanderella:sibnsk.net [m] @vielebny: Sorry, I forgot to mention your name, so that you can get a notification when you have time to look at it that you got an answer. (Not sure if this is needed for you, but just in case since I personally reply slow) vielebny @vielebny @yanderella:sibnsk.net Thank you for response. I will check right away vielebny @vielebny @yanderella:sibnsk.net With your command it works like a charm. Perfect! PS. I deleted original question so my qnap link won't be exposed for longer time. @yanderella:sibnsk.net [m] @vielebny: Awesome! I am happy that I was able to help! I hope you have fun using TiddlyWiki and a peaceful day/night! ejmoog @ejmoog Hello! MAY I ask a queation ? How to sort the items in the MenuBar? @yanderella:sibnsk.net [m] @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: https://streamable.com/l0h9up 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. ejmoog @ejmoog Thx for your reply, after that I found the answer, add a field named 'list' and input the title of the tiddlers as the value, seperate them by whitespace, then the arrange set. @yanderella:sibnsk.net [m] 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 @ejmoog @yanderella:sibnsk.net thx a lot, because I am using the mobile, so I do not figure out how to 'drag and drop'. ejmoog @ejmoog I will try it out when I return to my PC, I think if there has another way to sort the item within the mobile, such as a plugin, it would save the time. @yanderella:sibnsk.net Thank you! @yanderella:sibnsk.net [m] @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 Note that instructions say that the HTML file must be saved twice before it works. So essentially saving and reloading twice after you install it instead of one like most plugins. ejmoog @ejmoog @yanderella:sibnsk.net It looks good to have the method to drag and drop, but the plugin is not working in my mobile, android 5.1, android6. ejmoog @ejmoog What I want is the up and down button, but no where can see it. Another queation is, if I want to list the children of a tiddler, I must type the title again, such as <<list-links "[tag[Languages]]">>, Languages is the title. Why it has not a way to call the current tiddler title? @yanderella:sibnsk.net [m] 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. ejmoog @ejmoog I try three mobile browser, Opera, firefox, chrome, so I comfirm that I can not drag and drop with my device. When I hold on an item, it open the link or select text. 1 reply <<list-links "[tag<currentTiddler>]">> is the answer, thx! And, why I have not saw that in the official document? Even the tiddlywiki.com source is type the title again. 1 reply @yanderella:sibnsk.net [m] For example, I don't know how to use storyTiddler and never encountered it... But it is there and that link I gave you suggests me to compare them so there is more to learn for me too, but again non linear way ejmoog @ejmoog @yanderella:sibnsk.net I know the non linear way, people only gain the knowladge knowledge when he see it or need it ^-^ qbit @qbit:tapenet.org [m] nead, widdler was on the front page of hacker news over the weekend :D Devin Weaver @sukima I saw. Looked awesome. Then I read the comments. Bad idea. Those people… 😞 qbit @qbit:tapenet.org [m] heh, there were some good ones! qbit @qbit:tapenet.org [m] mainly openbsd and nixos when i have to linux :D ejmoog @ejmoog i have some question, we know that """ quote the long string, and if i want ' """ 'in this long string, how can i convert it? @wisdomlight markdown is one of the tw official plugin, do you know how to find and install it? if not , see the official site. @yanderella:sibnsk.net [m] @ejmoog: Making a variable instead is my most impulsive answer to this question. However, there may be better ways that I cannot think of at the moment. So until more experienced than me answer your question, you can have my idea, even if it is not much. \define str() Very """ Long """ String 'where' I can have any "quotes" \end <$text text=<<str>> />
ejmoog
@ejmoog

@yanderella:sibnsk.net I defined a 'copyblock'macro: \define cpblk(src)
<<copy-to-clipboard """$src$""">>

<pre><$text text="""$src$"""/></pre> \endthe question is how to copy the block script itself in another tiddler? Such as this one: <$macrocall $name="cpblk" src=<<str>> /> the <<str>> can not contain ' """ ' . @yanderella:sibnsk.net [m] @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
@ejmoog
@yanderella:sibnsk.net It works for me too, thank you very much!
ejmoog
@ejmoog
I have a question, if a url is too long, I prefer to set a filed that called url, and set the value. But when I type [[some text|{{!!url}}]]into the content area, it is no use at all. How do I make it?
ejmoog
@ejmoog
I figure out myself, just <$link><$view field="url"/></$link> ejmoog @ejmoog Or use html directly: <a href={{!!url}}>some text</a> ejmoog @ejmoog @yanderella:sibnsk.net I have tried these method above, but none of them work. The only method is type [[some text|url]]into the field value. Please tell me the correct way if you kown. @yanderella:sibnsk.net [m] @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">>` ejmoog @ejmoog @yanderella:sibnsk.net I have learn a lot, thank you! lilx2018 @lilx2018 Hi! One question needed help. I start widdler then open http://localhost:8080/mywiki5.2.1.html#Home(which is Chinese language version). Every time it start with opened "tools"(in Chinese word 工具) page of sidebar . Can I specify the "mynote"(in Chinese word 我的笔记) page when I open http://localhost:8080/mywiki5.2.1.html#Home? I have "start", "mynote", "recent", "tools", "more" 5 pages on the sidebar. ejmoog @ejmoog @lilx2018 Go to "$:/ControlPanel"(控制), click the "info"(信息), type the tiddler title into the "default tiddlers"(默認). And every time you save it, you should switch to the "open" or other sidebar you want, the tiddlywiki would remmember the last opened tab.
lilx2018
@lilx2018
@ejmoog Thank you very much! I get it.
Abhishek Tripathi
@TwistingTwists

Hello everyone,

I customised tiddlywiki for 1,2 things here : https://twabhisheknotes.in/

Now I am thinking I should have a login system for tiddlywiki - so that people can come and login and I can save their edits at https://twabhisheknotes.in/ .