[tw5] Re: action-setfield not changing value

2019-09-01 Thread MagoArcade
Perfect, 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0eba687c-0697-4af5-adb2-94c4049d040a%40googlegroups.com.


[tw5] action-setfield not changing value

2019-09-01 Thread MagoArcade
Hi all, below is the heavliyt abridged code:

\define NodePath()
$:/plugins/felixhayashi/tiddlymap/graph/views/$(DDView)$/filter/nodes
\end

\define NodePathItem()
$(orignodevalue)$ [field:tmap.id[$(tmapid)$]]
\end

<$set name="orignodevalue" tiddler=<> field=filter>

<$button>Go!
<$action-setfield $tiddler="<>" 
filter="<>"/>


NodePath: <>

NodePathItemFilter: <>

NodePathItem: <>



Assume "DDView" = "TestView" and "tmapid" = "dbd1a36a-7252-45cf-917c-
e67c07d72032"

This renders as:

NodePath: $:/plugins/felixhayashi/tiddlymap/graph/views/TestView/filter/
nodes

NodePathItemFilter: [field:tmap.id[6108ab72-75cd-4666-83b2-c457035032f2]] [
field:tmap.id[68e33975-5d2e-461a-bbdc-4e28664f4fa9]] [field:tmap.id[9d610d4e
-d8af-46f8-95d6-b4994f7ae1b8]] [field:tmap.id[31844828-2c8b-4d6b-a46d-
afd8e58d0324]]

NodePathItem: [field:tmap.id[6108ab72-75cd-4666-83b2-c457035032f2]] [field:
tmap.id[68e33975-5d2e-461a-bbdc-4e28664f4fa9]] [field:tmap.id[9d610d4e-d8af-
46f8-95d6-b4994f7ae1b8]] [field:tmap.id[31844828-2c8b-4d6b-a46d-afd8e58d0324
]] [field:tmap.id[dbd1a36a-7252-45cf-917c-e67c07d72032]]

But it doesn't update the "filter" field in "$:/plugins/felixhayashi/
tiddlymap/graph/views/TestView/filter/nodes"

What's wrong with this code?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c85f20d6-4a3b-4bef-ad39-538a1dc8ef7e%40googlegroups.com.


[tw5] Update field of a Tiddler whose name derived from macro

2019-08-31 Thread MagoArcade
Hi. The below:

\define NodePath()
$:/plugins/felixhayashi/tiddlymap/graph/views/$(DDView)$/filter/nodes
\end

returns:

$:/plugins/felixhayashi/tiddlymap/graph/views/TestView/filter/nodes 


I want to change the value of a field "filter" of the Tiddler of the name 
generated by the macro. Basically, I want to get the existing field value, 
append some text to the end of this and then save the updated value. E.g. 
Existing filter field = "Hello" ; I want to append " World" to change the 
field to "Hello World"

What is the best way to achieve this?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cb65d4bb-70fa-4b3f-8c5c-a3b66a3cd039%40googlegroups.com.


[tw5] Append text to Tiddler whose name is derived via a macro

2019-08-31 Thread MagoArcade
Hi. Consider below:

\define NodePath()
$:/plugins/felixhayashi/tiddlymap/graph/views/$(DDView)$/filter/nodes
\end


\define NodePathItem()
{{!!text}} [field:tmap.id[$(tmapid)$]]
\end


NodePathItem is meant to produce a value which appends some text to the 
text field of the Tiddler named as the result of NodePath. But it doesn't. 
What's the correct syntax?

