[twdev] Backend protocol in TW5

2018-02-18 Thread joearms
Hello, I'm running the node backend downloaded from https://github.com/Jermolene/TiddlyWiki5 and was wondering exactly what the protocol between the browser and backend was. At a guess it's JSON over HTTP (I might be wrong) - is the protocol *specified* somewhere or do I have to read the code

[twdev] Re: Backend protocol in TW5

2018-02-20 Thread joearms
ler subset of TW5 (ie smaller than empty.html) which gets you to the point where only get/put tiddler requests can be processed??? Cheers /Joe On Sunday, 18 February 2018 16:07:47 UTC+1, joearms wrote: > > Hello, > > I'm running the node backend downloaded from > https://gi

Re: [twdev] Backend protocol in TW5

2018-02-19 Thread joearms
Thanks Jeremy - Actually I did some experiments I set up a relay server to log all messages between the Tiddly wiki and the node backend. This is what happened (Messages always start from the TW - these are the HTTP messages involved) 1) "OPTIONS /" response 404 Not found (I had to look up

[twdev] Serving external resources from TW5 node server

2018-03-03 Thread joearms
I'm using TW5 node server. In order to add a local image from an external (ie not the node server) server I did this : 1) create a tiddler image.jpg 2) set the mime type to image/jpg 3) set _canonical_uri to the correct address in this case http://localhost:9000/image.jpgwhich is where

[twdev] Understanding TW code

2018-03-04 Thread joearms
Hello, I'm trying to understand how to program the TW - right now what I'm doing is reading the source of individual tiddlers and guessing what the code means. This is a rather time consuming process, and unsatisfactory, to the extent that if something works, I'm not sure if it works because I

[twdev] Total confusion

2018-03-04 Thread joearms
Hello, I'm *very* confused - using TW5 node server In my Recent tab I have a tiddler called "Draft of 'My test tiddler'" If I click on them I get a tiddler in an open editor And the top Left hand corner says Draft of 'My test tiddler' (so I'm editing the draft) If I click on the Dustbin it

[twdev] Re: Understanding TW code

