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

2018-07-14 Thread @TiddlyTweeter
I'm not a JavaScript programmer but it's possible in TW to get quite raw 
with it to good effect sometimes. But it's mainly limited to the pre-parser 
you get that freedom. I really like and use a lot BJ's Flexity plugin that 
let's me use standard JS regular expressions in TW without the indirection 
needed if you do it the normal way (character classes are really 
complicated). I do think that the "layering" in TW has some consequences 
that are not well documented. "Spacing" is a perennial issue that comes up. 
The \whitespace pragma is an attempt to solve some of them. It's just odd 
that the layout of code should effect the layout of results.

On Sunday, 15 July 2018 00:24:15 UTC+2, Mark S. wrote:
>
> I think this is a bug I stumbled upon previously. Is java script free of 
>> bugs?
>>
>
> Javascript gets pounded on by millions (billions?) of users every day. In 
> the vein of "Gödel, Escher, Bach", there's bound to be some bugs in there. 
> The question is, how long does it take before you encounter an actual bug? 
> In the case of TW5 and spacing problems, I have code from 4 years ago where 
> I couldn't get the spacing right and just gave up on it. Having to squeeze 
> out all the space in order to make something work then makes WikiText 
> harder to read than javascript.
>
> As someone who is yet to learn java-script properly, it is the shortest 
>> path for me to use wikitext.
>>
>
> It's just a simplified c-style language. A reference book on my shelf is 
> from 1996, only 8.5* x 5.5" x 1/2 inch thick, and mostly still relevant 
> today. It's not like Java with tightly maintained data types.
>
> But how would you reproduce the list filter structure of tiddlywiki in 
>> javascript, I expect it could be quite poor at replacing this structure.
>>
>
>
> JS has all the control structures that you would expect from a modern 
> language, including *switch*, *while*, and *for*. An array data 
> structure, object modeling, text manipulation and a full math library. 
> Think how often we've needed or wanted some type of numerical control in 
> TW5. To do anything involving basic arithmetic, you have to use someone's 
> 3rd party kit, because there's nothing relating to numbers as filter 
> operators beyond very simple functionality.
>
> -- Mark
>
>
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/19d1c8cc-1fc2-4baa-a485-0385a1ba132c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How to create list of tiddlers and pass to tabs macro?

2018-07-14 Thread talha131


I am trying to create a list a tiddlers inside tabs

<>

The tiddlers are 

   1. Clean Noise 
   2. Rename File 

I am going to add more to the list.

Is it possible to create a list or an array and then pass it to tabs macro? 
Something like

let aList = [
'Clean Noise', 
'Rename 
'Other example'
];

< default:""  state:"$:/state/tab1" class:"tc-vertical"  
template="$:/talha131/Template/VerticalTab">>

The advantage of this format is clear. I can add tiddlers to the list 
easily. The syntax is clearer than putting everything inside a filter. Is 
it possible?

The obvious work around, I can think of, is to tag those tiddlers and use 
the tag inside tabs macro. But I wonder if it is possible to do without 
creating a new tag for few tiddlers, just to get tabs transclusion working.
​

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/960f4d83-351b-46a1-8d0a-3f0a422d2739%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread 'Mark S.' via TiddlyWiki

>
> I think this is a bug I stumbled upon previously. Is java script free of 
> bugs?
>

Javascript gets pounded on by millions (billions?) of users every day. In 
the vein of "Gödel, Escher, Bach", there's bound to be some bugs in there. 
The question is, how long does it take before you encounter an actual bug? 
In the case of TW5 and spacing problems, I have code from 4 years ago where 
I couldn't get the spacing right and just gave up on it. Having to squeeze 
out all the space in order to make something work then makes WikiText 
harder to read than javascript.

As someone who is yet to learn java-script properly, it is the shortest 
> path for me to use wikitext.
>

It's just a simplified c-style language. A reference book on my shelf is 
from 1996, only 8.5* x 5.5" x 1/2 inch thick, and mostly still relevant 
today. It's not like Java with tightly maintained data types.

But how would you reproduce the list filter structure of tiddlywiki in 
> javascript, I expect it could be quite poor at replacing this structure.
>


JS has all the control structures that you would expect from a modern 
language, including *switch*, *while*, and *for*. An array data structure, 
object modeling, text manipulation and a full math library. Think how often 
we've needed or wanted some type of numerical control in TW5. To do 
anything involving basic arithmetic, you have to use someone's 3rd party 
kit, because there's nothing relating to numbers as filter operators beyond 
very simple functionality.

-- Mark


-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77d8e248-e954-403f-b0f9-cf28e5083373%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread TonyM
Josiah,

I am glad for your help, and marks - I need to jump into regex soon, but it 
seems to require a lot of rote learning - perhaps I can make a wiki for 
that?

In the case in question the three words can only be a-zA-Z

What would I replace \w with for this outcome?

Thank
Tony

On Sunday, July 15, 2018 at 10:40:20 AM UTC+10, @TiddlyTweeter wrote:
>
> Ciao TonyM & Mark S.
>
> Really interesting work.
>
> A few small non-consequential notes on the regex ... This is just for 
> interest.
>
> Marks' ...
>
> ^\w+?\.\w+?\.\w+?$ 
>
> is perfectly serviceable. But it will work simpler too ...
>
> ^\w+\.\w+\.\w+$
>
> ... The qualifying "?" that is to prevent "greedy" matches is not needed. 
> A greedy match here is fine.
>
> One issue is that \w is shorthand for the JS character class ...
>
> [a-zA-Z0-9_]
>
> This means IF you used, for instance, any accented character it would 
> break.
>
> A way round this would be to add the accented characters to an explicit 
> class. But every one would need explicitly adding. Easier would be to use , 
> instead of \w, a negative character class like [^\.] = its not a full-stop.
>
> The only problem with regex character classes in TW is they get a bit 
> baroque to use as they need square brackets so you can't do them directly 
> -- https://tiddlywiki.com/#regexp%20Operator
>
> Just thoughts
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/19cb0297-a7f5-47e1-af61-61378a7885fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread 'Mark S.' via TiddlyWiki
Application level validation. It will be interesting to see how that works 
out.