(P.S. Don't worry about $(DDView)$ and $(tmapid)$ - assume they both work)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd5b3b2a-5a17-477d-b1a4-1efd65f13895%40googlegroups.com.


[tw5] Re: Remove last character of a tiddler's text within a macro

2019-08-25 Thread MagoArcade
Wow - thanks Mark - that did it. That's some spot and some regex/tw coding 
right there!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0d3e9c02-ead1-4245-8440-1faf82f56130%40googlegroups.com.


[tw5] Re: Remove last character of a tiddler's text within a macro

2019-08-20 Thread MagoArcade
Thanks. Attached

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e9df7049-6dff-4a23-80bc-023b2a258ee2%40googlegroups.com.


$__plugins_felixhayashi_tiddlymap_graph_views_MyView_map.json
Description: application/json


[tw5] Re: Remove last character of a tiddler's text within a macro

2019-08-20 Thread MagoArcade
Thanks again for the reply Mark. However, I just can't figure why the 
code's working your end but not mine. It looks like you've tested this 
code. But when I run mine, I get a different result. Mine:

\define ViewTiddlerAppended()
<$vars ViewText={{$(viewpath)$}}>
VIEW TEXT: <>
<$set name=shortpath filter="[{$(viewpath)$}splitregexp[^(.*?).$]]" select=1 
>
OUTPUT: [<>]


\end

<$vars viewpath="$:/plugins/felixhayashi/tiddlymap/graph/views/MyView/map">

View Tiddler Appended: <>



Output:

View Tiddler Appended: VIEW TEXT: { "8c44558c-cd16-4064-87b6-d4b40fd167e8": 
{ "x": -351, "y": -55 }, "565d2cae-a39e-4bec-b16b-543619cf2bd7": { "x": -119
, "y": -72 }, "13f94e2c-189b-439e-aa55-0c7a88d45f97": { "x": -132, "y": 136 
}, "e20a7328-d70c-477d-8103-1d99ffbf031b": { "x": -127, "y": -191 }, 
"516a25e4-c141-4469-a790-229b90da4bfa": { "x": -126, "y": 11 }, 
"cd326bff-d50c-406a-a5ca-a87699ae7bbe": { "x": -461, "y": -201 }, 
"7a8b1138-dbb9-49c8-91d6-12b9f21929f2": { "x": -559, "y": -108 }, 
"6a96291a-44bc-4d77-9261-8cc7b2964e87": { "x": -271, "y": -250 }, 
"3cadefc8-4186-4524-968a-22083b54c0bc": { "x": 18, "y": -146 }, 
"41bb28a9-b37f-4628-9730-0a48234a7490": { "x": -582, "y": 13 }, 
"6a5db04b-27e0-4e0d-81a3-1a3c1b44e928": { "x": -503, "y": 144 }, 
"7cc70f20-3457-4641-a2ab-d6f0512ab092": { "x": -333, "y": 176 } } 
OUTPUT: []

Any ideas? I'm using the most recent version of tw

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0bfbaede-5c40-45a4-b815-72171f713bc9%40googlegroups.com.


[tw5] Re: Remove last character of a tiddler's text within a macro

2019-08-19 Thread MagoArcade
Thanks Mark - this looks really good. However, what I'm wanting to do it to 
truncate the !!text inside the tiddler identified by ``viewpath`` I can't 
seem to get this to work with that. Any suggestions?

On Sunday, 18 August 2019 22:29:13 UTC+1, Mark S. wrote:
>
> This variant uses the new splitregexp operator to eliminate the last 
> character:
>
> \define ViewTiddlerAppended()
> <$set name=shortpath filter="[{$(viewpath)$}splitregexp[^(.*?).$]]" select
> =1 >
> <>. Nice to see you.
> 
> \end
>
> <$vars viewpath="$:/plugins/felixhayashi/tiddlymap/graph/views/map" >
>
> <>
>
> 
>
>
>
> On Sunday, August 18, 2019 at 11:49:19 AM UTC-7, MagoArcade wrote:
>>
>> Let's say "$:/plugins/felixhayashi/tiddlymap/graph/views/map" contains 
>> the text "{line 1} Hello World}" (note the curly bracket)
>>
>>
>> \define ViewPath()
>> $:/plugins/felixhayashi/tiddlymap/graph/views/map
>> \end
>>
>>
>> \define ViewTiddlerAppended()
>> {{$(ViewPath)$}}. Nice to see you.
>> \end
>>
>> How do I get <> to read:
>>
>> "{line 1} Hello World. Nice to see you."
>>
>> (i.e. remove the last character of the text in the tiddler)
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77be73d2-5ed3-4283-afb8-eae4a922a451%40googlegroups.com.


[tw5] Re: Formatting DataTiddler Lists

2019-08-19 Thread MagoArcade
Thank Tony - you guessed right! I should have been more specific over the 
formatting requirments. I just changed my code to:

<$list filter="[[$:/tiddlypom/DTNodeTypes]indexes[]sort[title]]" 
variable="key">
  <>




and it gave me what I needed - 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/02df37a4-b666-4c86-9836-7a47ac4d3218%40googlegroups.com.


[tw5] Re: Small Color PIcker and RGB output

2019-08-18 Thread MagoArcade
thanks fella - that did the trick

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/befd314f-3e07-4ced-874c-a012ad1b4051%40googlegroups.com.


[tw5] Re: Small Color PIcker and RGB output

2019-08-18 Thread MagoArcade
Thanks Thomas - that's got me half way there. What I am needing is output 
in this format:

rgba(252,248,61,1)

The "1" (alpha value never changes)

The problem is the color picker only returns an rgb value. I can't figure 
out how to add an alpha value to the rgb value to get the output needed 
above. Any ideas? E.g. something like this format:

<>


On Sunday, 11 August 2019 21:15:40 UTC+1, Thomas Elmiger wrote:
>
> Hi MagoArcade,
>
> Maybe my Coloraction-Plugin 
> <https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2FColorAction> 
> could be part of your solution, as it can transform colours to other 
> formats. (*toRgbString* is even the default action)
>
> So it could turn a hexadecimal value into the format "rgb(r, g, b)" – 
> still not exactly what you need, but maybe useful none the less?
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3d986c1f-e94f-44be-a08f-754e6c4b914d%40googlegroups.com.


[tw5] Re: Small Color PIcker and RGB output

2019-08-18 Thread MagoArcade
Thanks Eric - that got me on the right track. In the end, the following, 
simple code worked:

<$edit-text tiddler="$:/_opTaskStore" type="color" tag="input" 
field="backcolor"/>


On Sunday, 11 August 2019 20:08:39 UTC+1, Eric Shulman wrote:
>
> On Sunday, August 11, 2019 at 11:07:59 AM UTC-7, MagoArcade wrote:
>>
>> How can I insert a small color picker into a tiddler and have it output 
>> to R,G,B format. The standard color picker has way too much associated with 
>> it (Doc link 
>> <https://tiddlywiki.com/static/colour-picker%2520Macro%2520(Example%25201).html>).
>>  
>> eg:
>> All I really want is the button at the bottom, next to the text box. 
>> Also, I'm needing a way to save it to a field in this format:
>> 198,3,7
>> i.e. RGB in decimal
>>
>
> The "button at the bottom" is actually an HTML input, with type="color", 
> and if you dig into the TWCore "colour-picker" code 
> ($:/core/macros/colour-picker), you will find this line:
>
> <$edit-text tiddler="$:/config/ColourPicker/New" type="color" tag="input"/>
>
> This creates the button you want.  However... the actual appearance AND 
> function of the color input depends your specific platform and browser.  If 
> your browser doesn't support the color button directly, it may render as a 
> regular input field into which you can TYPE the color value.  Of course, 
> you should change the target tiddler name to the title of the tiddler in 
> which you want the color selection to be stored.
>
> Unfortunately, this will only achieve half your desired goal.  The problem 
> is that the browser-supplied HTML control will ONLY write the chosen color 
> using a CSS-compatible *hexadecimal* value (e.g., "#rrggbb"), rather than 
> the comma-separated decimal R,G,B values you want.
>
> For more details, see 
> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools: "Small Tools for Big Ideas" (tm) 
> http://tiddlytools.github.io/
> InsideTiddlyWiki: The Missing Manuals
>
> (NOTE NEW HOSTING LOCATION)
>
>
>  
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/edb201ac-fa01-410e-8538-d5d8c42be4f9%40googlegroups.com.


[tw5] Remove last character of a tiddler's text within a macro

2019-08-18 Thread MagoArcade
Let's say "$:/plugins/felixhayashi/tiddlymap/graph/views/map" contains the 
text "{line 1} Hello World}" (note the curly bracket)


\define ViewPath()
$:/plugins/felixhayashi/tiddlymap/graph/views/map
\end


\define ViewTiddlerAppended()
{{$(ViewPath)$}}. Nice to see you.
\end

How do I get <> to read:

"{line 1} Hello World. Nice to see you."

(i.e. remove the last character of the text in the tiddler)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e24e2a11-806d-4d15-9595-9c1a6a32d153%40googlegroups.com.


[tw5] Formatting DataTiddler Lists

2019-08-18 Thread MagoArcade
How to? I want results displayed inline with some custom text around the 
list results. Present code:

<$list filter="[[$:/tiddlypom/DTNodeTypes]indexes[]sort[title]]" 
variable="key">




Example of working code for normal tiddlers (wanting in much the same 
format):

<$list filter=<> >
[<$view field=shorttext/>]


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/619a3ded-9e24-4682-b263-b74cf0bc39c9%40googlegroups.com.


[tw5] Re: Set tags field problems

2019-08-18 Thread MagoArcade
Thanks all. Went with BurningTree's answer in the end which worked well. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e8974bbe-ee4c-480a-b275-b20eec39cf54%40googlegroups.com.


[tw5] Set tags field problems

2019-08-18 Thread MagoArcade
HI all,

I've tried various permutaions from macros to vars. I cant's set tags when 
these tags have spaces in them. Consider:


<$wikify name="boardWikid" text={{!!SelBoard}} >

<$action-setfield $tiddler=<>
shorttext={{$:/_opTaskStore!!columnName}}
tags=<>
/>

if !!SelBoard has a string with spaces in it (e.g. "Test Column") then you 
get two tags - "Test" and "Column.

So the logical thing would be to surround in quotes, no?

Then, it does record a single tag, but this is:

"<>"

Tried other things (three quotes, varibale form macro etc) but yet again, 
lost in the baffling world of ToddlyWiki Syntax.

Any help appreciated

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/778e8f8b-0d09-4c4f-b646-ee936c329ab7%40googlegroups.com.


[tw5] Append line text to text of Tiddler whose name is constructed from a macro

2019-08-18 Thread MagoArcade
Hi all. I'm trying to append a line of text to a tiddler whose name is 
constructed via a macro. Consider abridged code:

\define MapLine()
{ "$(tmapid)$": { "x": 0, "y": 0 } }
\end


\define ViewPath(viewname)
$:/plugins/felixhayashi/tiddlymap/graph/views/$viewname$/map
\end








<$select class="tw-edit-texteditor myTextEdit"
tiddler=<<$:/_opTaskStore>>
field="TiddlyMapView"
default="Default" >
  <$list filter=<> >

  <$view tiddler={{!!title}} field="title" />

  



View path: <>

The "View path" output is a bit mixed - it presents:

$:/plugins/felixhayashi/tiddlymap/graph/views/ 
Live
 
View/map

What I want to do is add text generated by the macro MapLine (which works) 
to the end of the text on the above tiddler - how do I do this?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/916c3ecf-129c-4726-8f0f-d5e010da0c34%40googlegroups.com.


Re: [tw5] Populate Select drop-down from folder structure

2019-08-12 Thread MagoArcade
Thanks for your replies, all. Especially to Felix as that looks ideal - 
just need to find some time to have a tinker. 

btw, Felix - it was your TiddlyMap plugin and Gould's Dropboard plugin that 
inspired me to get coding in tw! I'm trying to pull it all together to make 
a project management application - so thanks for such a great plugin!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0dccd632-a2ca-48fe-8473-2c7bc9c330db%40googlegroups.com.


[tw5] Re: Populate Select drop-down from folder structure

2019-08-11 Thread MagoArcade
Thanks Mat - I see your thinking. However, these tiddlers don't have any 
tags and it's from a 3rd party plugin, so I can't influence that. They do, 
however, have a unique field: "isview: true" - could I leverage this 
somehow in a filter?

On Sunday, 11 August 2019 20:59:57 UTC+1, Mat wrote:
>
> The method would be to identify what is common for those tiddlers, 
> presumably by opening one and looking at their common tag and then making a 
> filter. Something like
>
> "[tag[thecommontag]] -[[Graphsearch]] -[[Live View]]" (make sure those 
> last two are actually titled so, so it is not only their captions)
>
>
> You put this in - as almost always - the ListWidget. 
>
> <$list filter="the above">
>
> 
>
> Ths is used to generat the list of "options" for the selectwidget, so you 
> put this insdie the selectwiget. Here is the general idea:
>
>
> <$select>
> <$list filter="the above">
> 
> 
> 
>
>
> You'll have to work out the details.
>
> <:-)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0e8579ab-3f38-4f52-8517-fe573193b22a%40googlegroups.com.


[tw5] Populate Select drop-down from folder structure

2019-08-11 Thread MagoArcade
OK - so here's a tricky one. How can I populate a select field in a tiddler 
from the folder structure available in TiddlyWiki>More>Explorer? I have 
this structure, which is dynamic:

[image: tiddlymapviews.png]


I want to grab everything under "views/" with no duplication and make it 
selectable via a drop down. So in this instacne, the dropdown would consist 
of:


Default

Graph Search

Live View

MyView


As a bonus for 50 points, I'd also ideally like to remove "Graph Search" 
and "Live View" from the options.


Any ideas?


Steve


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34be9d75-fb46-42be-8c02-cc8ff7fb0f60%40googlegroups.com.


[tw5] Small Color PIcker and RGB output

2019-08-11 Thread MagoArcade
Hi all,

How can I insert a small color picker into a tiddler and have it output to 
R,G,B format. The standard color picker has way too much associated with it 
(Doc link 
).
 
eg:

[image: colorpicker.png]
All I really want is the button at the bottom, next to the text box. 

Also, I'm needing a way to save it to a field in this format:

198,3,7

i.e. RGB in decimal

Any advice appreciated!


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e728a503-8b09-4fc2-9e65-609c10b7e01e%40googlegroups.com.


[tw5] Prevent delete option for individual tiddlers

2019-08-11 Thread MagoArcade
Any way to do this?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/73e17545-9316-4676-9c43-552cea314a87%40googlegroups.com.


Re: [tw5] $view and date format: Is there anything wrong here?

2019-08-04 Thread MagoArcade

On Sunday, 4 August 2019 18:30:18 UTC+1, Jeremy Ruston wrote:
>
> In this case, we’re calling Date.UTC(0,0,0,0,0,0,0), which happens to 
> return Sun Dec 31 1899 00:00:00 GMT+ (Greenwich Mean Time)
>

Hey - that's when I was born! Things were so much simpler then...

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/55861f08-ce27-49d5-9bd4-1c9f20189bcb%40googlegroups.com.


[tw5] Re: Remove an item from Data Tiddler dictionary

2019-08-04 Thread MagoArcade
Brilliant, Mark - I'd never have thought of that given that it's using 
field manipulation on essentially tiddler text. That's some esoteric 
TiddlyWIki knowledge you got there!

Thanks again. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8fdaa028-e645-4532-957a-1e0e33268e83%40googlegroups.com.


[tw5] Re: Remove an item from Data Tiddler dictionary

2019-08-04 Thread MagoArcade
I tried it with both - no difference.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5a6e78b5-ac5f-4a3f-9aa0-c409cfacbd0a%40googlegroups.com.


[tw5] Remove an item from Data Tiddler dictionary

2019-08-04 Thread MagoArcade
I'm writing a data tiddler editor, just with add and delete. Can;'t get 
delete working. Code below:

!Edit Relationship Types

Existing Types:


<$list filter="[[$:/_DTrelTypes]indexes[]sort[title]]" variable="key">





''Add New:''
<$edit-text tiddler="$:/temp/EditRelTypes" field="newreltype" tag="input" 
default="" class='tc-edit-texteditor' placeholder='Type a new relationship 
type here'/>


<$vars newrelvar={{$:/temp/EditRelTypes!!newreltype}}>


<$button>Add Type


<$action-listops $tiddler="$:/_DTrelTypes" $index=<> 
$subfilter=<>/>





<$button>Delete


<$action-listops $tiddler="$:/_DTrelTypes" $subfilter="[remove[<>]]"/>





deltiddlr: <>




I'm happy to have my key and value the same (essentially just need a list)

Would be grateful for a steer


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aa44d4c5-8a1a-4067-8d30-c6cd4d1e8a9a%40googlegroups.com.


Re: [tw5] urgh.. brackets

2019-08-04 Thread MagoArcade
Thanks Jeremy, that nudged me in the right direction. The key was rather 
than passing as parameters, set as vars in main body and use these in the 
macro. I'll be taking this approach rather than parameters from hereon in.

Working code (not tackled the other issues, but seems to be working without 
addressing those):


\define TmapEdgesGen()
{"$(randrelid)$":{"to":"$(parentmapid)$","type":"$(reltype)$"}}
\end







<$vars reltype={{!!rel_type}}
randrelid={{{ [[]make[%uuid%]] }}} 
itemid={{{ [[]make[%uuid%]] }}}
desctext={{$:/_opNodeDetsEditText!!text}}>


<$set name="parentmapid" tiddler={{!!SearchTermDD}} field=tmap.id>


<$wikify name="myfinal" text=<> >


DEBUG


ParentMapID: <>


RelType: <>


>From Macro: <>


<$button popup="bob" >Create Item


<$action-setfield $tiddler="$:/_opTaskStore" 
itemTitle=<>
desctext={{$:/_opNodeDetsEditText!!text}}
/>


<$action-setfield $tiddler="$:/_opEditNode" 
item.id=<>
shorttext={{$:/_opTaskStore!!taskname}}
description=<>
tags={{$:/_opTaskStore!!tags}}
nodetype= {{!!nodetype}}
createdby={{!!createdby}}
managedby={{!!managedby}}
owner={{!!owner}}
assignedto={{!!assignedto}}
taskstatus={{!!taskstat}}
taskpercentage={{$:/_opTaskStore!!taskpercentage}}
color={{$:/_opTaskStore!!color}}
startdate= {{$:/_opTaskStore!!startdate}}
duedate =  {{$:/_opTaskStore!!duedate}}
stalldate =  {{$:/_opTaskStore!!stalldate}}
completiondate =  {{$:/_opTaskStore!!completiondate}}
tmap.edges=<>
/>


<$action-setfield $tiddler="$:/_opEditNode" 
title=<>
tmap.id={{{ [[]make[%uuid%]] }}}
/>


<$reveal type='popup' state='bob' position='below'>

New Item created successfully:
{{$:/_opTaskStore!!itemTitle}}
<$link to={{$:/_opTaskStore!!itemTitle}}>Click to View




<$action-setfield $tiddler="$:/_opTaskStore" 
taskname=""
tags=""
taskpercentage=0
/>


<$action-setfield $tiddler="$:/_opNodeDetsEditText" 
text=""
/>















-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1093eccf-1371-4b19-83c6-63626d827dcc%40googlegroups.com.


[tw5] urgh.. brackets

2019-08-04 Thread MagoArcade
Hi all,

Having problems constructing a string from various components. The output 
I'm looking for would be in this format (literal = to be stored in a 
tiddler field):

