[tw5] Re: Building a filter from parts, unwanted spaces

2018-07-13 Thread TonyM
Jed, Thanks for the suggestions, I have worked through the code and there are little or no opportunities for a break to sneak in to the code. But I will review it with fresh eyes, I will also see if I can make a macro that removes the spaces because I am not keen to add more complexity into

[tw5] [TW5 Bug?] Macros with filter parameter can't handle all filter expressions.

2018-07-13 Thread Michael Z.
To reproduce, just create a tiddler at tiddlywiki.com with the following text: <$macrocall $name="csvtiddlers" filter="[tag]" /> The following

[tw5] Re: [TW5 Bug?] Macros with filter parameter can't handle all filter expressions.

2018-07-13 Thread TonyM
Michael Z., A Quick answer is we can easily pass filters as parameters (not demonstrated here) however life has been much easier for me since I started applying the method below to my own macros However your issue is with a macro to which you pass a filter. Did you follow the notes in

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread TonyM
Talah, I am guessing you use of images is photographs or snapshots which are handled in the way this thread discusses. Personally if I use photos in a tiddlywiki I simply apply the compression and sizing I would do on any website before placing them in the wiki. However for most applications

[tw5] Re: Getting transclusion the whole table of content

2018-07-13 Thread TonyM
Andrej, Good work, I was about to reply with the basic "recursion" approach, where the macro calls itself, importantly from inside a list widget, so it is limited to the set of members in that lists filter. I think a lot of people leave this behaviour to toc macros when you can build it

[tw5] Custom Tiddler $:/Manager?

2018-07-13 Thread Jose Eduardo Mares Dominguez
I've only been using Tiddlywiki for a couple days and I don't know how to code, but I have been messing around with code for the Tiddler Manager to try and create a customized version. I want to get it so that the when you create the custom manager it only shows tiddlers that are tagged with

[tw5] Re: Building a filter from parts, unwanted spaces

2018-07-13 Thread TonyM
Mark, I think this is a bug I stumbled upon previously. Is java script free of bugs? As someone who is yet to learn java-script properly, it is the shortest path for me to use wikitext. But how would you reproduce the list filter structure of tiddlywiki in javascript, I expect it could be

[tw5] Test if a tiddler title is of a particular form

2018-07-13 Thread TonyM
Folks, I have some tiddlers titled in the form name1.name2.name3 I would like to test any tiddler title to test it is of this form, but not sure how to do so, even after some research Basically is it three words separated by "." periods We can assume no other delimiters will be found such as

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-13 Thread 'Mark S.' via TiddlyWiki
TT is the real expert, but this may get you started: \define myregexp() ^\w+?\.\w+?\.\w+?$ <]">> Regexp is SOOO slippery.Without knowing more about your data, and your exact requirements, it's hard to know if this nails it. But you can test and tweak it and see what happens. If you ever need

[tw5] Re: [TW5] Three small plugins, Login, ServerImages, DownloadBinary

2018-07-13 Thread David Gifford
In the Toolmap, I added the first two to images. I added the last one to security and backup tools. Let me know if there are other categories for the first two - would they also go in Importing and exporting between TiddlyWiki files? Blessings. On Friday, July 13, 2018 at 1:05:55 PM UTC-5,

[tw5] Re: How to extract part of a field and sort extracted stuff

2018-07-13 Thread 'Mark S.' via TiddlyWiki
You need a filter that can actually split out the contents you want in Cxyz. Perhaps: https://github.com/Jermolene/TiddlyWiki5/pull/2963 Then you can have an outer list that finds the elements, and an inner list that uses those elements to find the tiddlers that match the elements. --

[tw5] Re: Building a filter from parts, unwanted spaces

2018-07-13 Thread 'Mark S.' via TiddlyWiki
Undocumented, secret-handshake structures is another reason why I would prefer to code in javascript. -- Mark On Friday, July 13, 2018 at 3:22:31 AM UTC-7, Jed Carty wrote: > > I think that normally comes from line breaks in your code that normally > shouldn't do anything. Something like > >

[tw5] Re: Getting transclusion the whole table of content

2018-07-13 Thread Andrej Korenić
Well, I got it working... I don't know how but here is the solution... I created tiddler called Transclude chapters that was tagged with $:/tags/Macro. Code is this: \define transclude_chapters(tag,sort:"",itemClassFilter,exclude,path) <$list

[tw5] Re: Building a filter from parts, unwanted spaces