-- Mark

On Saturday, July 14, 2018 at 12:54:13 AM UTC-7, TonyM wrote:
>
> Mark,
>
> This actually seems to work really well. I always like to return the 
> favour so perhaps you will find this interesting and its implications.
>
> Place the following in a tiddler tagged $:/tags/ViewTemplate
> \define myregexp() ^\w+?\.\w+?\.\w+?$
> <$list filter="[titleis[missing]]" variable=
> "missingTiddler">
> <$list filter="[{!!title}regexp]">
> Tiddler is missing and in w3w format
> 
> 
> <$list filter="[title!is[missing]]" variable="null">
> <$list filter="[{!!title}regexp]">
> Tiddler is in w3w format
> 
> 
>
> Now if a tiddler has a title of the form word.word.word the above will 
> display according to if it exists or not.
>
> Why is this so interesting?
> If someone comes to my online wiki using a link such 
> as mywiki.html#test.w3w.example
> they will open the tiddler mywiki.html#test.w3w.example if it exists
> if it does not exist they will presented with the missing tiddler, which I 
> can code to have a button appear on it, to help the user create the tiddler.
>
> This provides a way to guide a user into creating a tiddler that does not 
> exist by a title they provide, that meets a naming standard. It could be 
> firstname.surname
>
> Regards
> Tony
>
>
> On Saturday, July 14, 2018 at 3:43:00 PM UTC+10, Mark S. wrote:
>>
>> 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 to extract strings, then you will need something similar 
>> to the solution in PR 2963.
>>
>> -- Mark
>>
>> On Friday, July 13, 2018 at 8:45:41 PM UTC-7, TonyM wrote:
>>>
>>> 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 spaces or [[ {{ 
>>> etc..
>>>
>>> I imagine a regex expression can do It, but I have not yet undergone 
>>> this self education
>>>
>>> I want to simply determine if it is true or not and reveal/listWidget 
>>> some wiki text, 
>>>
>>> however one day I may want to extract the three words.
>>>
>>> Thanks in advance
>>> Tony
>>>
>>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6ad33cd7-c20b-4ea6-ac3e-755503564afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to create list of tiddlers and pass to tabs macro?

2018-07-14 Thread 'Mark S.' via TiddlyWiki
What? You think an actual programming language might be easier to 
understand than widgets! Heresy! ;-)

The list field (s) is the closest thing to arrays in WikiText.

So you could put [[Clean House]] [[Rename File]] into the list field of a 
tiddler called "aList". Then your tabs could look like:


<>

-- Mark


On Saturday, July 14, 2018 at 11:46:17 AM UTC-7, talha131 wrote:
>
> I am trying to create a list a tiddlers inside tabs
>
> < class:"tc-vertical" template="$:/talha131/Template/VerticalTab">>
>
> The tiddlers are 
>
>1. Clean Noise 
>2. Rename File 
>
> I am going to add more to the list.
>
> Is it possible to create a list or an array and then pass it to tabs 
> macro? Something like
>
> let aList = [
> 'Clean Noise', 
> 'Rename 
> 'Other example'
> ];
>
> < default:""  state:"$:/state/tab1" class:"tc-vertical"  
> template="$:/talha131/Template/VerticalTab">>
>
> The advantage of this format is clear. I can add tiddlers to the list 
> easily. The syntax is clearer than putting everything inside a filter. Is 
> it possible?
>
> The obvious work around, I can think of, is to tag those tiddlers and use 
> the tag inside tabs macro. But I wonder if it is possible to do without 
> creating a new tag for few tiddlers, just to get tabs transclusion working.
> ​
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/32446e36-828d-4feb-9e07-74ba691299d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread @TiddlyTweeter
Ciao TonyM & Mark S.

Really interesting work.

A few small non-consequential notes on the regex ... This is just for 
interest.

Marks' ...

^\w+?\.\w+?\.\w+?$ 

is perfectly serviceable. But it will work simpler too ...

^\w+\.\w+\.\w+$

... The qualifying "?" that is to prevent "greedy" matches is not needed. A 
greedy match here is fine.

One issue is that \w is shorthand for the JS character class ...

[a-zA-Z0-9_]

This means IF you used, for instance, any accented character it would break.

A way round this would be to add the accented characters to an explicit 
class. But every one would need explicitly adding. Easier would be to use , 
instead of \w, a negative character class like [^\.] = its not a full-stop.

The only problem with regex character classes in TW is they get a bit 
baroque to use as they need square brackets so you can't do them directly 
-- https://tiddlywiki.com/#regexp%20Operator

Just thoughts

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3e816e4c-0dcc-4b93-8ed9-1422a0326c59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] Announcing Single Executable version using Bob 1.0.2 Sourdough Biscuits

2018-07-14 Thread Ste Wilson
I finally got around to trying this.
Ssh'd into my pi 3, wget-ed the link to the arm7 version. 
chmod +x tiddlyArmV7
And then ./tiddlyArmV7

The following is what happened...

pi@raspberrypithree:~/bob $ sudo ./tiddlyArmV7.1
NodeSettings - Parsed raw settings.
Websockets listening on  8081
Serving on 127.0.0.1:8080
(press ctrl-C to exit)
events.js:136
  throw er; // Unhandled 'error' event
  ^

Error: spawn xdg-open ENOENT
at _errnoException (util.js:1031:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:389:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

Help?

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/868799ba-4aad-419c-b58b-445a1806c0ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Custom Tiddler $:/Manager?

2018-07-14 Thread 'Mark S.' via TiddlyWiki
Is this the code giving an error? When I try it, either as a tiddler or as 
a view template, I don't get a recursion error.

-- Mark

On Friday, July 13, 2018 at 10:26:50 PM UTC-7, Jose Eduardo Mares Dominguez 
wrote:
>
> 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 the title of the current tiddler, but 
> every time I do it gives me a recursive error. Any help would be 
> appreciated!
>
> \define lingo-base() $:/language/Manager/
>
> \define list-item-content-item()
> 
> <$vars state-title="""$:/state/popup/manager/item/$(listItem)$""">
> <$reveal state=<> type="match" text="show" default="show" 
> tag="div">
> <$button set=<> setTo="hide" class="tc-btn-invisible 
> tc-manager-list-item-content-item-heading">
> {{$:/core/images/down-arrow}} <$transclude tiddler=<> 
> field="caption"/>
> 
> 
> <$reveal state=<> type="nomatch" text="show" default="show" 
> tag="div">
> <$button set=<> setTo="show" class="tc-btn-invisible 
> tc-manager-list-item-content-item-heading">
> {{$:/core/images/right-arrow}} <$transclude tiddler=<> 
> field="caption"/>
> 
> 
> <$reveal state=<> type="match" text="show" default="show" 
> tag="div" class="tc-manager-list-item-content-item-body">
> <$transclude tiddler=<>/>
> 
> 
> 
> \end
>
> 
> <$list filter="[all[current]tagging[]]"/>
> <$vars transclusion=<>>
> 
> <$button popup=<> 
> class="tc-btn-invisible tc-manager-list-item-heading" 
> selectedClass="tc-manager-list-item-heading-selected">
> <$text text=<>/>
> 
> <$reveal state=<> type="nomatch" text="" 
> default="" tag="div" class="tc-manager-list-item-content tc-popup-handle">
> 
> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]" 
> variable="listItem">
> <>
> 
> 
> 
> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]"
>  
> variable="listItem">
> <>
> 
> 
> 
> 
> 
> 
>
>
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16c5dfa3-dfd6-42d6-98d9-30cba2c3b37b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Custom Tiddler $:/Manager?

2018-07-14 Thread TonyM
Jose,

Not one to discourage experimentation, you are trying to jump in the deep 
end.

Lets try something different
Lets look at the manager first

The regular manager lets you select to filter by tag? But it has no value 
by default.

Searching through the tag manager we find the line 
<> <$select 
tiddler="$:/config/Manager/Tag" default="">

This is a select widget that stores the value of the selected tag in 
$:/config/Manager/Tag with a default of ""

If you use the tag filter then close the manager you will discover on 
reopening it remembers the last tag you filtered on. So all we need to do 
is to set that tiddler to what we want, then open the manager.

This is my custom button tiddler $:/PSaT/Button/OpenManagerHere
<$button tooltip="open Tiddler Manager for items tagged here">
<$action-setfield $tiddler="$:/config/Manager/Tag" text=<>/>
<$action-navigate $to="$:/Manager"/>
{{$:/core/images/list}}



Then in any tiddler I can include
{{||$:/PSaT/Button/OpenManagerHere}}
Which gives a button you click to open the manager filtered by the tags here

I have then added a class for a simple icon
class="tc-btn-invisible" 
and tagged my custom button tiddler $:/tags/ViewToolbar

Now the button appears on every tiddler and clicking it will open the 
manager with the items tagging the current tiddler

However most tiddlers may not be a tag to other tiddlers, so I wrapped my 
custom button code in the following
<$list filter="[tag]" variable="null">
button code here

Now the icon will only appear in tiddlers that are actually tagging another 
tiddler
 
In $:/core/ui/ControlPanel/Toolbars/ViewToolbar  
you
 
can change its order
There is a little more effort to make this look the same as other buttons, 
just have a look at them and set some appropriate fields

I have attached the button tiddler here for your convenience.

The best way to learn is teaching
Regards
Tony


On Saturday, July 14, 2018 at 3:26:50 PM UTC+10, Jose Eduardo Mares 
Dominguez wrote:
>
> 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 the title of the current tiddler, but 
> every time I do it gives me a recursive error. Any help would be 
> appreciated!
>
> \define lingo-base() $:/language/Manager/
>
> \define list-item-content-item()
> 
> <$vars state-title="""$:/state/popup/manager/item/$(listItem)$""">
> <$reveal state=<> type="match" text="show" default="show" 
> tag="div">
> <$button set=<> setTo="hide" class="tc-btn-invisible 
> tc-manager-list-item-content-item-heading">
> {{$:/core/images/down-arrow}} <$transclude tiddler=<> 
> field="caption"/>
> 
> 
> <$reveal state=<> type="nomatch" text="show" default="show" 
> tag="div">
> <$button set=<> setTo="show" class="tc-btn-invisible 
> tc-manager-list-item-content-item-heading">
> {{$:/core/images/right-arrow}} <$transclude tiddler=<> 
> field="caption"/>
> 
> 
> <$reveal state=<> type="match" text="show" default="show" 
> tag="div" class="tc-manager-list-item-content-item-body">
> <$transclude tiddler=<>/>
> 
> 
> 
> \end
>
> 
> <$list filter="[all[current]tagging[]]"/>
> <$vars transclusion=<>>
> 
> <$button popup=<> 
> class="tc-btn-invisible tc-manager-list-item-heading" 
> selectedClass="tc-manager-list-item-heading-selected">
> <$text text=<>/>
> 
> <$reveal state=<> type="nomatch" text="" 
> default="" tag="div" class="tc-manager-list-item-content tc-popup-handle">
> 
> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]" 
> variable="listItem">
> <>
> 
> 
> 
> <$list 
> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]"
>  
> variable="listItem">
> <>
> 
> 
> 
> 
> 
> 
>
>
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/576b7214-bbf9-4da8-b211-d24468f79aa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