{"31ada977-900e-4751-8549-8320014ab42f":{"to":"45e0e73a-0bdb-4a18-8452-8fdb59407bc6","type":"Subtask
 
Of"}}


My heavily abridged code:

\define TmapEdgesGen(tmapid reltype)
{"{{{ [[]make[%uuid%]] }}}":{"to":"$tmapid$","type":"$reltype$"}}
\end



<$select field="SearchTermDD" class="tw-edit-texteditor myTextEdit">
<$list filter="[regexp:]" emptyMessage="No Results" >
>><$view field='title'/>



<$select field="rel_type" class="tw-edit-texteditor myTextEdit">
<$list filter="[[$:/_DTrelTypes]indexes[]sort[title]]" variable="key">
<$set name="val" filter="[[$:/_DTrelTypes]getindex]">
>><>



<$set name="parentmapid" tiddler={{!!SearchTermDD}} field=tmap.id>

<$wikify name="tmaprelwikid" value="""<> 
{{!!rel_type}} >>""" >

DEBUG
ParentMapID: <>
RelTypeID: {{!!rel_type}}
Tmap.rels: <>


<> can contain spaces

<> will never contain spaces

The output I get is:

DEBUG

ParentMapID: 1bad2a3f-e5d7-4923-8bb1-73e2cdd36314

RelTypeID: Idea About

Tmap.rels:


I.e. nothing in <>


I've messed around with various permutations of brackets and quotes - 
cannot find anyway to get this working. 


Any help appreciated.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/87ed32ae-07bd-4e3b-9938-e9d9be87a293%40googlegroups.com.


[tw5] Re: Case insensitive fuzzy search of title in filter?

2019-08-03 Thread MagoArcade
Thanks all. I'd forgotten about regex, which solved it:

\define SearchTerm(term)
(?i)($term$)
\end





Set Parent Item:


<$edit-text tiddler="$:/_opTaskStore" field="itemsearch" tag="input" default
="" class='tc-edit-texteditor' placeholder='Test text'/>


<$button set="$:/state/ItemSearch" setTo={{$:
/_opTaskStore!!itemsearch}}>Search


test: {{$:/state/ItemSearch}}


<$wikify name="SearchTermWikid" text=<> 
>


wikid: <>


<$select field="SearchTermDD" class="tw-edit-texteditor myTextEdit">
<$list filter="[regexp:]" emptyMessage="No Results" >
>><$view field='title'/>






The "(?i)" in the regex makes it case insensitive.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7b33e404-d9a9-4510-b2f7-72212fd7fd01%40googlegroups.com.


[tw5] Case insensitive fuzzy search of title in filter?

2019-08-03 Thread MagoArcade
Hi - I'm trying to write a fuzzy search routine. At the moment I only know 
how to search on the Prefix, but this only returns results on exact prefix 
matches of precise case. What I'm aiming for is something like below. 

Let's say I have 3 tiddlers:

"The cat sat on the mat"
"Cat littler needed"
"Fight like fish and dog"

If I type "cat" into the search box, it should return:
"The cat sat on the mat"
"Cat littler needed"

Present code (abridged + working code with debug}:

\define SearchTerm()
[prefix[{{$:/state/ItemSearch}}]]
\end





Set Parent Item:


<$edit-text tiddler="$:/_opTaskStore" field="itemsearch" tag="input" default
="" class='tc-edit-texteditor' placeholder='Test text'/>


<$button set="$:/state/ItemSearch" setTo={{$:
/_opTaskStore!!itemsearch}}>Search


test: {{$:/state/ItemSearch}}


macrod: <>


<$wikify name="SearchTermWikid" text=<> >


wikid: <>


<$select field="SearchTermDD" class="tw-edit-texteditor myTextEdit">
<$list filter=<> >
>><$view field='title'/>







-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0f1349c5-ffdc-4516-a18e-d4c0da7e80a1%40googlegroups.com.


[tw5] Re: Weird $action-setfield issue - field getting set to previous value

2019-07-30 Thread MagoArcade
Nevermind. Figured it. It was to do with the action-setfield method  -  I 
had to set the fields in the state tiddler first and *then* set again but 
setting the title field to create the new tiddler. As below:

<$action-setfield $tiddler="$:/_opEditNode" 
shorttext={{$:/_opTaskStore!!taskname}}
description=<>
tags={{$:/_opTaskStore!!tags}}
nodetype= {{!!nodetype}}
createdby={{!!createdby}}
managedby={{!!managedby}}
owner={{!!owner}}
assignedto={{!!assignedto}}
taskstatus={{!!taskstat}}
taskpercentage={{$:/_opTaskStore!!taskpercentage}}
color={{$:/_opTaskStore!!color}}
duedate =  {{$:/_opTaskStore!!duedate}}
stalldate =  {{$:/_opTaskStore!!stalldate}}
completiondate =  {{$:/_opTaskStore!!completiondate}}
tmap.edges={{$:/_opTaskStore!!tmapedges}}
/>


<$action-setfield $tiddler="$:/_opEditNode" 
title=<>
tmap.id={{{ [[]make[%uuid%]] }}}
/>


On Tuesday, 30 July 2019 19:50:57 UTC+1, MagoArcade wrote:
>
> OK. Tough to explain this one. I have a tiddler, *$:/_opNodeDetsEdit:*
>
> <$tiddler tiddler="$:/_opNodeDetsEditText">
> <$transclude tiddler="$:/core/ui/EditTemplate/body/editor"/>
> 
>
> Which produces this:
>
> [image: opNodesDetsEdit.png]
>
> *$:/_opNodeDetsEditText* is just a blank 'holder' tiddler. 
>
> I transclude this into a tiddler called $:/_opAddNode so users can edit 
> without having to edit the tiddler itself. Transclude via:
>
>
> Description: {{$:/_opNodeDetsEdit}}
>
> Which produces:
>
> [image: opNodesDetsEdit2.png]
> Now, when I click "Create New" this produces a new tiddler based on a 
> template. The problem is - all the fields are populated properly apart from 
> that derived form the Description box. What gets put there is the value 
> *before* the current one (say in this example "goodbye cruel moon" was 
> there *before *"Hello World" "goodbye cruel moon" would get populated. 
> Consider the code that creates the new tiddler:
>
> 
>
>
> <$wikify name="myfinal" text=<> >
>
>
> <$button popup="bob" >Create Item
>
>
> <$action-setfield $tiddler="$:/_opTaskStore" 
> itemTitle=<>
> desctext={{$:/_opNodeDetsEditText!!text}}
> />
>
>
> <$set name="desctext" value={{$:/_opNodeDetsEditText!!text}}>
>
>
> Desctext: <>
>
>
> <$action-setfield $tiddler="$:/_opEditNode" 
> title=<>
> shorttext={{$:/_opTaskStore!!taskname}}
> description=<>
> tags={{$:/_opTaskStore!!tags}}
> nodetype= {{!!nodetype}}
> tmap.id={{{ [[]make[%uuid%]] }}}
> createdby={{!!createdby}}
> managedby={{!!managedby}}
> owner={{!!owner}}
> assignedto={{!!assignedto}}
> taskstatus={{!!taskstat}}
> taskpercentage={{$:/_opTaskStore!!taskpercentage}}
> color={{$:/_opTaskStore!!color}}
> duedate =  {{$:/_opTaskStore!!duedate}}
> stalldate =  {{$:/_opTaskStore!!stalldate}}
> completiondate =  {{$:/_opTaskStore!!completiondate}}
> />
>
>
> <$reveal type='popup' state='bob' position='below'>
> 
> New Item created successfully:
> {{$:/_opTaskStore!!itemTitle}}
> <$link to={{$:/_opTaskStore!!itemTitle}}>Click to View
> 
> 
>
>
> <$action-setfield $tiddler="$:/_opTaskStore" 
> taskname=""
> tags=""
> taskpercentage=0
> />
>
>
> <$action-setfield $tiddler="$:/_opNodeDetsEditText" 
> text=""
> />
>
>
> 
>
>
> 
>
>
> 
>
>
> You can see I set a variable:
>
> <$set name="desctext" value={{$:/_opNodeDetsEditText!!text}}>
>
> As a debug I also print this live into the edit tiddler:
>
> Desctext: <>
>
> Which renders the correct current version (see the picture above in the 
> button)
>
> However, when I save exactly the same variable, I get the old version!?
>
> Can anyone shed any light on what is progressively becoming one of the 
> highest dark arts of coding (i.e. TiddlyWiki!)
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/949a8cf0-2961-46da-86b9-0c33a3e0920c%40googlegroups.com.


[tw5] Weird $action-setfield issue - field getting set to previous value

2019-07-30 Thread MagoArcade
OK. Tough to explain this one. I have a tiddler, *$:/_opNodeDetsEdit:*

<$tiddler tiddler="$:/_opNodeDetsEditText">
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor"/>


Which produces this:

[image: opNodesDetsEdit.png]

*$:/_opNodeDetsEditText* is just a blank 'holder' tiddler. 

I transclude this into a tiddler called $:/_opAddNode so users can edit 
without having to edit the tiddler itself. Transclude via:


Description: {{$:/_opNodeDetsEdit}}

Which produces:

[image: opNodesDetsEdit2.png]
Now, when I click "Create New" this produces a new tiddler based on a 
template. The problem is - all the fields are populated properly apart from 
that derived form the Description box. What gets put there is the value 
*before* the current one (say in this example "goodbye cruel moon" was 
there *before *"Hello World" "goodbye cruel moon" would get populated. 
Consider the code that creates the new tiddler:




<$wikify name="myfinal" text=<> >


<$button popup="bob" >Create Item


<$action-setfield $tiddler="$:/_opTaskStore" 
itemTitle=<>
desctext={{$:/_opNodeDetsEditText!!text}}
/>


<$set name="desctext" value={{$:/_opNodeDetsEditText!!text}}>


Desctext: <>


<$action-setfield $tiddler="$:/_opEditNode" 
title=<>
shorttext={{$:/_opTaskStore!!taskname}}
description=<>
tags={{$:/_opTaskStore!!tags}}
nodetype= {{!!nodetype}}
tmap.id={{{ [[]make[%uuid%]] }}}
createdby={{!!createdby}}
managedby={{!!managedby}}
owner={{!!owner}}
assignedto={{!!assignedto}}
taskstatus={{!!taskstat}}
taskpercentage={{$:/_opTaskStore!!taskpercentage}}
color={{$:/_opTaskStore!!color}}
duedate =  {{$:/_opTaskStore!!duedate}}
stalldate =  {{$:/_opTaskStore!!stalldate}}
completiondate =  {{$:/_opTaskStore!!completiondate}}
/>


<$reveal type='popup' state='bob' position='below'>

New Item created successfully:
{{$:/_opTaskStore!!itemTitle}}
<$link to={{$:/_opTaskStore!!itemTitle}}>Click to View




<$action-setfield $tiddler="$:/_opTaskStore" 
taskname=""
tags=""
taskpercentage=0
/>


<$action-setfield $tiddler="$:/_opNodeDetsEditText" 
text=""
/>











You can see I set a variable:

<$set name="desctext" value={{$:/_opNodeDetsEditText!!text}}>

As a debug I also print this live into the edit tiddler:

Desctext: <>

Which renders the correct current version (see the picture above in the 
button)

However, when I save exactly the same variable, I get the old version!?

Can anyone shed any light on what is progressively becoming one of the 
highest dark arts of coding (i.e. TiddlyWiki!)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ac93b9c2-3dbd-40fd-87e1-7663f70a0263%40googlegroups.com.


[tw5] Re: Autiosave tiddler created with tm-new-tiddler

2019-07-29 Thread MagoArcade
Birthe nailed it - thanks fella. 

With this approach you can create a new tiddler and specify the fields 
without it opening in edit view all in one go:

<$action-setfield $tiddler="$:/_opEditNode" 
title=<>
shorttext={{$:/_opTaskStore!!taskname}}
description={{$:/_opNodeDetsEditText!!text}}
tags={{$:/_opTaskStore!!tags}}
nodetype= {{!!nodetype}}
tmap.id={{{ [[]make[%uuid%]] }}}
createdby={{!!createdby}}
managedby={{!!managedby}}
owner={{!!owner}}
assignedto={{!!assignedto}}
taskstatus={{!!taskstat}}
taskpercentage={{$:/_opTaskStore!!taskpercentage}}
color={{$:/_opTaskStore!!color}}
duedate =  {{$:/_opTaskStore!!duedate}}
stalldate =  {{$:/_opTaskStore!!stalldate}}
completiondate =  {{$:/_opTaskStore!!completiondate}}
/>


On Monday, 29 July 2019 01:55:41 UTC+1, Birthe C wrote:
>
>  Maybe you can use Jeds Idea 
> http://inmysocks.tiddlyspot.com/#Silently%20Creating%20a%20Tiddler%20Using%20a%20Template
>
>
> Birthe
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f7562103-c7ba-4d16-ab8c-4fbc646ea6fe%40googlegroups.com.


[tw5] Re: Autiosave tiddler created with tm-new-tiddler

2019-07-28 Thread MagoArcade
Thanks Mat, but I should have mentioned that it has to be the 
$action-sendmessage/tm-new-tiddler method (can't remember precisely why 
now, but this widget couldn't achieve everything I needed it to - thus 
having to use this method).

On Sunday, 28 July 2019 22:57:57 UTC+1, Mat wrote:
>
> https://tiddlywiki.com/prerelease/#ActionCreateTiddlerWidget
>
> <:-)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6e3bceaa-8242-4fb2-bb63-df24c4e7ccaa%40googlegroups.com.


[tw5] Autiosave tiddler created with tm-new-tiddler

2019-07-28 Thread MagoArcade
Hi. I want selected tiddlers created with 
$action-sendmessage/tm-new-tiddler to automatically save the new tiddler 
rather than open it to the user for editing. I tried a few permutations 
around the below - didn't work - I'm assuming this is because the 
$action-sendmessage/tm-sdave-tiddler is firing after the new tiddler have 
been focused + thus is waiting?

Existing code:

<$button>Create Item


<$wikify name="myfinal" text=<> >





<$action-sendmessage
$message="tm-new-tiddler"
$param="_templateNode"
title=<>
shorttext={{$:/_opTaskStore!!taskname}}
completiondate =  {{$:/_opTaskStore!!completiondate}}
/>


<$action-sendmessage $message="tm-save-tiddler" $param="<>"/>







any help appreciated!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c0954aea-1fad-4a63-91e3-9d9427e825a0%40googlegroups.com.


Re: [tw5] Custom CSS for tiddler

2019-07-27 Thread MagoArcade
Awesome - thank you very much. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bf9763d2-0bd5-4ad7-97f5-c3f4e4f85c47%40googlegroups.com.


[tw5] Custom CSS for tiddler

2019-07-27 Thread MagoArcade
Hi,

I've perused the documentation here 
but 
can't understand/implement it

I'm basically trying to hide the tags at the top of a specific tiddler. The 
way I was trying to do this was via implementing a custom css for the tags 
container thus:

.tc-tags-wrapper {
  visibility: hidden;
}

This works if I do this via inspect. However, How do I implement his css 
change in the tiddler itself. I'd rather do that in the tiddler rather than 
via editing any global style sheets etc. 

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a1a082cf-0dfd-468a-8cb1-15642fba0f8c%40googlegroups.com.


[tw5] Re: multi-line edit-text area?

2019-07-27 Thread MagoArcade
That's awesome thanks. It's almost like you read my mind! I wanted an 
editor in the 'front-end' of tiddlers rather than the 'back-end' (i.e. when 
you click edit. Your additional advice was going to be my next question! 
Got this implemented in my build now, so very happy. 

You don't also know how to transclude the tags widget do you? That is 
rather than have to click edit of a tiddler to access the tags function, 
have it directly on the front end of the widget.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f1887475-2e6e-4c0e-aa6e-7c3bc277e333%40googlegroups.com.


[tw5] multi-line edit-text area?

2019-07-27 Thread MagoArcade
Hi - read tw docs - no clues. I#m trying to display a mulit-line textbox in 
one of my tiddlers. Tried various attributes but only ever presented with a 
single line text field. How can I get a multi-line textbox and why don't 
the attributes work on edit-text?

Example permutation of an attempt:

<$edit-text tiddler="$:/_opTaskStore" field="description" tag="input" 
default="" class='tc-edit-texteditor' placeholder='Further details about 
the node here...' autoHeight="yes" rows="5"/>

single line text field. 

Also - I note that this can be achieved through css? However, there's no 
listing in the documentation about tw's inbuilt css classes to enable this?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8687687b-79ae-447e-af66-bf3a01ece9db%40googlegroups.com.


[tw5] Re: Turn field of external tiddler into a link to a tiddler of that name

2019-07-22 Thread MagoArcade
Thanks both. Will do. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/958db9bd-8e2b-48b8-90ca-6f6bff56edbd%40googlegroups.com.


[tw5] Re: Concatenate this...

2019-07-22 Thread MagoArcade
Thanks Tony. TiddlyWiki is some kinda black-magic, 4th dimension, voodoo 
insane genius (meta upon meta - kinda a cross between OOP, procedural + the 
self-modifying code part of assembly)!

parm={{{ [{!!title}addsuffix[/subtiddlers]] }}}
>

I do wonder if Jeremy should introduce a few more brackets, though. It's 
evidently how his mind works! I blame those BBC micros - he should have 
bought himself a C64. 
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f70247c2-e1a1-4375-a267-1138b821f636%40googlegroups.com.


[tw5] Re: Concatenate this...

2019-07-22 Thread MagoArcade
ha! Good answer.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2526a6ee-4ea0-4f28-84b2-22bd2b267c71%40googlegroups.com.


[tw5] Re: Concatenate this...

2019-07-22 Thread MagoArcade
Bang! You got it - thanks again - I owe a few people around here a few 
beers.

Coding this beast's a dark art - does it get any easier?? First language I 
learned a few years ago was batch + I thought that was difficult! 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e38eebc5-797b-4f34-afcc-ab7e9e20a77a%40googlegroups.com.


[tw5] Concatenate this...

2019-07-22 Thread MagoArcade
Ok - so I'm trying to use a concatenated string as a field value in a new 
tiddler. Existing code:

<$action-sendmessage $message="tm-new-tiddler" $param="_templateTask" 
title={{$:/_opTaskStore!!taskname}} 
shorttext={{$:/_opTaskStore!!description}} tmap.id={{{ [[]make[%uuid%]] }}} 
assignedto={{$:/_opTaskStore!!assignedto}} 
caption={{$:/_opTaskStore!!description}} tags="[[Task]]" 
color={{$:/_opTaskStore!!color}} />

I'm waning "title" to be a concatenation of two values:

{{$:/_opTaskStore!!taskname}}

and 

{{{ [[]make[%uuid%]] }}}

also with some formatting. Pseudo code:

final = {{$:/_opTaskStore!!taskname}} + " (" + {{{ [[]make[%uuid%]] }}} + 
")"

making final code looking something like:

<$action-sendmessage $message="tm-new-tiddler" $param="_templateTask" 
title=<> shorttext={{$:/_opTaskStore!!description}} tmap.id={{{ 
[[]make[%uuid%]] }}} assignedto={{$:/_opTaskStore!!assignedto}} 
caption={{$:/_opTaskStore!!description}} tags="[[Task]]" 
color={{$:/_opTaskStore!!color}} />

How can I achieve this (btw - my head's shot with macros/variables/brackets 
- in short - I feel I've tried everything and short of giving infinite 
monkeys infinite typewriters...)

make is a plugin here: http://tobibeer.github.io/tw5-plugins/#make

it does return in a funny format (italicised link in wikiview)

Thanks all for your ongoing help to this newbie. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cbc03495-7c19-4246-a0d8-4df8e5c794fd%40googlegroups.com.


[tw5] Re: Turn field of external tiddler into a link to a tiddler of that name

2019-07-22 Thread MagoArcade
Thanks fella, that worked. I'm really struggling to get my head around 
TiddlyWiki syntax...

>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fdb52d37-c3cc-48cd-ad81-0391182cb026%40googlegroups.com.


[tw5] Turn field of external tiddler into a link to a tiddler of that name

2019-07-22 Thread MagoArcade
I must admit, the brackets systems baffles me in tiddlywiki!

So, I have a tiddler named "$:/_opTaskStore" (shadow due to wanting to hide 
it form general view). Its fields hold data to be used later.

What I am trying to do is retrieve the value from one of its fields from 
another tiddler (let's call it "Dave") and turn that result into a tiddler 
link. The field is called "taskname"

So, let's say {{$:/_opTaskStore!!taskname}} holds "MyResultingTiddler" I 
would see:

MyResultingTiddler 

in the Tiddler "Dave"

if I were to change {{$:/_opTaskStore!!taskname}} to "MyChangedTiddler" I 
would get:

MyChnagedTiddler 

in "Dave"

How do I achieve this?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cf94d9c5-2298-48ea-8ecb-fbc29ebcb11c%40googlegroups.com.


[tw5] Re: Problems getting $action-createtiddler to populate variable via SaveTitle

2019-07-21 Thread MagoArcade
Ha. I have no idea! It's just what dropped out of the bottom of 2 hours of 
fishing around and trial and error!

It did also solve my original problem too around storing the final used 
name into a field. Using one of the the same 'dummy' tiddler's fields to 
store it and read it back again did the trick. Relevant code:

<$action-createtiddler $basetitle={{$:/_opTaskStore!!taskname}} 
$savetitle="$:/_opTaskStore!!finalname" 
shorttext={{$:/_opTaskStore!!description}} tmap.id={{{ [[]make[%uuid%]] }}} 
assignedto={{$:/_opTaskStore!!assignedto}} 
caption={{$:/_opTaskStore!!caption}} tags="[[Task]]" 
color={{$:/_opTaskStore!!color}}/>


<$action-navigate $to={{$:/_opTaskStore!!finalname}}/>

Relevant part being

$savetitle="$:/_opTaskStore!!finalname"


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7acd8994-cd07-4f63-aa51-1fa43fa5a0a8%40googlegroups.com.


[tw5] Re: Problems getting $action-createtiddler to populate variable via SaveTitle

2019-07-21 Thread MagoArcade
Thanks Watt. In the end I went for another approach, leveraging a single, 
temporary tiddler; populating all fields from action-createtiddler 
(avoiding all that clumsy action-navigate stuff) and seems to work OK:

!Add Task
--
Task Name: <$edit-text tiddler="$:/_opTaskStore" field="taskname" tag=
"input" default="" class='tc-edit-texteditor' placeholder='Type a new task 
name here'/>


Brief Description: <$edit-text tiddler="$:/_opTaskStore" field="description" 
tag="input" default="" class='tc-edit-texteditor' placeholder='Brief 
descirption and Board title'/>


Map name: <$edit-text tiddler="$:/_opTaskStore" field="caption" tag="input" 
default={{$:/_opTaskStore!!taskname}} class='tc-edit-texteditor' 
placeholder='Task name as will appear on map'/>


Asigned to: <$edit-text tiddler="$:/_opTaskStore" field="assignedto" tag=
"input" default="" class='tc-edit-texteditor' placeholder='no-one'/>




<$button>New Task


<$action-createtiddler $basetitle={{$:/_opTaskStore!!taskname}} 
shorttext={{$:/_opTaskStore!!description}} tmap.id={{{ [[]make[%uuid%]] }}} 
assignedto={{$:/_opTaskStore!!assignedto}} caption={{$:/_opTaskStore!!
caption}} />


<$action-deletetiddler $tiddler="$:/_opTaskStore"/>




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c78ec852-72e1-4b10-9e14-322db3baa6b4%40googlegroups.com.


[tw5] Problems getting $action-createtiddler to populate variable via SaveTitle

2019-07-21 Thread MagoArcade
Hi all - I can't figure out how to save the final name used by 
$action-createtiddler into a variable in the originating tiddler. 
Basically, I want to enter all of the data used in a template tiddler's 
field and then click a button and a new tiddler is created with the 
relevant fields populated with the text boxes for the originating tiddler. 

The code below:

!Add Task
--
Task Name: <$edit-text tiddler="NewTask" tag="input" default="New Task" 
class='tc-edit-texteditor' placeholder='New Task'/>


Brief Description: <$edit-text tiddler="BriefDesc" tag="input" default=
"no-one" class='tc-edit-texteditor' placeholder=''/>


Asigned to: <$edit-text tiddler="AssignedTo" tag="input" default="no-one" 
class='tc-edit-texteditor' placeholder='no-one'/>


<$button>New Task


<$action-createtiddler $basetitle='{{NewTask}}' $savetitle=tasksavetitle/>


<$action-navigate $to={{!!tasksavetitle}}/>


<$action-setfield $tiddler='_templateTask' $field='title' $value={{NewTask
}}/>


<$action-setfield $tiddler='_templateTask' $field='caption' $value={{
BriefDesc}}/>


<$action-setfield $tiddler='_templateTask' $field='tmap.id' $value={{{ [[]
make[%uuid%]] }}} />


<$action-setfield $tiddler='_templateTask' $field='assignedto' $value={{
AssignedTo}} /> 


<$action-deletefield $tiddler=NewTask text/>
<$action-deletefield $tiddler=AssignedTo text/>
<$action-deletefield $tiddler=BriefDesc text/>



The problem bit is this:

<$action-createtiddler $basetitle='{{NewTask}}' $savetitle=tasksavetitle/>


<$action-navigate $to={{!!tasksavetitle}}/>


The official info here 
suggests the 
final title used can be saved into a field or an index. So I created a 
field in my originating tiddler (i.e. the one this code is in) called 
"tasksavetitle". However, it doesn't appear to be populating. 

I basically just need a variable to pass to $action-navigate. As ever the 
tw wiki is a bit ambiguous/short on details.

Can anyone 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b5b3e0f0-2595-4098-8cd1-94f290b855d3%40googlegroups.com.


[tw5] Re: RegEx not working in filter despite correct format

2019-07-21 Thread MagoArcade
That did the trick thanks. :)

Blimey - TiddlyWiki is proving quite a monster to code in. Not sure if it's 
me just not getting it or it's quite different to what I'm used to. Are 
there any good alternative guides to coding in tw? I find the official a 
bit lacking in detail (like this issue for instance)??

Of course - not dissing tw! I'm amazed by what it can do.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5e088b97-d2f0-4b0e-9f57-ec0d53d26e4c%40googlegroups.com.


[tw5] RegEx not working in filter despite correct format

2019-07-20 Thread MagoArcade
Hi - having problems with variables in filters. The code below doesn't 
produce any results:

\define rx_TidID_RelType(Tid RelType)
"$Tid$".*"$RelType$"
\end
-

''All Sub-tasks of this tiddler''

<$set name=rxSearch value=<>>

rxSearchTerms: <>

<$list filter="[regexp:tmap.edges]">



However, it's producing the regex search correctly on examining the output:

--

*All Sub-tasks of this tiddler*

.*rxSearchTerms: "087aa75e-ec77-4cd2-a774-c41c0ee52382".*"SubTaskOf 
"



tmap.edges essentially holds an array, thus having to use regex. Here's a 
couple of examples of data from tmap.edges:

"a2373aa7-f71b-48e3-ac64-10e464c135a8":{"to":"087aa75e-ec77-4cd2-a774-c41c0ee52382","type":"SubTaskOf"
"a2373aa7-f71b-48e3-ac64-10e464c135a8":{"to":"087aa75e-ec77-4cd2-a774-c41c0ee52383","type":"SubTaskOf"

The RegEx search is resolved to something like this format:

.*"087aa75e-ec77-4cd2-a774-c41c0ee52382".*"SubTaskOf"

I know this works: regexr.com/4hqih

I also have it working filtering results at other points in my code:

<$list filter="[regexp:tmap.edges{!!tmap.id}]">




this produces a list of all entries matching the current tiddler's tmap.id

Why isn't variable substitution working in this instance?

I chose to use a macro due to the complexities introduced into doing it 
inline with special characters (quotes in this instance) 

Any help[ much appreciated (I know I'm hitting these forums hard tonight, 
but just learning TiddlyWiki!)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7cb0e0ed-a78e-415b-bb47-85ce23c87387%40googlegroups.com.


[tw5] Re: Unexpected variable behaviour in filter

2019-07-20 Thread MagoArcade
Bingo! Thanks fella. Blimey - it reminds me of learning batch, this!

On Saturday, 20 July 2019 22:25:55 UTC+1, Mark S. wrote:
>
> When using the angle brackets (< and >) in a filter for variable 
> substitution, the brackets swap places with the original square ([ and ]) 
> brackets. So
> your second filter should be like:
>
> filter="[regexp:tmap.edges]">
>
> Good luck!
>
> On Saturday, July 20, 2019 at 2:13:49 PM UTC-7, MagoArcade wrote:
>>
>> Reading this would imply you can include variables in filters, but 
>> enclosing the variable name in "<>" However, my code is behaviour 
>> differently. 
>>
>> This:
>>
>> ''For this Catagory:''
>>
>>
>> <$set name=catID value=087aa75e-ec77-4cd2-a774-c41c0ee52382>
>>
>>
>> Var catID: <>
>>
>>
>> <$list filter="[regexp:tmap.edges[087aa75e-ec77-4cd2-a774-c41c0ee52382]]"
>> >
>>
>>
>> 
>>
>> -
>>
>> Produces this:
>>
>> *For this Catagory:*
>>
>> Var catID: 087aa75e-ec77-4cd2-a774-c41c0ee52382
>> Idea.um.share screen shots
>> TestTask3
>> TestUserTask
>> TestUserTask2
>> Update ogz db User Action
>> UserManager.AddUser
>> UserManager.ImageUpload
>> --
>>
>>
>> (ie. results). Whilst this:
>>
>> Whilst this:
>>
>>
>> ''For this Catagory:''
>>
>>
>> <$set name=catID value=087aa75e-ec77-4cd2-a774-c41c0ee52382>
>>
>>
>> Var catID: <>
>>
>>
>> <$list filter="[regexp:tmap.edges[]]">
>>
>>
>> 
>>
>> -
>>
>> Produces this:
>>
>> *For this Catagory:*
>>
>> Var catID: 087aa75e-ec77-4cd2-a774-c41c0ee52382
>> --
>>
>>
>>
>> (i,e. no results). 
>>
>> How can this be so?
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/07c4114c-146e-413c-bb7b-5371681b1fbb%40googlegroups.com.


[tw5] Unexpected variable behaviour in filter

2019-07-20 Thread MagoArcade
Reading this would imply you can include variables in filters, but 
enclosing the variable name in "<>" However, my code is behaviour 
differently. 

This:

''For this Catagory:''


<$set name=catID value=087aa75e-ec77-4cd2-a774-c41c0ee52382>


Var catID: <>


<$list filter="[regexp:tmap.edges[087aa75e-ec77-4cd2-a774-c41c0ee52382]]">




-

Produces this:

*For this Catagory:*

Var catID: 087aa75e-ec77-4cd2-a774-c41c0ee52382
Idea.um.share screen shots 

TestTask3 

TestUserTask 

TestUserTask2 

Update ogz db User Action 

UserManager.AddUser 

UserManager.ImageUpload 

--


(ie. results). Whilst this:

Whilst this:


''For this Catagory:''


<$set name=catID value=087aa75e-ec77-4cd2-a774-c41c0ee52382>


Var catID: <>


<$list filter="[regexp:tmap.edges[]]">




-

Produces this:

*For this Catagory:*

Var catID: 087aa75e-ec77-4cd2-a774-c41c0ee52382
--



(i,e. no results). 

How can this be so?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/480a70ce-a03c-4694-be00-926edbd23f2e%40googlegroups.com.


[tw5] Re: sorry - newbie: how do I include a (transcluded?) link in a TiddlerTemplate?

2019-07-20 Thread MagoArcade
Thanks for the reply - it's actually quite difficult to explain things 
clearly when you're just starting out! Given that all the terminology is 
new and in the case of TiddyWiki, the concepts to some degree, it's hard to 
know the right way to explain things! However, I'll try again.

I have made a TiddlerTemplpate with the following code:

This Task: 


|!Field|!Value|
|>| Map |
|caption|{{!!caption}}|
|tmap.id|{{!!tmap.id}}|
|tmap.edges|{{!!tmap.edges}}|
|>| Board |
|shorttext|{{!!shorttext}}|

I want to include some code at the top, after "This Task: " it will have 
the Task as a draggable object, as per this video:

https://youtu.be/cPvIhpD8Fys

Let's say I create a task called "Get.Milk" based on the template. It will 
say "This Task: Get.Milk" at the top and I'll be able to drag "Get.Milk" 
onto other application within the wiki. 

I tried by displaying the title field, but periods seem to mess it up. The 
links in the video were produced via list + filter. But how do I do this 
(essentially by self-referencing? e.g. pseudo: {{self}} )


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/768b1b9b-5eb0-4a17-958b-33eac4c48cb0%40googlegroups.com.


[tw5] sorry - newbie: how do I include a (transcluded?) link in a TiddlerTemplate?

2019-07-20 Thread MagoArcade
Errr, how to explain?

I'm constructing a Tiddler Template for a task template. It'll contain 
verious informaiton about the task it eventualyl becomes. Some exalpe code 
in it:

Task Details:


|!Field|!Value|
|>| Map |
|caption|{{!!caption}}|
|tmap.id|{{!!tmap.id}}|
|tmap.edges|{{!!tmap.edges}}|
|>| Board |
|shorttext|{{!!shorttext}}|


Produces:

Task Details:

FieldValue
Map
caption 
tmap.id 9e4cbcad-bd73-4741-a9df-cb57c056b5f9
tmap.edges 
Board
shorttext


Now, at the top of the constructed task tiddler, I'm wanting a link like 
you would get when using list (i.e. a draggable tiddler) - sorry know i#m 
being dumb, but how do I go about this?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b77aab46-7102-4d4e-b1a1-972a4fa61bae%40googlegroups.com.


[tw5] Re: Filtering Lists by a field that contains multiple sub-fields

2019-07-20 Thread MagoArcade
Loved that song - "feed your head" indeed!

On Saturday, 20 July 2019 19:00:22 UTC+1, Watt wrote:
>
> 50 years ago!
>
> https://youtu.be/Vl89g2SwMh4
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/db0e47a9-d4d9-494c-8fc8-01d54af6fd68%40googlegroups.com.


[tw5] Re: Filtering Lists by a field that contains multiple sub-fields

2019-07-20 Thread MagoArcade
Thanks for the answer, Watt. Miraculously (I have no idea how) I managed to 
solve it myself. It's probably hacky and would welcome a more eloquent 
answer, but I used a combination of regex and a variable to hold it (even 
used that there 'transclusion' to hold the variable value in a tiddler + 
then populate the variable from this!). Escaping characters seems to be a 
bit of a black art.

For completeness, the working code:

<$set name=regex value="{{regexSubTaskOf}}">


<$list filter="[regexp:tmap.edges[SubTaskOf]]">
{{!!title}} :
{{!!tmap.id}}





where 'regexSubTaskOf'=

"type":"[A-Za-z].*"

Results:

User Chooses scraper : 70ca072d-9243-4f08-b0aa-8c7f0f715cae 

User chooses default region : 53b18c6b-4924-4545-9e50-e365323f372c 

Update ogz db User Action : ed759eb2-dde8-4bf1-b9e3-8473c76c474f 

UserManager 
.
AddUser  
: cd9eb9bb-4437-4bf1-918a-8e08425641b8 

UserManager 
.
AddUser .
CheckIfExists 
 :
e27391cb-4e9b-4794-9c58-8a1fd018adae 

TestUserTask 
 : 
2441c2d3-1b64-4edc-83cd-4f05b91daab3 

The top few are on a different map, but are all 'SubTaskOf'

Weirdly, I wanted the names to display as tiddlers, so I could drag and 
drop them. Those without space do this, but those with don't. More 
rabbit hole plunging to do.

I got into TiddlyWiki to help with task, planning and design processes for 
my coding. I didn't realise I'd find a new coding environment to enjoy!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/008e2e99-703b-4ab4-a5aa-50b665444d9e%40googlegroups.com.


[tw5] Filtering Lists by a field that contains multiple sub-fields

2019-07-20 Thread MagoArcade
TiddlyWiki is making my brain hurt. I'm following the white rabbit down the 
relevant hole and I can't handle the meta. 

So - I'm an amateur coder - so do bear with me - this aint my day job. It's 
taking some adjustment - even to using the online documentation! 

I'm using TiddlyMap. Here's how it looks:

[image: map3.png]

Any tiddlers made by tiddlymap have a couple of extra fields, tmap.edges 
and tmap.id:


[image: map4.png]

Now, tmap.edges appears to contain sub-fields within it. TestUserTask 
tmap.edges full value is (verbatim):


{"49655fa4-e3ff-4ef8-a776-d9c915b372ca":{"to":"087aa75e-ec77-4cd2-a774-c41c0ee52382","type":"SubTaskOf"}}


What I am trying to do is write a filter to do the following:


   1. Identify all tiddlers that have a value in "tmap.edges" (thus no 
   nulls) and also those where "type" = a specific value (in this instance 
   equalling "SubTaskOf")
   2. I'd also like to know how to display any other data from these arrays 
   within a field (for example in this instance, sharing the 1st and second 
   values in the return from tmap.edges)

Closest I've got so far is successfully filtering by another field value 
(in this case, tmap.id due to not knowing how to access the sub-field):

<$list filter="[field:tmap.id[2441c2d3-1b64-4edc-83cd-4f05b91daab3]]">

{{!!title}} :
{{!!tmap.edges}}


Produces:

TestUserTask 
 : 
{"49655fa4-e3ff-4ef8-a776-d9c915b372ca":{"to":"087aa75e-ec77-4cd2-a774-c41c0ee52382","type":"
SubTaskOf 
"}}

Whilst this is displaying all of the values of tmap.edges, it's just 
displaying the full string, not the component fields. 

I'd appreciate any help. I'm slowly getting that what you get with 
TiddlyWiki is an incredibly powerful knowledge framework. However, it's 
one's responsibility to form it into the functionality you want (in my 
instance a software development planning tool). 

Steve








 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fb6411ba-b52f-4999-a306-2d8e3ddf2903%40googlegroups.com.


[tw5] Re: Newbie breaks Control Panel

2019-07-20 Thread MagoArcade
test post testing images on gg. Large size:

[image: map2.png]




On Friday, 19 July 2019 16:39:21 UTC+1, MagoArcade wrote:
>
> I've had this a couple of times now whilst using the desktop client 
> (haven't tried to re-create via other serving means). It seems to stop 
> displaying the usal options, but if you edit it as a shadow copy - it's all 
> there. Also, if open in new window - opens correctly. Vid:
>
> https://youtu.be/GuSd1fb6yq8
>
> Any advice? - very new to twiki - so probably something daft.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/903018d1-ad03-494e-9cfe-fa2e63826cf7%40googlegroups.com.


[tw5] Re: Newbie breaks Control Panel

2019-07-19 Thread MagoArcade
Doh! Ah the pleasures of learning new stuff!

Thanks BTC + appreciating a community that doesn't leap to "rtfm"

On Friday, 19 July 2019 17:20:13 UTC+1, BurningTreeC wrote:
>
> Hi MagoArcade,
>
> It's the folded state which is on, just open the ControlPanel's dropdown 
> and click on "unfold tiddler"
>
> You probably folded it somewhere in the process
>
> all the best,
> btc
>
>
> I've had this a couple of times now whilst using the desktop client 
>> (haven't tried to re-create via other serving means). It seems to stop 
>> displaying the usal options, but if you edit it as a shadow copy - it's all 
>> there. Also, if open in new window - opens correctly. Vid:
>>
>> https://youtu.be/GuSd1fb6yq8
>>
>> Any advice? - very new to twiki - so probably something daft.
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/882965b3-2f0c-46ad-bf74-178b55d37c28%40googlegroups.com.


[tw5] Newbie breaks Control Panel

2019-07-19 Thread MagoArcade
I've had this a couple of times now whilst using the desktop client 
(haven't tried to re-create via other serving means). It seems to stop 
displaying the usal options, but if you edit it as a shadow copy - it's all 
there. Also, if open in new window - opens correctly. Vid:

https://youtu.be/GuSd1fb6yq8

Any advice? - very new to twiki - so probably something daft.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4959a0cb-3512-474b-8641-7499f5b73cec%40googlegroups.com.


[tw5] Re: [tw] Re: [TW5] WebDav Saver Observations.

2019-07-18 Thread MagoArcade
Hmm. Just thinking how to do this test without doing a full re-install. If 
I were to disable your plugin and then change the auth method to Basic - 
would that test your scenario. 

I'm very confident about the 'one shot' save when using Windows Auth - it 
was a clear pattern - restart server - first save goes well, any subsequent 
doesn't. 

Let me know how to proceed with any testing - happy to help. 

On Thursday, 18 July 2019 10:45:18 UTC+1, PMario wrote:
>
> Hi, 
>
> It would be nice, if you could do 1 more test. In your video at: 
> https://youtu.be/VMQ3Lfko8uQ?t=1138 you did stop interaction for a "1 
> shot possibility". ... I think that shouldn't be true, if server side 
> compression is *switched off *already. 
>
> I did test the default WebDav saver, which uses etags, on a Windows 10 Pro 
> Client machine. .. IIS is enabled using webdav and basic auth. ... So 
> that's the main difference between your setup and mine. ..
>
> I could save several times, as long as I didn't change the TW with 
> TDesktop or by hand ... 
>
> If you really can't save 2 times at this stage, then ISS stand alone 
> server and ISS client server implement etags in different ways. Which I 
> don't think is true. My IIS Manger says: IIS Version 10.0.18362.1
>
> It would be nice to get feedback here. 
>
> 
>
> There is a second possibility to include the plugin. .. Just use TDesktop 
> first and import the plugin there. ... If you load it with WebDav, then it 
> would be there already. 
>
> have fun!
> mario
>
>
>

-- 
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/cd9e19c6-a92a-4d59-9b13-c744e8e693f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [tw] Re: [TW5] WebDav Saver Observations.

2019-07-18 Thread MagoArcade
Thanks for the feedback - have updated things accordingly. I can confirm 
that re-enabling compression works fine. Also - your vids linked from mine 
and the blog. Thanks for your input into this. 

On Thursday, 18 July 2019 08:21:24 UTC+1, PMario wrote:
>
> Hi, 
> I did link to your video, from my 1st and 3rd videos. .. So it would be 
> nice if you could link to mine too. 
>
> -m
> see: 
> https://www.youtube.com/watch?v=tpkQhKyqPzc=PLuiC_HFhI4OwoVDb-B-VK0ydj-mBPNn-1
>

-- 
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/0233a727-2d7f-44a6-bacc-d457b28e7ae6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [tw] Re: [TW5] WebDav Saver Observations.

2019-07-17 Thread MagoArcade
@PMario - you, sir, are a star. That just nudged me enough to get it all 
working! It also came with additional rewards. Not only can I edit my wiki 
securely (due to the password protection through webdav) but I can also 
edit it on my LAN with TiddlyDesktop (putting it in a shared network 
folder) and additionally I can create another Virtual Directory which 
allows the public to see (but not save) it. 3 for 1! 

Well, it took me 2 solid days to get this working, but now I have, I 
thought I'd make a step-by-step video and blog guide to help others in the 
future. Why don't you take a look?

Blog: 
http://magoarcade.org/wp/serving-tiddlywiki-via-windows-home-server-iis-and-webdav/
Video: https://youtu.be/VMQ3Lfko8uQ

When I found something good, I like to contribute. Is there anywhere else I 
could post these to help out other struggling Tiddliers?

Thanks again.

On Wednesday, 17 July 2019 08:20:11 UTC+1, PMario wrote:
>
> Hi,
>
> Did you turn on server side compression? If yes the default saver doesn't 
> work. It uses etags to detect changes, which seems to be implemented very 
> different on the different platforms.
>
> I did create a put-saver that uses last-modified timestamp. It should be 
> more forgifing.
>
> see: https://wikilabs.github.io/editions/webdav-lm/
>
> -mario
>

-- 
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/d61dd8c8-0958-4ccc-9cbf-06598e067cb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [tw] Re: [TW5] WebDav Saver Observations.

2019-07-16 Thread MagoArcade
Hi all - did this result in a dead end? I'm trying to serve tw via IIS and 
Webdav to enable editing over the internet. Have it connecting fine in 
terms of reading, but consistently get "Error whilst saving: File changed 
on server" no matter how much I tinker with WebDav/Auth/SSL settings. 

I've tried other methods too (node.js server etc) none of which are working 
for this scenario. 

TiddlyWiki looks fab, but this saving malarky appears to be its Achilles 
heel?

-- 
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/50f73e32-717e-473d-8244-239f2fbe0d92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] HTTP Error 500.19 On IIS Setup

2019-07-16 Thread MagoArcade
Hi, 

New to TiddlyWiki an excited to get this up and running. Great concept - 
quite revolutionary. 

I'm trying to get a setup running on my IIS10 Windows Home Server. I 
followed the guide point by point (including installing git) but sadly got 
a HTTP 500 error

I followed the guide here:
https://tiddlywiki.com/#Installing%20TiddlyWiki%20on%20Microsoft%20Internet%20Information%20Server

One hiccup I encountered was the link for "HttpPlatformHandler" - led to a 
dead end. Eventually I discovered I could install this via the Site's (i.e. 
"Default Web Site" on IIS)  Web Platform Installer. 

When I performed the npm install, I got:

[image: td_npm.png]

Is this right?

Sadly, when I did the test via "localhost/MyApp" I got:

[image: td_501.png]

Any ideas?



-- 
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/7c51286d-3d2e-4a09-8790-fe11a6a0c732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.