2018-07-13 Thread Jed Carty
I think that normally comes from line breaks in your code that normally shouldn't do anything. Something like <$list filter=blah> <$reveal blah blah blah> something may give some extra whitespace that you can sometimes remove by doing this: <$list filter=blah><$reveal blah blah blah>

[tw5] Re: Care to beta test Tekkan One?

2018-07-13 Thread Stratos Laspas
Just found out about this. Very excited. I'll look further into it, but it seems as if you've taken this out of my wish list and materialized it! On Saturday, September 30, 2017 at 5:02:23 PM UTC+3, Riz wrote: > > >

[tw5] How to extract part of a field and sort extracted stuff

2018-07-13 Thread Ton Gerner
Hi all, Use case All relevant tiddlers are tagged with tid and contain the field veld. The content of veld can vary as shown in the following table. The for me interesting codes are the ones starting with a character followed by a 3-digit number (bold in the table below). Tiddler Content of

[tw5] Re: Care to beta test Tekkan One?

2018-07-13 Thread 'Alex W' via TiddlyWiki
It would be great, if you could post this in your GitHub Project! I just got to know Tekan and Tekkan, and like it very much. Now I read, it is an abandoned project... I would not have started bringing my open actions into it if I had known about this :-( I will have a look at Dropboard now.

[tw5] Re: Getting transclusion the whole table of content

2018-07-13 Thread Andrej Korenić
Thank you Mark for the effort. It did something partially... What I needed was to transclude all tiddlers that are connected to a root tag, in the similar manner as ToC works: Chapters Chapter 1 Chapter 2 Chapter 2.1 I managed to use TW5 macro to make ToC based on tags and ordered by means

[tw5] Building a filter from parts, unwanted spaces

2018-07-13 Thread TonyM
Folks, I have had this problem in the past but cant find the original solution. The following is returned from a trail of listwidgets, buttons and reveals These values are sourced from two state tiddlers yet returns with a leading space between the two parts and a trailng space. "

[tw5] Re: Getting transclusion the whole table of content

2018-07-13 Thread Andrej Korenić
I found an example at TW5 Magick by Stephan Hradek called Another TOC example but I am still not good enough at TW5 scripting to understand fully how it works... Basically your code from up above gets the list of tiddlers correctly

[tw5] Re: How to extract part of a field and sort extracted stuff

2018-07-13 Thread Ton Gerner
Hi Mark, Thanks for answering. For me it is the first time I use regexp; up till now it was only abracadabra for me (as is Javascript). I am not a coder; just a longtime user of TW. May be I am wrong but I do not see how your regexps filter can bring me more than what

[tw5] Re: I love TiddlyWiki because...

2018-07-13 Thread @TiddlyTweeter
"... Having a way to make on-the-fly links between concepts is beautiful." -- @NinjaBoots88 -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread talha131
Thank you Mark The compromise is to put the images in a relative position to your TW file (in a subdirectory). Then address the image with a relative path: [img[mypath/myfile.jpg]]. This will work everywhere without bloating your TW. Please correct me if I am wrong, this means when I am

[tw5] Re: [TW5] Three small plugins, Login, ServerImages, DownloadBinary

2018-07-13 Thread JD
Hi Jed, Thanks so much for DownloadBinary! It's the one from your above list that I instantly understood (non-programmer here). It'll be handy for my diagram-filled TW. On a side note, I am really looking forward to your online multi-user Bob :D On Saturday, July 14, 2018 at 3:05:55 AM

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread @TiddlyTweeter
Don't put more than a few images in a TW. Images can be large and they will degrade performance if you import many of them. Its slightly different with SVG images as they are much more lightweight. Those you can have more of before hitting performance issues. Overall, IMO, images actually IN

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread 'Mark S.' via TiddlyWiki
When you add images to TW, it rapidly increases the size. TW is not index-driven and is size-sensitive. For me, TW becomes almost unusable around 10 megs on mobile devices. The compromise is to put the images in a relative position to your TW file (in a subdirectory). Then address the image

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread talha131
Thank you again Mark. I think I will stick with hosting images on external hosts. There are desktop tools available that upload image on a single click and then paste the direct link of the image to the clipboard. As for being offline, it happens very rarely. For now, it seems easier setup

[tw5] Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread talha131
I can host images on any free host online like Imgur and then use its link inside a tiddler? Drawback is that image won’t load if I am offline. On the other hand, I can add image to TW and reference it inside tiddlers. My notes will be self contained. But I am not sure how it will affect the

[tw5] Re: How to extract part of a field and sort extracted stuff

2018-07-13 Thread 'Mark S.' via TiddlyWiki
The regexps filter not only finds matches, but turns the matches into output strings. Something like that is necessary when you want to split up lines. The only way (that I can think of ) to do it without a special filter to have an outer list that has ALL possible special codes. Not

[tw5] [TW5] Three small plugins, Login, ServerImages, DownloadBinary

2018-07-13 Thread Jed Carty
DownloadBinary adds an action widget that lets you download the binary version of media stored in a tiddler as a base64 string. That means that if you import a picture into a wiki than you can use this message to download the original image file. If it works well I will make a pull request to

[tw5] Re: How to extract part of a field and sort extracted stuff

2018-07-13 Thread 'Mark S.' via TiddlyWiki
With the regexps filter, the table can be created like this: <$list filter="[has[veld]regexps:veld[(C\d\d\d)]sort[]]" variable="code"> <$list filter="[search:veld]"> <> <$link to={{!!title}}> <$view field="title"/> <$view field="veld"/>

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread talha131
Thank you @TiddlyTweeter. ​ -- 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+unsubscr...@googlegroups.com. To post to this group, send email to

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread 'Mark S.' via TiddlyWiki
Yes. Easiest to do if you keep your images and TW file in the same directory (or images in a subdirectory). Then you can just zip the whole thing and pass it on. -- Mark On Friday, July 13, 2018 at 11:27:07 AM UTC-7, talha131 wrote: > > Thank you Mark > > The compromise is to put the images in

[tw5] Re: How to extract part of a field and sort extracted stuff

2018-07-13 Thread Ton Gerner
Mark, You've made my day! This exactly what I wanted. Thanks again, Ton -- 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

[tw5] Re: New graphviz (diagram and graphs) plugin created

2018-07-13 Thread Sean Boyle
It follows graphviz syntax: "digraph" produces a directed graph, and "graph" produces an undirected (no arrows) graph. On Thursday, July 12, 2018 at 10:57:15 AM UTC-7, Scott Kingery wrote: > > This is interesting. Is there a way to make lines without arrow heads? I > didn't see that in the

[tw5] Re: I love TiddlyWiki because...

2018-07-13 Thread David Gifford
Kim Kardashian is using TiddlyWiki? Time to leave. :-) On Friday, March 9, 2018 at 11:44:33 AM UTC-6, @TiddlyTweeter wrote: > > Last night, I discovered @TiddlyWiki . > My god, I'm in love! > -- @tkarakashian >