$__PSaT_Button_OpenManagerHere.tid
Description: Binary data


[tw5] Re: Custom Tiddler $:/Manager?

2018-07-14 Thread 'Mark S.' via TiddlyWiki
@Mohammad -- Hah! I invoked it wrong! Getting old.

This code will always cause a recursion error if run directly from a 
tiddler. That's because the wikify template will attempt to wikify it's own 
self, getting stuck in a loop.

So.. @Jose probably needs to label it as $:/tags/ViewTemplate and then it 
will work on every tiddler without the recursion error. (well, there will 
be a recursion error on the source tiddler, but that's a special case).

If the template isn't needed on every tiddler, then additional constraints 
can be added to the [all[current]tagging[]] filter so that it only works on 
certain tiddlers (e.g. [all[current]tag[UseMe]tagging[]] ).

The other option is to change the code so that the 
$:/Manager/ItemMain/WikifiedText tiddler is never called.


-- Mark

On Saturday, July 14, 2018 at 7:54:51 PM UTC-7, Mohammad wrote:
>
> Mark,
>  I tried it on tiddlywiki.com and it gives recursion error, when you open 
> the wikified text!
>
> /Mohammad
>
> On Sunday, July 15, 2018 at 1:25:35 AM UTC+4:30, Mark S. wrote:
>>
>> Is this the code giving an error? When I try it, either as a tiddler or 
>> as a view template, I don't get a recursion error.
>>
>> -- Mark
>>
>> On Friday, July 13, 2018 at 10:26:50 PM UTC-7, Jose Eduardo Mares 
>> Dominguez wrote:
>>>
>>> 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 the title of the current tiddler, but 
>>> every time I do it gives me a recursive error. Any help would be 
>>> appreciated!
>>>
>>> \define lingo-base() $:/language/Manager/
>>>
>>> \define list-item-content-item()
>>> 
>>> <$vars state-title="""$:/state/popup/manager/item/$(listItem)$""">
>>> <$reveal state=<> type="match" text="show" default="show" 
>>> tag="div">
>>> <$button set=<> setTo="hide" class="tc-btn-invisible 
>>> tc-manager-list-item-content-item-heading">
>>> {{$:/core/images/down-arrow}} <$transclude tiddler=<> 
>>> field="caption"/>
>>> 
>>> 
>>> <$reveal state=<> type="nomatch" text="show" default="show" 
>>> tag="div">
>>> <$button set=<> setTo="show" class="tc-btn-invisible 
>>> tc-manager-list-item-content-item-heading">
>>> {{$:/core/images/right-arrow}} <$transclude tiddler=<> 
>>> field="caption"/>
>>> 
>>> 
>>> <$reveal state=<> type="match" text="show" default="show" 
>>> tag="div" class="tc-manager-list-item-content-item-body">
>>> <$transclude tiddler=<>/>
>>> 
>>> 
>>> 
>>> \end
>>>
>>> 
>>> <$list filter="[all[current]tagging[]]"/>
>>> <$vars transclusion=<>>
>>> 
>>> <$button popup=<> 
>>> class="tc-btn-invisible tc-manager-list-item-heading" 
>>> selectedClass="tc-manager-list-item-heading-selected">
>>> <$text text=<>/>
>>> 
>>> <$reveal state=<> type="nomatch" 
>>> text="" default="" tag="div" class="tc-manager-list-item-content 
>>> tc-popup-handle">
>>> 
>>> <$list 
>>> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]" 
>>> variable="listItem">
>>> <>
>>> 
>>> 
>>> 
>>> <$list 
>>> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]"
>>>  
>>> variable="listItem">
>>> <>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/624e64d5-f67d-450c-a162-f58b94c4fd90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Server setup tutorials; anyone interested?