2018-03-04 Thread joearms
On Sunday, 4 March 2018 19:11:43 UTC+1, Mat wrote: > > Hi Joe. > > You have much, and good, documentation at tiddlywiki.com > (I'm curious, for constructive purposes: How come you have not seen this?) > I have and I keep a local copy and search in it. > > Some specific questions of yours: >

[twdev] Re: Understanding TW code

2018-03-04 Thread joearms
On Sunday, 4 March 2018 20:10:33 UTC+1, Simon Huber wrote: > > >> And a followup question.- I searched for semantics evaluation etc. but no >> hits. >> >> Is there a description of how a tiddler gets turned into HTML? >> >> If I were to implement this I'd be thinking >> >> tokenize -> parse ->

[twdev] Re: Total confusion

2018-03-05 Thread joearms
On Monday, 5 March 2018 11:26:53 UTC+1, PMario wrote: > > Hi Joe, > > That's intentional. The "Draft of" tiddler is a "clone" of the tiddler you > want to edit. > Using the draf to edit a tiddler is the only way to implement a "canceling > system", which reverts back to the original. > >

[twdev] Manually adding tiddlers in TW5 - why are they not detected?

2018-03-02 Thread joearms
I'm using the node server version of TW5 As an experiment I thought I could just drop new .tid files into the tiddlers sub-directory but the system does not seem to find these files. 1) I made a tiddler called Hello This gets saved in the tiddlers directory in a file Hello.tid 2) I

[twdev] Keeping all old versions of a tiddler TW5 server

2018-03-02 Thread joearms
Can I keep all old versions of a tiddler in TW5? Would this be a good idea? (Why? because I made a Wiki a few years ago that did this - and the overheads were quite small - if you diff and compress the files) /Joe -- You received this message because you are subscribed to the Google Groups

[twdev] Large Attachments TW5

2018-03-02 Thread joearms
I was wondering about attachments in the node/server version of TW5 It might be me but I find the act of attaching a file to TW5 overly complicated, and I still haven't figured out how to do this :-( What I'd like: In the TW file system there is a directory called 'attachments' (parallel to

[twdev] Re: Manually adding tiddlers in TW5 - why are they not detected?

2018-03-02 Thread joearms
On Friday, 2 March 2018 18:20:04 UTC+1, Simon Huber wrote: > > my last guess: the node process should be restarted > Yes - silly me - I should have thought of that. I guess the node server assumes that nobody else will muck around with the tiddlers sub directory while it is running - a

[twdev] Re: Manually adding tiddlers in TW5 - why are they not detected?

2018-03-02 Thread joearms
On Friday, 2 March 2018 18:16:55 UTC+1, Simon Huber wrote: > > > I'm using the node server version of TW5 >> >> >> As an experiment I thought I could just drop new .tid files into the >> tiddlers sub-directory but the system does not seem to find these files. >> >> >> 1) I made a tiddler called

Re: [twdev] Keeping all old versions of a tiddler TW5 server

2018-03-02 Thread joearms
On Friday, 2 March 2018 18:52:22 UTC+1, Jeremy Ruston wrote: > > Hi Joe > > Can I keep all old versions of a tiddler in TW5? > > > It isn’t supported at the moment. (The TiddlyWeb API does support > revisions, but the TW5 client and server just implement minimalist change > count tracking to

[twdev] Size of a wiki and namespace philosophy

2018-03-02 Thread joearms
Do you 1) Put all your tiddlers in one name space (ie one TW) 2) Put them into different namespaces (one TW per project) Tiddlers should be small (in order to make them reusable) If they are (say) on average c. 300 bytes we could get 3 tiddlers per KB of 3K tiddlers / MB or 3M tiddlers per GB

Re: [twdev] Re: Manually adding tiddlers in TW5 - why are they not detected?

2018-03-02 Thread joearms
On Friday, 2 March 2018 18:45:31 UTC+1, Jeremy Ruston wrote: > > Hi Joe > > Yes - silly me - I should have thought of that. > > I guess the node server assumes that nobody else will muck around with the > tiddlers sub directory while it is running - a restart did the job. > > > The original

[twdev] Re: Size of a wiki and namespace philosophy

2018-03-03 Thread joearms
Goodness - In front of your there are many doors leading to twisty passages - you pluck up your courage and press on "core" - your brain explodes ... Thanks /Joe On Friday, 2 March 2018 23:14:34 UTC+1, PMario wrote: > > As I wrote: Everything is a tiddler: > > You can explore the core

[twdev] Re: [TWX] syntax for supertransclusion and filter evaluation

2018-10-01 Thread joearms
It would be nice to add one more layer of indirection if necessary -- here are some examples {{foo.jpg}} -- transclude an image {{foo.jpg | width:100, height:35} -- translude a image with size {{TiddlerLink}} -- transclude a tiddler {{my_local_file.txt | type:text,

[twdev] Big list of TWs

2018-09-30 Thread joearms
I'm trying to gather a large number of tiddlers for some experiments - I've used the list at the end of this mail this was cut-and paste from various web sites and is by no means exhaustive. From this I found 7075 tiddlers Is their (somewhere) a "big list" of TW5's - or a web site where one

[twdev] Deriving a TW

2018-09-30 Thread joearms
Has anybody written any code to derive a TW from - a set of postings to a forum - postings to a mailing list - a set of HTML documents It occurs to me that h1 tags could be used to split HTML into tiddlers and things like TF*IDF algorithms could be used to derive keywords One would

[twdev] Re: Big list of TWs

2018-09-30 Thread joearms
Thanks - I didn't know about this. This is brilliant - now I have to see if I can recover all the tiddlers :-) Thanks /Joe On Sunday, 30 September 2018 15:38:08 UTC+2, @TiddlyTweeter wrote: > > joearms wrote: >> >> Is their (somewhere) a "big list" of TW5

Re: [twdev] Deriving a TW

2018-09-30 Thread joearms
to create transclusions :-) Cheers /Joe On Sunday, 30 September 2018 15:29:44 UTC+2, Jeremy Ruston wrote: > > Hi Joe > > On 30 Sep 2018, at 09:24, joearms > wrote: > > h1 tags could be used to split HTML into tiddlers > > > You can use the “text-slicer” plugin fo

[twdev] Special formatting of a tiddler with a specific tag

2018-12-09 Thread joearms
I want to format tiddlers with a specific tag in a particular way. I have made two tiddlers 1) called mod:lists:reverse:2 With tag 'erlang_code' and content %% reverse a list reverse([], L) -> L; reverse([H|T], L) -> reverse(T, [H|L]). 2) a tiddler called test_formatting

[twdev] Re: Special formatting of a tiddler with a specific tag

2018-12-09 Thread joearms
he > view template. So you see it twice. > > Have you tripped over yourself? > > Regards > Tony > > On Sunday, December 9, 2018 at 9:27:51 PM UTC+11, joearms wrote: >> >> I want to format tiddlers with a specific tag in a particular way. >> >> I hav

[twdev] Is there an english high level description of how wiki text ends up as HTML?

2018-12-09 Thread joearms
I'd like an overview of how wikitext ends up as HTML 1) macros are expanded ?) html is output or is it 1) wikitext is parsed etc. I have no idea - is this documented somewhere? In particular, how is the interaction with 'magically named tiddlers' managed. I am aware that giving

[twdev] Re: Special formatting of a tiddler with a specific tag

2018-12-09 Thread joearms
Thank you very much Eric, comments in-line Cheers /Joe On Sunday, 9 December 2018 17:05:02 UTC+1, Eric Shulman wrote: > > On Sunday, December 9, 2018 at 2:27:51 AM UTC-8, joearms wrote: >> >> I want to format tiddlers with a specific tag in a particular way. >> &g

[twdev] Understanding state

2018-12-14 Thread joearms
Hello I'm trying to understand the state mechanism. I'm beginning to get a clue so I thought I'd write it down before I forgot. In the "tabs" example there is the following code: ``` <> ``` I made a tiddler called StateWatcher with the following code ``` <$list

[twdev] Silent and Noisy errors

2018-12-14 Thread joearms
I just spent a good half an hour scratching my head. I made the following error I wrote: `<>` Instead of: `<>` (I know it should be a small "p" and not a big "P" - but errors like this (silent errors) are extremely difficult to spot. I call errors like this `quiet errors`. I have no idea

[twdev] Is the code or the documentation correct???

2018-12-15 Thread joearms
I wanted to list all core images so I wrote <> I saw nothing - Am I going nuts? this worked <> This did what I expected - what does the "documentation" say (by that mean https://tiddlywiki.com/#list-links%20Macro%20(Examples)) (I assume this is the definitive version) This example lists

[twdev] Tiddler in live edit preview mode behaves differently to in view mode

2018-12-15 Thread joearms
The code makes two buttons. One to add a tag to the current widget another to remove the tag Works fine in edit mode with live preview. Stops working when I save the tiddler. What's happening here? Cheers /Joe <$button> <$action-sendmessage $message="tm-add-tag" $param="example"/> add

[twdev] Re: Tiddler in live edit preview mode behaves differently to in view mode

2018-12-15 Thread joearms
Solved - but I'm still worried by the fact that live preview and view mode work differently. Solution: Wrap the button code in a fieldmanger like this: ie: <$fieldmangler> <$button ...> ... as below ... <$/fieldmangler> On Saturday, 15 December 2018 10:42:57 UT

[twdev] Re: Tiddler in live edit preview mode behaves differently to in view mode

2018-12-15 Thread joearms
etween the joy of what I can create with the TW since I've seen all these amazing examples and the peculiarities of the syntax. Cheers /Joe > J, x > > joearms wrote: >> >> Solution: >> > Wrap the button code in a fieldmanger ... >> > -- You received th

[twdev] Hoe can I see all core images?

2018-12-15 Thread joearms
This makes a tag with a drop down of all core images <> But this does not list them <> Any ideas why? /Joe -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [twdev] Hoe can I see all core images?

2018-12-15 Thread joearms
"Shadow tiddlers" are the payload tiddlers within plugins. They are hidden > from most operations because they are not "real" tiddlers; this is done to > reduce clutter. > > Best wishes > > Jeremy > > -- > Jeremy Ruston > jer...@jermo

Re: [twdev] Hoe can I see all core images?

2018-12-15 Thread joearms
ag" macro looks for shadow tiddlers by default. The >> list-links macro will only look for shadow tiddlers if you provide an >> appropriate filter that includes them: >> >> <> >> >> "Shadow tiddlers" are the payload tiddlers within plugins

[twdev] Re: Is the code or the documentation correct???

2018-12-15 Thread joearms
s are NOT listed So for example to list all core images (which are shadow tiddlers) we use the following syntax <> Or similar Cheers /Joe On Saturday, 15 December 2018 13:22:00 UTC+1, PMario wrote: > > > On Saturday, December 15, 2018 at 11:38:52 AM UTC+1, joearms wrote:

[twdev] Re: Understanding state

2018-12-15 Thread joearms
On Saturday, 15 December 2018 13:47:23 UTC+1, PMario wrote: > > Hi Joe, > > That <> macro internally uses the <$reveal> widget. The reveal > widget stores it's state in a state-tiddler, as you found out. The strange > number at the end is a hash to make the state tiddler name unique. Unique

Re: [twdev] adding a remote tiddler from github

2018-12-16 Thread joearms
A couple of comments 1) I like the idea of collaborating at the level of "single tiddlers" All I have to do is put a single tiddler on github and publish the address and off we go. 2) Bundles of related tiddlers could be published with names like Tiddler.tid.zip (or something) 3) I