[tw5] Re: New graphviz (diagram and graphs) plugin created

2018-07-13 Thread Sean Boyle
EXAMPLE: <$viz text=""" graph B { rankdir=RL; subgraph cluster_a { label="subgraph"; a -- b; } a -- c; } """/> This also contains a subgraph, in case you should find that useful. On Friday, July 13, 2018 at 1:32:02 PM UTC-7, Sean Boyle wrote: > > It follows graphviz syntax:

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread 'Mark S.' via TiddlyWiki
Are you on windows? If so, what is your recommended image upload tool? Thanks!! -- Mark On Friday, July 13, 2018 at 12:17:14 PM UTC-7, talha131 wrote: > > Thank you again Mark. > > I think I will stick with hosting images on external hosts. There are > desktop tools available that upload

Re: [tw5] Re: New graphviz (diagram and graphs) plugin created

2018-07-13 Thread Scott Kingery
Thanks, Sean. That's helpful. I hadn't seen Mermaid until you mentioned it earlier in this thread so I'm looking at that too. On Fri, Jul 13, 2018 at 1:42 PM Sean Boyle wrote: > EXAMPLE: > <$viz text=""" > graph B { > rankdir=RL; >subgraph cluster_a { > label="subgraph"; > a

[tw5] Re: New graphviz (diagram and graphs) plugin created

2018-07-13 Thread @TiddlyTweeter
Am I right in thinking this tool just creates a diagram? That the items within it link to nothing? Just asking. Josiah -- 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

[tw5] Re: Is it better to host images externally rathern than in TW for performance?

2018-07-13 Thread talha131
I don’t use Windows much. But I have had good experience with ShareX . On Mac, I use mac2Imgur . Here is a list of tools that integrate nicely with imgur.