2018-07-14 Thread Ste Wilson
Am attempting to follow on my pi.
Couchdb is not a package automatically in the repositry. 
Just to be picky, if it were, it would be sudo apt-get install couchdb

I'm currently so far unsucsesfully following the instuctions on Apache couchdb 
to install it. 

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/29bfe16c-8fdf-4511-8044-b85f7c8ae35e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to create list of tiddlers and pass to tabs macro?

2018-07-14 Thread talha131
Additionally, the reason I don't want to use tags is the order of the 
tiddlers.

I want to tiddlers to appear in a specific order. I can do that with tag by 
dragging and dropping but that order is reflected everywhere.

If I want to have to orders, one sorted by title and other manually, then I 
will have to create two tags.

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3b517290-853b-4704-9937-f92a14062bf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] Announcing Single Executable version using Bob 1.0.2 Sourdough Biscuits

2018-07-14 Thread Michael Z.
You probably don't have xdg-open installed. Try
 
$ which xdg-open

to see if it is there.

Otherwise you can install it with

sudo apt-get install xdg-utils

It is used to open standard applications on the desktop.


-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8ef31781-40cc-4630-8c4c-8856e961245b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Server setup tutorials; anyone interested?

2018-07-14 Thread 'Mark S.' via TiddlyWiki
I'm using xubuntu 18.04. Couchdb is not in the repository. Wonder why? And, 
attempting to add it with the specified PPA doesn't work either -- says 
there is no Release file. 

It appears the couchdb files for ubuntu were released just 4 days ago. It 
kind of looks like there is a release file. 

-- Mark