[twdev] Re: adding a remote tiddler from github

2018-12-16 Thread joearms
I made a couple of tiddlers here: - https://joearms.github.io/tiddlers/SharedTiddlers.tid - https://joearms.github.io/tiddlers/A programmers introduction to the TiddlyWiki.tid These pages are made automatically when I push to https://github.com/joearms/joearms.github.io/tree/master

[twdev] Re: adding a remote tiddler from github

2018-12-16 Thread joearms
, 16 December 2018 11:43:26 UTC+1, joearms wrote: > > I'd like some feedback on some tiddlers I've been writing. > > If I publish the tidders on github (ie the individual tiddlers and NOT an > entire TW) > is there a syntax that can be used that can yank in and view the tiddler >

[twdev] Re: adding a remote tiddler from github

2018-12-16 Thread joearms
On Sunday, 16 December 2018 15:30:02 UTC+1, @TiddlyTweeter wrote: > > Do you have an address? > > On Sunday, 16 December 2018 11:43:26 UTC+1, joearms wrote: >> >> I'd like some feedback on some tiddlers I've been writing. >> >> If I publish the tidders o

[twdev] Re: adding a remote tiddler from github

2018-12-16 Thread joearms
u have an address? > > On Sunday, 16 December 2018 11:43:26 UTC+1, joearms wrote: >> >> I'd like some feedback on some tiddlers I've been writing. >> >> If I publish the tidders on github (ie the individual tiddlers and NOT an >> entire TW) >> is there a s

