Help an eternal newbie with node.js for TW5

225 views
Skip to first unread message

David Gifford

unread,
Jan 17, 2014, 8:44:27 AM1/17/14
to tiddl...@googlegroups.com
Hi all

I am trying to get to the point where I can experiment with TW5 on node.js.

I installed node.js, used the command line to install TiddlyWiki, and managed to create a folder in users/dave and edit tiddlers in a browser and have them save as files. Cool! That is pretty good for a non-techie like me.

Now, questions:

1. How do I create folders in other places? I use Microsoft SkyDrive and would like my folder and files to be there. How, after creating a folder and playing with it, then closing node.js, how do I open it again using node.js? Or do I go to the folder and click on the json file?

2. So, if I understand the instructions right at tiddlywiki.com, twfolders in a sense are the equivalent of standalone TWs? That requires some cognitive readjustment on a dual level. TiddlyWiki standalone blurs the boundary between program/app and file. And having a folder and its contents be the equivalent of a standalone is having a folder be the equivalent of both a file and an app. Am I understanding this correctly?

3. My ultimate goal would be to have a few "TiddlyWikis" - you can see I am grasping here - one for productivity and contacts, one for notes, one for images, and then one major one that can include the contents of the others. Is this a doable goal currently? Briefly, how would I approach such a project, in general terms?

4. Within each category there are categories and subcategories. Does one create subfolders? And are those subfolders separate TWs? For example, say I wanted to create a TW for images, and in that would be a section for images of Asia, and I wanted to access the Asia images from within the larger TW but I also wanted it to be easy to find and share just the Asia images with others, how should I think about that? (In other words, I want to see the big picture and have a handle on the most efficient process to use this, so I don't waste a lot of time and become myopic and only use it one way when there are better ways to use it)

Thanks in advance for your help! Dave

Andrew Lister

unread,
Jan 17, 2014, 9:38:24 AM1/17/14
to tiddl...@googlegroups.com
Here's how I'm doing it, on a Mac:

1. Open "terminal" (command line)
2. cd to my Dropbox directory
3. mkdir NewTWFolder
4. cd to NewTWFolder
5. tiddlywiki --server 8090 

[8080 was the port number for my first TW; 8090 is for my second - I'm not sure which numbers are available, but so far via no problem - each TW needs its own port.  And you have to open one Terminal window i.e. one command line process per TW]

6. navigate to http://127.0.0.1:8090 in my browser  

[Are those first four numbers always the same? Not sure]

At the moment I have three TW's open in different tabs of the same browser.  Each is storing its individual tiddler files in its own folder on Dropbox.  They are thus backed up, and accessible (if only as text files) via mobile or elsewhere.  I'm not sure if or how TWEdit, the app for mobile, could work with this.  I don't know about having sub-folders within a TW folder.

Hope this helps - I'm just figuring this out too.


Stephan Hradek

unread,
Jan 17, 2014, 9:59:13 AM1/17/14
to tiddl...@googlegroups.com


Am Freitag, 17. Januar 2014 15:38:24 UTC+1 schrieb Andrew Lister:

6. navigate to http://127.0.0.1:8090 in my browser  

[Are those first four numbers always the same? Not sure]

David Gifford

unread,
Jan 21, 2014, 1:49:01 PM1/21/14
to tiddl...@googlegroups.com
I really only got one very partial answer to my questions in this thread. Would like any help I can get on this.

Dave

Jeremy Ruston

unread,
Jan 21, 2014, 2:02:18 PM1/21/14
to TiddlyWiki
Hi David

1. How do I create folders in other places? I use Microsoft SkyDrive and would like my folder and files to be there. How, after creating a folder and playing with it, then closing node.js, how do I open it again using node.js? Or do I go to the folder and click on the json file?

To re-open a wiki you'd re-run the same command:

tiddlywiki path/to/wiki/folder --server
 
2. So, if I understand the instructions right at tiddlywiki.com, twfolders in a sense are the equivalent of standalone TWs?

Yes, that's right, they are equivalent representations of the same thing.
 
That requires some cognitive readjustment on a dual level. TiddlyWiki standalone blurs the boundary between program/app and file. And having a folder and its contents be the equivalent of a standalone is having a folder be the equivalent of both a file and an app. Am I understanding this correctly?

WikiFolders do not contain their own copy of the TW core in the same way that standalone HTML files do. A wiki folder just contains the tiddler files.
 
3. My ultimate goal would be to have a few "TiddlyWikis" - you can see I am grasping here -

Try "wiki folders" or "TiddlyWiki folders".
 
one for productivity and contacts, one for notes, one for images, and then one major one that can include the contents of the others. Is this a doable goal currently? Briefly, how would I approach such a project, in general terms?

 
4. Within each category there are categories and subcategories. Does one create subfolders? And are those subfolders separate TWs?

Any further subfolders within the "tiddlers" subfolder are ignored by TiddlyWiki; it just hoovers up all the tiddlers it can find within the "tiddlers" folder. So, you can use subfolders for organising your tiddlers. See the tw5.com wiki:

 
For example, say I wanted to create a TW for images, and in that would be a section for images of Asia, and I wanted to access the Asia images from within the larger TW but I also wanted it to be easy to find and share just the Asia images with others, how should I think about that? (In other words, I want to see the big picture and have a handle on the most efficient process to use this, so I don't waste a lot of time and become myopic and only use it one way when there are better ways to use it)

The wiki folder inclusion mechanism is designed to do just that. You'd create a standalone wiki folder for the asia images, and then include it within any other wiki folders that you want to include those images.

Best wishes

Jeremy

 

Thanks in advance for your help! Dave

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

David Gifford

unread,
Jan 21, 2014, 3:33:28 PM1/21/14
to tiddl...@googlegroups.com
Thanks Jeremy! Just what I was looking for.

Dave


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/VDaGsk_NlsY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
David Gifford
Christian Reformed World Missions, Mexico City

David Gifford

unread,
Jan 21, 2014, 6:56:15 PM1/21/14
to tiddl...@googlegroups.com
oops, I didn't tease out my very first question enough.

How do I create a new directory in Skydrive? Is it mkdir filepath directoryname?

Dave

Jeremy Ruston

unread,
Jan 22, 2014, 5:46:37 AM1/22/14
to TiddlyWiki
On Tue, Jan 21, 2014 at 11:56 PM, David Gifford <dgif...@crcna.org> wrote:
oops, I didn't tease out my very first question enough.

How do I create a new directory in Skydrive? Is it mkdir filepath directoryname?

Are you on Windows? You'd need:

mkdir c:\myfolder\mywiki

Alternatively, you can just create the folder in Explorer.

Best wishes

Jeremy.
Reply all
Reply to author
Forward
0 new messages