On Saturday, July 14, 2018 at 2:55:36 PM UTC-7, Ste Wilson wrote:
>
> Am attempting to follow on my pi.
> Couchdb is not a package automatically in the repositry. 
> Just to be picky, if it were, it would be sudo apt-get install couchdb
>
> I'm currently so far unsucsesfully following the instuctions on Apache 
> couchdb to install it. 
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2465659a-03c8-42e7-9ab8-72e9bf00b161%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread Mohammad
Very good code!
I used this with modification to list all .png tiddlers 

*Mohammad*

On Sunday, July 15, 2018 at 7:22:55 AM UTC+4:30, Mark S. wrote:
>
> This should do that:
>
> \define myregexp() ^([a-zA-Z]+\.){2}[a-zA-Z]+$
> <]">>
>
> In this example, I'm using groups and a quantifier, since the first match 
> gets repeated twice. You can expand that out if it's easier to scan.
>
> -- Mark 
>
> On Saturday, July 14, 2018 at 7:31:52 PM UTC-7, TonyM wrote:
>>
>> Josiah,
>>
>> I am glad for your help, and marks - I need to jump into regex soon, but 
>> it seems to require a lot of rote learning - perhaps I can make a wiki for 
>> that?
>>
>> In the case in question the three words can only be a-zA-Z
>>
>> What would I replace \w with for this outcome?
>>
>> Thank
>> Tony
>>
>> On Sunday, July 15, 2018 at 10:40:20 AM UTC+10, @TiddlyTweeter wrote:
>>>
>>> Ciao TonyM & Mark S.
>>>
>>> Really interesting work.
>>>
>>> A few small non-consequential notes on the regex ... This is just for 
>>> interest.
>>>
>>> Marks' ...
>>>
>>> ^\w+?\.\w+?\.\w+?$ 
>>>
>>> is perfectly serviceable. But it will work simpler too ...
>>>
>>> ^\w+\.\w+\.\w+$
>>>
>>> ... The qualifying "?" that is to prevent "greedy" matches is not 
>>> needed. A greedy match here is fine.
>>>
>>> One issue is that \w is shorthand for the JS character class ...
>>>
>>> [a-zA-Z0-9_]
>>>
>>> This means IF you used, for instance, any accented character it would 
>>> break.
>>>
>>> A way round this would be to add the accented characters to an explicit 
>>> class. But every one would need explicitly adding. Easier would be to use , 
>>> instead of \w, a negative character class like [^\.] = its not a full-stop.
>>>
>>> The only problem with regex character classes in TW is they get a bit 
>>> baroque to use as they need square brackets so you can't do them directly 
>>> -- https://tiddlywiki.com/#regexp%20Operator
>>>
>>> Just thoughts
>>>
>>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aa601f67-5868-4d1f-a5c7-b1c874d6e02a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread 'Mark S.' via TiddlyWiki
This should do that:

\define myregexp() ^([a-zA-Z]+\.){2}[a-zA-Z]+$
<]">>

In this example, I'm using groups and a quantifier, since the first match 
gets repeated twice. You can expand that out if it's easier to scan.

-- Mark 

On Saturday, July 14, 2018 at 7:31:52 PM UTC-7, TonyM wrote:
>
> Josiah,
>
> I am glad for your help, and marks - I need to jump into regex soon, but 
> it seems to require a lot of rote learning - perhaps I can make a wiki for 
> that?
>
> In the case in question the three words can only be a-zA-Z
>
> What would I replace \w with for this outcome?
>
> Thank
> Tony
>
> On Sunday, July 15, 2018 at 10:40:20 AM UTC+10, @TiddlyTweeter wrote:
>>
>> Ciao TonyM & Mark S.
>>
>> Really interesting work.
>>
>> A few small non-consequential notes on the regex ... This is just for 
>> interest.
>>
>> Marks' ...
>>
>> ^\w+?\.\w+?\.\w+?$ 
>>
>> is perfectly serviceable. But it will work simpler too ...
>>
>> ^\w+\.\w+\.\w+$
>>
>> ... The qualifying "?" that is to prevent "greedy" matches is not needed. 
>> A greedy match here is fine.
>>
>> One issue is that \w is shorthand for the JS character class ...
>>
>> [a-zA-Z0-9_]
>>
>> This means IF you used, for instance, any accented character it would 
>> break.
>>
>> A way round this would be to add the accented characters to an explicit 
>> class. But every one would need explicitly adding. Easier would be to use , 
>> instead of \w, a negative character class like [^\.] = its not a full-stop.
>>
>> The only problem with regex character classes in TW is they get a bit 
>> baroque to use as they need square brackets so you can't do them directly 
>> -- https://tiddlywiki.com/#regexp%20Operator
>>
>> Just thoughts
>>
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/25eabcb6-90a4-4aa1-9e72-494f211e55ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Custom Tiddler $:/Manager?

2018-07-14 Thread Mohammad
Mark,
 I tried it on tiddlywiki.com and it gives recursion error, when you open 
the wikified text!

/Mohammad