Re: [twdev] adding a remote tiddler from github

2018-12-16 Thread joearms
On Sunday, 16 December 2018 18:18:50 UTC+1, Jeremy Ruston wrote: > > Hi Joe > > I'd like some feedback on some tiddlers I've been writing. > > If I publish the tidders on github (ie the individual tiddlers and NOT an > entire TW) > is there a syntax that can be used that can yank in and view

[twdev] Re: Is there an english high level description of how wiki text ends up as HTML?

2018-12-17 Thread joearms
Sunday, December 9, 2018 at 2:12:06 PM UTC+1, joearms wrote: > > In particular, how is the interaction with 'magically named tiddlers' >> managed. >> > > We call them templates: (list is sorted "simple" to complex) > > - ViewTemplate > - EditTemplate >

[twdev] Scope of macros

2018-12-17 Thread joearms
I was wondering about the scope of macro definitions ... The scope of a macro appears to be 'in the current tiddler where it was defined or any tiddler transcluded from the current tiddler' Here are two tiddlers Tiddler1Test is \define foo() say bar \end in tiddler 1 foo=<>

[twdev] Re: Scope of macros

2018-12-17 Thread joearms
On Monday, 17 December 2018 14:28:03 UTC+1, PMario wrote: > > Hi Joe, > > In TW macros are internally handled as variables, similar how the <$set > widget defines them. <$set variables only work within <$set> x . > macros do have a "tiddler-scope" > > If you want to use macros defined in

[twdev] adding a remote tiddler from github

2018-12-16 Thread joearms
I'd like some feedback on some tiddlers I've been writing. If I publish the tidders on github (ie the individual tiddlers and NOT an entire TW) is there a syntax that can be used that can yank in and view the tiddler from any other TW?) I realise this breaks security - but would be very