## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
wisdomlight
@wisdomlight
Hi, I am re trying TW. I am looking for info/resources about 1. Markdown 2. Keyboard shorctcuts - specifically is there a plugin to be able to select any button on the page(e.g the editing button or the start new tiddly) 3. Is there a keyborad shortcut to start a new tiddly?? 4. I installed the vim plugin but I am not sure how to make it work. Thank you .
@yanderella:sibnsk.net
[m]

I am sorry, but I cannot answer all your questions properly. However, I will try...

=1= Official Markdown Plugin can be found here: https://tiddlywiki.com/plugins/tiddlywiki/markdown/ though, there are unofficial ones too I think... but I don't know them (I don't use markdown in TiddlyWiki)

=3= Yes, there is... Alt + n will create a new Tiddler and focus you on the title. You can press Tab to go to Tags section and few times tab to go to Text editing field. I do use that sometimes, so I will also recommend you Ctrl + enter which saves the Tiddler that there is keyboard focus on.

-Partial 4- If you are talking about the VIM plugin found here: https://github.com/sukima/vim-tiddlywiki the description clearly says it is probably best used in conjunction with TiddlyWiki Bob saver https://github.com/OokTech/TW5-Bob

-Partial 2- I think it is possible to customize any button you like and add a specific shortcut to it, however I don't think you can select any button outside of the current tiddler focus (speaking about targetting the pencil button to edit one of the tiddlers that are displayed) [the new tiddler button, I already covered these Alt + n and modifying]. So I don't know of a way to be able to select a button ala selecting a link visually like in qutebrowser (or other Vim browser emulators) with keyboard.
You can see a list of built in Shortcuts in $:/ControlPanel -> Keyboard Shortcuts I am sorry that I cannot provide more complete answers than these. Have a good day/night! vielebny @vielebny It is hosted in COntainer Station with Node.js 17.1.0, Tiddlywiki 5.2.0 Steps I made: 1. npm install -g tiddlywiki 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.

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.
<<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.
@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
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.