On Sunday, July 15, 2018 at 1:25:35 AM UTC+4:30, Mark S. wrote:
>
> Is this the code giving an error? When I try it, either as a tiddler or as 
> a view template, I don't get a recursion error.
>
> -- Mark
>
> On Friday, July 13, 2018 at 10:26:50 PM UTC-7, Jose Eduardo Mares 
> Dominguez wrote:
>>
>> 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 the title of the current tiddler, but 
>> every time I do it gives me a recursive error. Any help would be 
>> appreciated!
>>
>> \define lingo-base() $:/language/Manager/
>>
>> \define list-item-content-item()
>> 
>> <$vars state-title="""$:/state/popup/manager/item/$(listItem)$""">
>> <$reveal state=<> type="match" text="show" default="show" 
>> tag="div">
>> <$button set=<> setTo="hide" class="tc-btn-invisible 
>> tc-manager-list-item-content-item-heading">
>> {{$:/core/images/down-arrow}} <$transclude tiddler=<> 
>> field="caption"/>
>> 
>> 
>> <$reveal state=<> type="nomatch" text="show" default="show" 
>> tag="div">
>> <$button set=<> setTo="show" class="tc-btn-invisible 
>> tc-manager-list-item-content-item-heading">
>> {{$:/core/images/right-arrow}} <$transclude tiddler=<> 
>> field="caption"/>
>> 
>> 
>> <$reveal state=<> type="match" text="show" default="show" 
>> tag="div" class="tc-manager-list-item-content-item-body">
>> <$transclude tiddler=<>/>
>> 
>> 
>> 
>> \end
>>
>> 
>> <$list filter="[all[current]tagging[]]"/>
>> <$vars transclusion=<>>
>> 
>> <$button popup=<> 
>> class="tc-btn-invisible tc-manager-list-item-heading" 
>> selectedClass="tc-manager-list-item-heading-selected">
>> <$text text=<>/>
>> 
>> <$reveal state=<> type="nomatch" 
>> text="" default="" tag="div" class="tc-manager-list-item-content 
>> tc-popup-handle">
>> 
>> <$list 
>> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]" 
>> variable="listItem">
>> <>
>> 
>> 
>> 
>> <$list 
>> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]"
>>  
>> variable="listItem">
>> <>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/584c168d-a8d0-433d-969e-bcececeac01e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Custom Tiddler $:/Manager?

2018-07-14 Thread TonyM
Previous post edited and new attachment on the Google Forum

Opps
Tony

On Sunday, July 15, 2018 at 2:02:46 PM UTC+10, TonyM wrote:
>
> Jose,
>
> Not one to discourage experimentation, you are trying to jump in the deep 
> end.
>
> Lets try something different
> Lets look at the manager first
>
> The regular manager lets you select to filter by tag? But it has no value 
> by default.
>
> Searching through the tag manager we find the line 
> <> <$select 
> tiddler="$:/config/Manager/Tag" default="">
>
> This is a select widget that stores the value of the selected tag in 
> $:/config/Manager/Tag with a default of ""
>
> If you use the tag filter then close the manager you will discover on 
> reopening it remembers the last tag you filtered on. So all we need to do 
> is to set that tiddler to what we want, then open the manager.
>
> This is my custom button tiddler $:/PSaT/Button/OpenManagerHere
> <$button tooltip="open Tiddler Manager for items tagged here">
> <$action-setfield $tiddler="$:/config/Manager/Tag" text=<
> >/>
> <$action-navigate $to="$:/Manager"/>
> {{$:/core/images/list}}
> 
>
>
> Then in any tiddler I can include
> {{||$:/PSaT/Button/OpenManagerHere}}
> Which gives a button you click to open the manager filtered by the tags 
> here
>
> I have then added a class for a simple icon
> class="tc-btn-invisible" 
> and tagged my custom button tiddler $:/tags/ViewToolbar
>
> Now the button appears on every tiddler and clicking it will open the 
> manager with the items tagging the current tiddler
>
> However most tiddlers may not be a tag to other tiddlers, so I wrapped my 
> custom button code in the following
> <$list filter="[tag]+[limit[1]]" variable="null">
> button code here
> 
> Now the icon will only appear in tiddlers that are actually tagging 
> another tiddler
>  
> In $:/core/ui/ControlPanel/Toolbars/ViewToolbar  
> you
>  
> can change its order
> There is a little more effort to make this look the same as other buttons, 
> just have a look at them and set some appropriate fields
>
> I have attached the button tiddler here for your convenience.
>
> The best way to learn is teaching
> Regards
> Tony
>
>
> On Saturday, July 14, 2018 at 3:26:50 PM UTC+10, Jose Eduardo Mares 
> Dominguez wrote:
>>
>> 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 the title of the current tiddler, but 
>> every time I do it gives me a recursive error. Any help would be 
>> appreciated!
>>
>> \define lingo-base() $:/language/Manager/
>>
>> \define list-item-content-item()
>> 
>> <$vars state-title="""$:/state/popup/manager/item/$(listItem)$""">
>> <$reveal state=<> type="match" text="show" default="show" 
>> tag="div">
>> <$button set=<> setTo="hide" class="tc-btn-invisible 
>> tc-manager-list-item-content-item-heading">
>> {{$:/core/images/down-arrow}} <$transclude tiddler=<> 
>> field="caption"/>
>> 
>> 
>> <$reveal state=<> type="nomatch" text="show" default="show" 
>> tag="div">
>> <$button set=<> setTo="show" class="tc-btn-invisible 
>> tc-manager-list-item-content-item-heading">
>> {{$:/core/images/right-arrow}} <$transclude tiddler=<> 
>> field="caption"/>
>> 
>> 
>> <$reveal state=<> type="match" text="show" default="show" 
>> tag="div" class="tc-manager-list-item-content-item-body">
>> <$transclude tiddler=<>/>
>> 
>> 
>> 
>> \end
>>
>> 
>> <$list filter="[all[current]tagging[]]"/>
>> <$vars transclusion=<>>
>> 
>> <$button popup=<> 
>> class="tc-btn-invisible tc-manager-list-item-heading" 
>> selectedClass="tc-manager-list-item-heading-selected">
>> <$text text=<>/>
>> 
>> <$reveal state=<> type="nomatch" 
>> text="" default="" tag="div" class="tc-manager-list-item-content 
>> tc-popup-handle">
>> 
>> <$list 
>> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]" 
>> variable="listItem">
>> <>
>> 
>> 
>> 
>> <$list 
>> filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]"
>>  
>> variable="listItem">
>> <>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7b744a41-03e1-4d1d-be39-8d2dcf5dffce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread Riz
@Alex. I sincerely apologise for the inconvienience caused. I admit the lack of 
a warning on github readme was an oversight on my part. I will try to update as 
soon as I get a chance. The code is open, it has no licence restrictions other 
than that of the parent product- TW5 which is bound by BSD. So if you are 
interested, you can fork out and use it as you please. Last tim I checked, 
there was one or two minor css bugs (which will not affect functionality of the 
app, rather the styling) and were easily rectifiable. 



-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c2a6b89b-7142-4597-9d98-1f8531d0eb1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread Riz
@Stratos. Appreciate your words. However, I must point you towards the warnings 
posted a couple of messages back.


Thank you. 
Riz

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3d9ad22f-1ee5-4a28-9008-c6fc0a7c2721%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread TonyM
Mark,

Thanks, that will list all tiddlers with that title form (Exhaustive 
testing remains)

And the following will reveal if the current tiddler has this form

\define myregexp() ^\w+?\.\w+?\.\w+?$
<$list filter="[is[current]regexp]">





Thanks
Heaps


On Saturday, July 14, 2018 at 3:43:00 PM UTC+10, Mark S. wrote:
>
> 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 to extract strings, then you will need something similar 
> to the solution in PR 2963.
>
> -- Mark
>
> On Friday, July 13, 2018 at 8:45:41 PM UTC-7, TonyM wrote:
>>
>> 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 spaces or [[ {{ 
>> etc..
>>
>> I imagine a regex expression can do It, but I have not yet undergone this 
>> self education
>>
>> I want to simply determine if it is true or not and reveal/listWidget 
>> some wiki text, 
>>
>> however one day I may want to extract the three words.
>>
>> Thanks in advance
>> Tony
>>
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aad2b8ef-8ec4-4ca9-b853-d2d1c72196c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread TonyM
Mark,

This actually seems to work really well. I always like to return the favour 
so perhaps you will find this interesting and its implications.

Place the following in a tiddler tagged $:/tags/ViewTemplate
\define myregexp() ^\w+?\.\w+?\.\w+?$
<$list filter="[titleis[missing]]" variable="missingTiddler"
>
<$list filter="[{!!title}regexp]">
Tiddler is missing and in w3w format


<$list filter="[title!is[missing]]" variable=
"missingTiddler">
<$list filter="[{!!title}regexp]">
Tiddler is in w3w format



Now if a tiddler has a title of the form word.word.word the above will 
display according to if it exists or not.

Why is this so interesting?
If someone comes to my online wiki using a link such 
as mywiki.html#test.w3w.example
they will open the tiddler mywiki.html#test.w3w.example if it exists
if it does not exist they will presented with the missing tiddler, which I 
can code to have a button appear on it, to help the user create the tiddler.

This provides a way to guide a user into creating a tiddler that does not 
exist by a title they provide, that meets a naming standard. It could be 
firstname.surname

Regards
Tony


On Saturday, July 14, 2018 at 3:43:00 PM UTC+10, Mark S. wrote:
>
> 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 to extract strings, then you will need something similar 
> to the solution in PR 2963.
>
> -- Mark
>
> On Friday, July 13, 2018 at 8:45:41 PM UTC-7, TonyM wrote:
>>
>> 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 spaces or [[ {{ 
>> etc..
>>
>> I imagine a regex expression can do It, but I have not yet undergone this 
>> self education
>>
>> I want to simply determine if it is true or not and reveal/listWidget 
>> some wiki text, 
>>
>> however one day I may want to extract the three words.
>>
>> Thanks in advance
>> Tony
>>
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3afae344-e082-423d-8414-76d94cc04eb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread zemoxian
Have you tried “[all[current]tagging[]]”? That’s the way I usually do it. I’ve 
rarely had an issue with it. 

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/32e608ef-ebda-4917-80d0-b8df56dbe2f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread talha131


Right, mostly screenshots. I too make each image go through ImageOptim 
 or sometimes change png to low quality jpg before 
using them.

With the next version of tiddlywiki or a future version of bob there will 
be a secure online node solution where it should be irrelevant the number 
and size of images in tiddlers however you will be able to download a 
single file offline tiddlywiki and this is when the size of the images will 
matter. 

That’d would be interesting. I use tiddlywiki on NodeJS. Would love to get 
my hands on this feature.
​

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a6ea65fc-965c-4bf0-b974-75a0b9e5d0af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] array.find polyfill for Twitter plugin

2018-07-14 Thread zemoxian
As an update, I’ve found that I can copy and paste a simple polyfill into a 
tiddler. Then set its type to “application/javascript” and plugin-type to 
“startup”. I’ve run into this on a few older browsers/ OSs. 

I didn’t wrap them in (function(){}) bodies or add “use strict”; or anything so 
I don’t know if there are side effects that I might encounter down the line. So 
far, it seems to work fine. 

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9ca73342-e3c6-433e-88be-f91fa83e1bcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread 'Mark S.' via TiddlyWiki
You can supposedly use lazy loading with  the current node version of TW, 
and presumably the variants like Bob. Basically images get loaded only on 
demand. 

-- Mark

On Saturday, July 14, 2018 at 7:06:58 AM UTC-7, talha131 wrote:
>
> Right, mostly screenshots. I too make each image go through ImageOptim 
>  or sometimes change png to low quality jpg 
> before using them.
>
> With the next version of tiddlywiki or a future version of bob there will 
> be a secure online node solution where it should be irrelevant the number 
> and size of images in tiddlers however you will be able to download a 
> single file offline tiddlywiki and this is when the size of the images will 
> matter. 
>
> That’d would be interesting. I use tiddlywiki on NodeJS. Would love to get 
> my hands on this feature.
> ​
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/38838e1f-f706-4052-9168-8d1f585a2ec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread Michael Z.
Thank you all for your help. I ended up using

\define csv(title) <>
<$macrocall $name="csv" title={{!!title}} />

Works great, thanks again.

/Michael

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/72243a40-3c62-4dcd-954f-fed438fed7fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How does this macro work to download a binary file?

2018-07-14 Thread leeand00
\define download-xlsx-tiddler(title,caption)

$caption$
\end




It's called like this:

<>




I see that it mentions the MIME type of the and the base64 format is also 
mentioned, but I don't think I really understand it.  It looks like it's 
using transclusion and a filter, but I don't really understand the "data:" 
portion and where the documentation for that is...but it's really neat as 
it means you can store any sort of file in a Tiddlywiki 5 and download it 
with a link.

Thanks!

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fd228600-8699-4bb0-96be-d09aa61086e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread talha131


Thank you Mark. I wasn’t aware of this feature. I have switched to lazy 
loading and hosting images inside TW. Let see how long until TW starts 
showing signs of stress. :)
​

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7e1abdaf-7b27-4a4a-b1c6-26e458faeb48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread Michael Z.
Tony, thanks for your extensive answer and advice. I appreciate that but 
perhaps I expressed my problems not clearly. I don't want to use the macro 
inside a widget. I just want the macro to process all tiddlers tagged with 
the name of the current (viewed) tiddler.

So please let me rephrase my key questions:

<]">>
or
<>

Is this valid macro 
and 
filter 
syntax ? If yes, why 
doesn't it work?
What is the functional equivalent code that does work?

Btw, I also tried
<$tiddler tiddler={{!!title}}">
<]">>

without success.

/Michael

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/431b6a9e-6441-4f1e-abc8-b0a4eb5eb0cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: TW in Public -- Zemox Cloud Map

2018-07-14 Thread TonyM
Nice a tag cloud with a range slider for the counts, nice.

Also introduces the idea of a better fold unfold

thanks for sharing

On Saturday, July 14, 2018 at 10:33:53 PM UTC+10, @TiddlyTweeter wrote:
>
> @zemoxian 's ZemoxWiki has a really 
> interesting Cloud Map that illustrates leveraging TiddlyWiki well ...
>
>
> http://zemox.tiddlyspot.com/#Tag%20Cloud:%5B%5BTag%20Cloud%5D%5D%20%5B%5BSystem%20Tag%20Cloud%5D%5D
>
> This uses "CSS calc()" fed by counts of tagged Tiddlers to create the 
> scaling.  
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f5cca0da-5e9f-404c-ba05-2663d8c3dd17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread Jed Carty
I haven't dug into it too much but that looks like a bug in the csv 
tiddlers macro. I think that it isn't properly importing variables so the 
currentTiddler variable isn't available which prevents either of the 
filters you are trying from working.

This works but it is a bit awkward:
\define workAround() <$macrocall $name="csvtiddlers" filter=
"[tag[$(current)$]]" />

<$set name='current' value=<>>
<>


It looks like the problem doesn't come from filters as parameters, it comes 
from not importing variables so you would have to have something like the 
code above to use any variable in the csvtiddlers macro.

I am not sure if this bug is specific to the csvtiddlers macro or to how 
macros are evaluated.

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0cb94dea-814b-422e-a70c-b89f6234047c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] TW in Public -- Zemox Cloud Map

2018-07-14 Thread @TiddlyTweeter
Zemox Wiki has a really interesting Cloud Map that illustrates leveraging 
TiddlyWiki well ...

http://zemox.tiddlyspot.com/#Tag%20Cloud:%5B%5BTag%20Cloud%5D%5D%20%5B%5BSystem%20Tag%20Cloud%5D%5D

This uses "CSS counters" fed by counts of tagged Tiddlers to create the 
scaling.  

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bf8a4eb1-937a-479d-9829-6ab2b00a2b8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-07-14 Thread 'Mark S.' via TiddlyWiki
The csvtiddlers macro must change it's own current tiddler value, so your 
filters won't work, but might have with a different macro that made other 
assumptions. The "filter" string only gets immediately interpreted in the 
<$list> widget AFAIK

Try

\define filtbycur(title)
<>
\end
<$macrocall $name=filtbycur title={{!!title}}/>

-- Mark


On Saturday, July 14, 2018 at 6:07:28 AM UTC-7, Michael Z. wrote:
>
> Tony, thanks for your extensive answer and advice. I appreciate that but 
> perhaps I expressed my problems not clearly. I don't want to use the macro 
> inside a widget. I just want the macro to process all tiddlers tagged with 
> the name of the current (viewed) tiddler.
>
> So please let me rephrase my key questions:
>
> <]">>
> or
> <>
>
> Is this valid macro 
> and 
> filter syntax ? If 
> yes, why doesn't it work?
> What is the functional equivalent code that does work?
>
> Btw, I also tried
> <$tiddler tiddler={{!!title}}">
> <]">>
> 
> without success.
>
> /Michael
>
>

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bd9a8080-4e73-4704-ad32-5e86cf01dfc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How does this macro work to download a binary file?

2018-07-14 Thread Jed Carty
One way browsers get around handling incompatible data types is to convert 
them into a base 64 representation that uses only basic ascii characters. 
Tiddlywiki encodes non-text tiddlers in the same way. Browsers can, give 
the correct mime type, treat the base64 encoded string as though it were 
binary data for common data types. So to download the binary versions of 
the base64 encoded file you can create a download link that points to the 
base64 encoded string with the proper prefix describing the mime type and 
encoding and it will download the binary file. The macro creates a link 
that does exactly that, so when you click on it you get prompted to 
download the file.

-- 
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 tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/88f0c655-67e1-4764-8a0d-c90c1b0d669c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.