[tw5] Re: why my macro return is not rendered correctly ?

2022-12-04 Thread vpl
RESOLVED !!! Don't care anymore .
Syntax error.

Thanks a lot for your time

Regards

Le lundi 5 décembre 2022 à 08:41:38 UTC+1, vpl a écrit :

> Of course,
> here it is:
>
> /*\
> title: $:/plugins/vpl/jazzbokMem/db_macros_plan.js
> type: application/javascript
> module-type: macro
>
>
> \*/
> (function(){
>
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
>
>
> /*
> Information about this macro
>
> */
> exports.name = "db_macros_plan";
>
> exports.params = [
> {name: "opt"}
> ];
> /*
> Run the macro
> */
> exports.run = function(opt) {
> var str_return = "N/A";
> console.log("db_macros_plan 0.2. opt:"+opt);
>var dbPlanTiddler = this.wiki.getTiddler(opt);
> var audio_path = dbPlanTiddler.getFieldString("audio_ref");
> if (audio_path.includes("files/audio/cours")) {
> str_return = "audio src=\""+audio_path+"\" preload=\"auto\" 
> controls>";
> console.log(str_return);
> }
> return (str_return);
> };
>
> })();
>
> Le lundi 5 décembre 2022 à 03:15:56 UTC+1, cj.v...@gmail.com a écrit :
>
>> I think we are going to need to see the full definition of your 
>> "db_macros_plan" macro.
>>
>> On Sunday, December 4, 2022 at 10:43:27 AM UTC-4 vpl wrote:
>>
>>> Hi,
>>>
>>> I've the following table that list different scores (tiddlers in 
>>> tiddlywiki). See bottom of this mail
>>>
>>> This works perfectly except for the 
>>> <$macrocall $name="db_macros_plan" opt={{{ [get[title]] 
>>> }}} /> execution.
>>>
>>> This macro return what I expect, that is to say: 
>>> audio src="files/audio/cours/blues-ex-1.mp3" preload="auto" 
>>> controls>
>>> But in the rendered table this appears as a the string 'audio 
>>> src="files/audio/cou " where I expect to get the refering html5 
>>> audio element
>>>
>>> What is my error ..??
>>>
>>> Thanks a lot for your help
>>> Regards
>>>
>>>
>>> 
>>> 
>>> 
>>> ModeAudioCommentsScore
>>> 
>>> <$list filter=<>>
>>> 
>>> <$view field="mode"/>
>>> <$macrocall $name="db_macros_plan" opt={{{ 
>>> [get[title]] }}} />
>>> <$view field="comments"/>
>>> get[score_ref]] }}} />
>>> 
>>> 
>>> \end
>>>
>>>
>>>

-- 
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/2b5aed95-7346-46ef-844f-cc95a324f1acn%40googlegroups.com.


[tw5] Re: why my macro return is not rendered correctly ?

2022-12-04 Thread vpl
Of course,
here it is:

/*\
title: $:/plugins/vpl/jazzbokMem/db_macros_plan.js
type: application/javascript
module-type: macro


\*/
(function(){

/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";


/*
Information about this macro

*/
exports.name = "db_macros_plan";

exports.params = [
{name: "opt"}
];
/*
Run the macro
*/
exports.run = function(opt) {
var str_return = "N/A";
console.log("db_macros_plan 0.2. opt:"+opt);
   var dbPlanTiddler = this.wiki.getTiddler(opt);
var audio_path = dbPlanTiddler.getFieldString("audio_ref");
if (audio_path.includes("files/audio/cours")) {
str_return = "audio src=\""+audio_path+"\" preload=\"auto\" 
controls>";
console.log(str_return);
}
return (str_return);
};

})();

Le lundi 5 décembre 2022 à 03:15:56 UTC+1, cj.v...@gmail.com a écrit :

> I think we are going to need to see the full definition of your 
> "db_macros_plan" macro.
>
> On Sunday, December 4, 2022 at 10:43:27 AM UTC-4 vpl wrote:
>
>> Hi,
>>
>> I've the following table that list different scores (tiddlers in 
>> tiddlywiki). See bottom of this mail
>>
>> This works perfectly except for the 
>> <$macrocall $name="db_macros_plan" opt={{{ [get[title]] 
>> }}} /> execution.
>>
>> This macro return what I expect, that is to say: 
>> audio src="files/audio/cours/blues-ex-1.mp3" preload="auto" 
>> controls>
>> But in the rendered table this appears as a the string 'audio 
>> src="files/audio/cou " where I expect to get the refering html5 
>> audio element
>>
>> What is my error ..??
>>
>> Thanks a lot for your help
>> Regards
>>
>>
>> 
>> 
>> 
>> ModeAudioCommentsScore
>> 
>> <$list filter=<>>
>> 
>> <$view field="mode"/>
>> <$macrocall $name="db_macros_plan" opt={{{ 
>> [get[title]] }}} />
>> <$view field="comments"/>
>> get[score_ref]] }}} />
>> 
>> 
>> \end
>>
>>
>>

-- 
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/e6ca4d01-4adf-473c-b06b-5de92c082194n%40googlegroups.com.


[tw5] why my macro return is not rendered correctly ?

2022-12-04 Thread vpl
Hi,

I've the following table that list different scores (tiddlers in 
tiddlywiki). See bottom of this mail

This works perfectly except for the 
<$macrocall $name="db_macros_plan" opt={{{ [get[title]] }}} 
/> execution.

This macro return what I expect, that is to say: 
audio src="files/audio/cours/blues-ex-1.mp3" preload="auto" 
controls>
But in the rendered table this appears as a the string 'audio 
src="files/audio/cou " where I expect to get the refering html5 audio 
element

What is my error ..??

Thanks a lot for your help
Regards





ModeAudioCommentsScore

<$list filter=<>>

<$view field="mode"/>
<$macrocall $name="db_macros_plan" opt={{{ [get[title]] 
}}} />
<$view field="comments"/>
get[score_ref]] }}} />


\end


-- 
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/7167106b-50da-4118-b1dc-7ff80dab5c41n%40googlegroups.com.


[tw5] how to filters tags except some

2022-03-22 Thread vpl
Hi,

I'm struggling with a filter expression and look for support ...

I want to propose in a drop down select, a list of existing tags except one
I have the following tags
 - APT
 - SP
 - Experiment

And I would like to display in my drop down, all the tags except the 
'Experiment' one

I've tried multiples things but nothing works ...

<$select tiddler=<> field="projectId" 
<$list filter='[tags[]]:and[!tags[Experiment]]'>
>><$view field='title'/>



Any idea ;.

Thanks a lot

Regards

-- 
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/50642928-51cd-43f9-b827-1939bbe6d3ffn%40googlegroups.com.


[tw5] Re: Need help to create a javascript library & invoke this.wiki.xxxx() from it

2021-10-27 Thread vpl
Fantastic !!
I've tested this option previously but *outside *the (function(){. This was 
not working.
But inside the function this works 

Thanks a lot



Le mercredi 27 octobre 2021 à 11:25:28 UTC+2, Eric Shulman a écrit :

> On Wednesday, October 27, 2021 at 1:44:07 AM UTC-7 vpl wrote:
>
>> `var stats_tiddlers = this.wiki.filterTiddlers(stats_tiddler_filter);`
>>
>
> Try using `$tw` instead of `this`:
> ```
> var stats_tiddlers = $tw.wiki.filterTiddlers(stats_tiddler_filter);
> ```
>
> -e
>

-- 
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/43329771-ce65-4a7e-a6e5-001f6e03ebecn%40googlegroups.com.


[tw5] Need help to create a javascript library & invoke this.wiki.xxxx() from it

2021-10-27 Thread vpl
Hi guys,

I need a bit of help to understand how to access  getTiddler  method from a 
javascript library

When I develop *macro* (module-type) I use this.wiki. filterTiddlers  
(...) methods and all works fine when I invoke this macro from a tiddler 
script

But I would like to develop a javascript library that is intended to be 
used by different macros. This library will need to access a Data Tiddler 
(as a DB "backend")

So I created a javascript code and set its module-type to *library*
The code is the following

(function(){
class Hero {
constructor(name, level) {
var stats_tiddler_title = "Stats_report"; // a backend tiddler that 
contains the stats reports (as field value)
var stats_tiddler_filter = "[["+stats_tiddler_title+"]]";
var stats_tiddlers = this.wiki.filterTiddlers(stats_tiddler_filter);
this.name = name;
this.level = level;
console.log("   Class created. Value:"+this.level);
}
getName() {
console.log("   getName !. Name:"+this.name);
}
}
exports.Hero = Hero;

})();

>From my macro javascript I tried to call this library 

var Hero = require('$:/plugins/vpl/vpl_test_class.js').Hero;
const hero1 = new Hero('Varg', 1);

But I get the error
Uncaught TypeError: Cannot read properties of undefined (reading 
'filterTiddlers')

I'm blocked  Can someone help & guide me on the proper way to do that ?

Thanks very much for your help

Regards

-- 
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/c90c3f62-4bb8-456c-b58b-71c2ba0fdec5n%40googlegroups.com.


[tw5] Re: How to increment a variable in a list

2021-10-16 Thread vpl
as always ... just magic ! 

Thanks a lot !

Vpl

Le samedi 16 octobre 2021 à 20:19:35 UTC+2, Mark S. a écrit :

> I don't believe that you can increment a variable that way. You might be 
> able to using some sort of recursive function.
>
> But if you're using 5.2.0, you now have the *counter* attribute, so don't 
> need those extra steps:
>
> <$vars projs_list="A B C">
> <$list filter="[enlist]" variable ="proj_name_val" 
> counter="vals_rep" >
>  <> <$checkbox tiddler="projs_selection" 
> index=<>  checked=<>>  
> 
> 
>
>
> On Saturday, October 16, 2021 at 11:03:11 AM UTC-7 vpl wrote:
>
>> Hi,
>>
>> I'm blocking on how to increment a counter into a list
>> I have the following code which display a list of checkbox
>>
>> I need to set the index in the DataTiddler but in the below example the 
>> <> remains to  ..
>> Anyone who has an idea why it's not working ?
>>
>> Thanks for your help
>> Regards
>>
>> <$list filter="[enlist]" variable ="proj_name_val">
>> <$vars  vals_rep ={{{ [add[1]]   }}}>
>> <>
>>  <> <$checkbox tiddler="projs_selection" 
>> index=<>  checked=<>>  
>>
>>

-- 
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/5f882539-d823-41cd-932c-7b05ee55c182n%40googlegroups.com.


[tw5] How to increment a variable in a list

2021-10-16 Thread vpl
Hi,

I'm blocking on how to increment a counter into a list
I have the following code which display a list of checkbox

I need to set the index in the DataTiddler but in the below example the 
<> remains to  ..
Anyone who has an idea why it's not working ?

Thanks for your help
Regards

<$list filter="[enlist]" variable ="proj_name_val">
<$vars  vals_rep ={{{ [add[1]]   }}}>
<>
 <> <$checkbox tiddler="projs_selection" 
index=<>  checked=<>>  

-- 
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/21a0a07c-26da-402b-97fa-b37c75ddff5cn%40googlegroups.com.


[tw5] Re: Cannot use a variable from a filter. Can someone help me ?

2021-08-23 Thread vpl
Hi,
Thanks a lot; I agree for 1), 3) and 4)

But for point 2) in fact what I need to do is the following code 
<$vars now_date=<>>
<>
<$vars todayfilter="[get[task_date]match]">
<$list filter="[regexp[db___]!sort[task_start_time]filter]">

<$link><$view field="task_date"/>
<$view field="tags"/>
<$view field="task_comment"/>
<$view field="task_start_time"/>
<$view field="task_end_time"/>




I use the *filter *operator into the list as I want to filter the tiddlers 
based on the *task_date * field
For each of the filtered tiddlers I display the fields in the table
If I put the "get[task_date]" directly into my final filter  like that (<$list 
filter="[regexp[db___]!sort[task_start_time] [get[task_date]match ">) 
I do not have the tiddler fields to display

More, When I try the below code I get a Tiddler exception (attached in my 
previous post ...)

Is there a bug in the *filter *operator or something wrong I'm doing ?

Regards




Le lundi 23 août 2021 à 13:45:27 UTC+2, Eric Shulman a écrit :

> On Sunday, August 22, 2021 at 1:24:58 PM UTC-7 vpl wrote:
>
>> I'm trying to run the following code (at the end of the message) which 
>> uses a variable called 'target' (that contains the current date) into a 
>> filter called todayfilter
>>
> \define now_val()
>> <$vars now_date=<>>
>> <$vars  target={{{ [] }}}>
>> <>
>> <$vars todayfilter="[get[task_date]compare:string:eg[]]">
>>
>
> Replace the first four lines of the macro with these three lines:
> <$vars target=<>>
> <>
> <$vars todayfilter="[get[task_date]match]">
>
> Notes:
> 1) Assign the date to the target variable in one step.  There's no need 
> for "now_date".
> 2) The filter needs  preceding get[task_date], otherwise 
> it will get the task_date value from *every* tiddler that has that field!
> 3) The compare "mode" should be "eq" (abbreviation of "equal") not "eg".
> 4) For a simple string comparison, you can use the "match" filter operator.
>
> Let me know how it goes,
>
> enjoy,
> -e
>

-- 
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/6867f42a-98bb-4fed-b101-44b1ebb82ec6n%40googlegroups.com.


[tw5] Cannot use a variable from a filter. Can someone help me ?

2021-08-22 Thread vpl
Hi,

I'm trying to run the following code (at the end of the message) which uses 
a variable called 'target' (that contains the current date) into a filter 
called todayfilter

When I set the  todayfilter 
<$vars todayfilter="[get[task_date]compare:string:eg[2021-08-22]]">
All works fine (I mean the list <$list 
filter="[regexp[db___]!sort[task_start_time]filter]"> 

When I set the  todayfilter using the  variable (as in the code 
below) this does not works. I've tested several syntax options without 
success ...

Any expert to tell me when the syntax is wrong ?
Many thanks , Regards
Vpl

\define now_val()
<$vars now_date=<>>
<$vars  target={{{ [] }}}>
<>

<$vars todayfilter="[get[task_date]compare:string:eg[]]">


DateProjectTaskStartStop

  
  //Number of tiddlers//
  ''<$count 
filter="[regexp[db___]filter]"/>''
 
<$list filter="[regexp[db___]!sort[task_start_time]filter]">

<$link><$view field="task_date"/>
<$view field="tags"/>
<$view field="task_comment"/>
<$view field="task_start_time"/>
<$view field="task_end_time"/>




\end

<>

-- 
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/1911df1f-db06-4035-9ff1-c28c5e5a7627n%40googlegroups.com.


[tw5] Cannot use a variable from a filter. Can someone help me ?

2021-08-22 Thread vpl
Hi,

I'm trying to run the following code (at the end of the message) which uses 
a variable called 'target' (that contains the current date) into a filter 
called todayfilter
I've tested the todayfilter this way 
<$vars todayfilter="[get[task_date]compare:string:eg[2021-08-22]]">
and this works (I mean the list <$list 
filter="[regexp[db___]!sort[task_start_time]filter]"> works 
fine


\define now_val()
<$vars now_date=<>>
<$vars  target={{{ [] }}}>
<>

<$vars todayfilter="[get[task_date]compare:string:eg[]]">


DateProjectTaskStartStop

  
  //Number of tiddlers//
  ''<$count 
filter="[regexp[db___]filter]"/>''
 
<$list filter="[regexp[db___]!sort[task_start_time]filter]">

<$link><$view field="task_date"/>
<$view field="tags"/>
<$view field="task_comment"/>
<$view field="task_start_time"/>
<$view field="task_end_time"/>




\end

<>

-- 
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/bd58bb6f-52da--bd70-ae8424c458b1n%40googlegroups.com.


[tw5] Using a variable from a filter expression. Cannot find the right syntax .. any help ?

2021-08-22 Thread vpl
Hi,

I'm trying to run the following code which use a variable called 'target' 
(that contains the current date) into a filter.
I've tested the todayfilter  this way

\define now_val()
<$vars now_date=<>>
<$vars  target={{{ [] }}}>
<>

<$vars todayfilter="[get[task_date]compare:string:eg[]]">


DateProjectTaskStartStop

  
  //Number of tiddlers//
  ''<$count 
filter="[regexp[db___]filter]"/>''
 
<$list filter="[regexp[db___]!sort[task_start_time]filter]">

<$link><$view field="task_date"/>
<$view field="tags"/>
<$view field="task_comment"/>
<$view field="task_start_time"/>
<$view field="task_end_time"/>




\end

<>

-- 
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/2b1bbded-865b-41f4-a468-e0f8c4f9a5e5n%40googlegroups.com.


[tw5] Re: why TiddlyDesktop does not run my macros ?

2021-08-20 Thread vpl
I've found the problem !!
Saving the wiki file is not enough ... Right-click on the page >> "reload 
App" 
And that works !

Thanks for your reply

Regards

Le vendredi 20 août 2021 à 10:17:18 UTC+2, saq.i...@gmail.com a écrit :

> Can you please post the code for your macro?
>
> On Friday, August 20, 2021 at 9:45:06 AM UTC+2 vpl wrote:
>
>> Hi
>>
>> I'm wondering why tiddlydesktop does not run the macro I've developped in 
>> javascript
>> When I open the tiddly file (.html) into my browser all works fine and 
>> macro are executed, by through tiddlyDesktop it remains silent ... Any 
>> explanation or special config I would have missed ?
>>
>> Thanks a lot for your help and support
>>
>> Regards
>>
>

-- 
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/8ef4f6cb-50b8-4691-b621-955f1fc19b09n%40googlegroups.com.


[tw5] why TiddlyDesktop does not run my macros ?

2021-08-20 Thread vpl
Hi

I'm wondering why tiddlydesktop does not run the macro I've developped in 
javascript
When I open the tiddly file (.html) into my browser all works fine and 
macro are executed, by through tiddlyDesktop it remains silent ... Any 
explanation or special config I would have missed ?

Thanks a lot for your help and support

Regards

-- 
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/c1d47b5e-c858-4348-83f7-e15b3b33c0c0n%40googlegroups.com.


[tw5] Re: how to set a global variable with a tiddler field value

2021-08-18 Thread vpl
Hi,

Much much simplier .. indeed
I've turned around this simple solution for some time without finding it ..

Thanks a lot for your very quick help 

Regards

Le mercredi 18 août 2021 à 12:53:31 UTC+2, Eric Shulman a écrit :

> On Wednesday, August 18, 2021 at 3:25:22 AM UTC-7 vpl wrote:
>
>> In fact my problem was linked to a button action and thanks to  
>> https://tiddlytools.com/timer.html code sample I was able to find a work 
>> an option 
>> \define tasks_delete()
>> <$vars  projectId={{{ [get[projectId]] }}}>
>> <$reveal default="show" type="match" text="show">
>> <$button class="tc-button tt-button" tooltip="delete this alarm"> 
>> {{$:/core/images/delete-button}}
>> <$action-listops $tiddler=<> $field="tasks" 
>> $subfilter="-[[$(this_alarm)$]]" />
>>   
>> 
>> \end
>> The $reveal seems to be mandatory to get access to my projectId variable 
>> withing the button action-listops
>>
>
> Here's a trimmed down version that eliminates the unneeded excess syntax:
> \define tasks_delete()
> <$button class="tc-button" tooltip="delete this task"> 
> {{$:/core/images/delete-button}}
><$action-listops $tiddler={{{ [get[projectId]] }}} 
> $field="tasks" $subfilter="-[[$(this_alarm)$]]" />
> 
> \end
>
> Notes:
> * The $vars is not needed.  Instead, use $tiddler={{{ 
> [get[projectId]] }}} directly in the $action-listops 
> widget
> * Eliminate the $reveal and /$reveal.  Quite obviously, "show" will always 
> match "show", so this does nothing.
> * Remove "tt-button" from the $button class="...";  this is a TiddlyTools 
> custom classname that is almost certainly not defined in your TiddlyWiki.
> * Fix the tooltip text to say "task" instead of "alarm"
> * $(this_alarm)$ references a variable defined outside the tasks_delete() 
> macro and should probably be changed to whatever variable holds the name of 
> the task you are deleting.
>
> -e
>
>

-- 
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/8376d887-f7f0-4319-90c3-fbd08f6252d9n%40googlegroups.com.


[tw5] Re: how to set a global variable with a tiddler field value

2021-08-18 Thread vpl
Thanks a lot for this detailed answer which is going beyond my current 
expertise and understanding of these languages suptilities
In fact my problem was linked to a button action and thanks to  
https://tiddlytools.com/timer.html code sample I was able to find a work an 
option 

\define tasks_delete()
<$vars  projectId={{{ [get[projectId]] }}}>
<$reveal default="show" type="match" text="show">
<$button class="tc-button tt-button" tooltip="delete this alarm"> 
{{$:/core/images/delete-button}}
<$action-listops $tiddler=<> $field="tasks" 
$subfilter="-[[$(this_alarm)$]]" />
  

\end

The $reveal seems to be mandatory to get access to my projectId variable 
withing the button action-listops

Thanks a lot for  your help

Regards

Vpl

Le mardi 17 août 2021 à 17:06:55 UTC+2, Soren Bjornstad a écrit :

> vpl,
>
> First of all, the syntax for incorporating a variable into a filter 
> expression is not <> but :
>
> \define test_project() {{{ [get[projectId]] }}}
>
> However, this still may not work, depending on how you use the macro. It's 
> tempting to think of macro transclusions as "function calls", where when 
> you say <> you get the result of evaluating their contents as 
> wikitext. But this is not how macros work – instead, *the exact text of 
> the macro* (with any $text substitutions$ the macro might include) is 
> inserted wherever the <> is used, which in this case is 
> a filter expression in triple curly braces.
>
> Now, this will still work fine if you just say, for instance:
>
> <>
>
> In this case, TW replaces <> with {{{ 
> [get[projectId]] }}}, then sees that wikitext in the body of a 
> tiddler, evaluates it, and gets the project ID. But it won't work if you 
> try to use it within another filter expression, or as the value of an HTML 
> or widget attribute, e.g., suppose you had a tiddler whose title was this 
> project ID and wanted to transclude it:
>
> <$transclude tiddler=<>/>
>
> In this case, TW will be looking for a tiddler called "{{{ 
> [get[projectId]] }}}", and it presumably won't find it.
>
> If you need to, you can get around this with the $wikify widget:
>
> <$wikify name="myProjectId" text=<>>
>   <$transclude tiddler="myProjectId"/>
> 
>
> In this case, you explicitly tell TW to evaluate the wikitext "{{{ 
> [get[projectId]] }}}", then use the result to transclude the 
> appropriate tiddler.
>
> You can read more on this in the Wikification section 
> <https://groktiddlywiki.com/read/#Wikification> of *Grok TiddlyWiki*.
> On Tuesday, August 17, 2021 at 9:56:51 AM UTC-5 vpl wrote:
>
>> Hi,
>>
>> I want to define a global variable in my script with the value contained 
>> into a tiddler field
>> When I hard code the global variable like
>>
>> \define test_project() project-1
>>
>> I can use the <> variable without issue 
>>
>> But when I want this <> to be initialised to a tiddler's  
>> field like the following this does not work
>>
>> \define test_project() {{{ [<>get[projectId]] }}}
>>
>> Any "magic" idea ..??
>>
>> Thanks a lot for your support
>>
>> Regards vpl
>>
>

-- 
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/4a75eee9-5f0a-4464-8af9-05399befe939n%40googlegroups.com.


[tw5] how to set a global variable with a tiddler field value

2021-08-17 Thread vpl
Hi,

I want to define a global variable in my script with the value contained 
into a tiddler field
When I hard code the global variable like

\define test_project() project-1

I can use the <> variable without issue 

But when I want this <> to be initialised to a tiddler's  
field like the following this does not work

\define test_project() {{{ [<>get[projectId]] }}}

Any "magic" idea ..??

Thanks a lot for your support

Regards vpl

-- 
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/f61f8de7-679e-4363-b658-3b38f3510065n%40googlegroups.com.


[tw5] Re: how to filter on a field of a specific tiddler ?

2021-08-16 Thread vpl
Magic !! Thanks a lot. THis is working fine

Regards

Le lundi 16 août 2021 à 14:52:19 UTC+2, TW Tones a écrit :

> Try this;
>
> \define test_project() $:/temp/project-1
> <$list filter="[get[alarms]!match[]]" variable="has_alarms">
><>
> 
>
> When you go from a text reference transclusion 
> "{$:/temp/project-1!!alarms}" to a filter "[get[alarms]" you 
> can't just change half the text reference.
>
> Tones
>
> On Monday, 16 August 2021 at 22:48:03 UTC+10 vpl wrote:
>
>> Hi,
>>
>> I'm blocking a the current issue.
>> I want to apply a $listwidget on the value contained into a specific 
>> tiddler variable
>>
>> The following code works fine
>>
>> \define test_project()$:/temp/project-1
>> <$list filter="[{$:/temp/project-1!!alarms}!match[]]" 
>> variable="has_alarms">
>><>
>> 
>>
>> But when I want to use the test_project macro name (defining the tiddler) 
>> this does not works ..
>> <$list filter="[{!!alarms}!match[]]" variable="has_alarms">
>><>
>> 
>>
>> Any idea that would help me ???
>>
>> Thanks a lot for your support
>>
>> Vpl
>>
>>

-- 
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/8a56bd04-0fba-4243-8005-bbf2479cd934n%40googlegroups.com.


[tw5] how to filter on a field of a specific tiddler ?

2021-08-16 Thread vpl
Hi,

I'm blocking a the current issue.
I want to apply a $listwidget on the value contained into a specific 
tiddler variable

The following code works fine

\define test_project()$:/temp/project-1
<$list filter="[{$:/temp/project-1!!alarms}!match[]]" variable="has_alarms">
   <>


But when I want to use the test_project macro name (defining the tiddler) 
this does not works ..
<$list filter="[{!!alarms}!match[]]" variable="has_alarms">
   <>


Any idea that would help me ???

Thanks a lot for your support

Vpl

-- 
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/598f3946-b58e-4a87-8859-9b7e4dd22b37n%40googlegroups.com.


[tw5] Re: How to reset tiddler fields when it opens

2021-05-17 Thread vpl
Hi

Thanks a lot for your answer
In fact I have a tiddler containing different fields that I use in 
different macros
I've successfully added a "Reset" button that reset all my fields to the 
default value
What I'm looking for is a way to avoid this "manual" reset operation and 
trigger automatically the macro when the tiddler is invoked from the home 
tiddler for ex (via a link) or from the search button.

So I suspect that internally tiddlywiki has a mechanism to invoke macro at 
that time, but I cannot find it

Thanks again for your support

Regards

Le lundi 17 mai 2021 à 12:42:41 UTC+2, PMario a écrit :

> Hi vpl,
>
> Action-widgets are only activated, if a "user-action" happens. So mainly 
> by clicking a button, radio- and checkbox-widget, keyboard-shortcuts and so 
> on. 
>
> You would need to modify the "edit-button". ... But why do you need this?
>
> see: 
> https://tiddlywiki.com/#WidgetMessage%3A%20tm-edit-tiddler:%5B%5BWidgetMessage%3A%20tm-edit-tiddler%5D%5D%20%24%3A%2Fcore%2Fui%2FButtons%2Fedit
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/13941061-4f6e-4358-9606-979431c774acn%40googlegroups.com.


[tw5] How to reset tiddler fields when it opens

2021-05-17 Thread vpl
Hi

I try to invokea macro that reset tiddler fields when we open it. By 
opening I do not mean *for editing*, I mean the tiddler is invoked via a 
link for example

Why the below code is not working ??

\define macro_init()
Hello guy
<$action-setfield  $tiddler=<> $field="todel" 
$value="init_value"/>
<$action-setfield  profile_name=''/>
<$action-setfield  query_toggle=''/>
\end
<>

Any body having a solution ?

regards

-- 
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/f98cd668-26a5-424d-92e8-48bce781297dn%40googlegroups.com.


[tw5] Re: Why my action-setfield is not executed ?

2021-04-27 Thread vpl
Thanks a lot for your quick answer

Regards

Le mardi 27 avril 2021 à 11:21:10 UTC+2, saq.i...@gmail.com a écrit :

> See https://tiddlywiki.com/#ActionWidgets
>
> On Tuesday, April 27, 2021 at 11:20:43 AM UTC+2 Saq Imtiaz wrote:
>
>> Action widgets are only invoked when triggered by triggering widgets such 
>> as the Button Widget. That is, it takes user interaction to make changes to 
>> tiddlers.
>>
>> On Tuesday, April 27, 2021 at 10:40:12 AM UTC+2 vpl wrote:
>>
>>> Hi guys
>>>
>>> A stupid question but I don't understand what the rational behind this 
>>> ...
>>> When I create a basic tiddler with this code the "todel" field is set 
>>> (even not created)
>>> I've tried to specify the $tiddler as <> but that does 
>>> not work ..
>>>
>>> Thanks very much for any help ..
>>>
>>> Regards
>>>
>>> \define macro_init()
>>> Hello guy
>>> <$action-setfield  $tiddler=<> $field="todel" 
>>> $value="init_value"/>
>>> \end
>>>
>>> <>
>>>
>>

-- 
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/245e79bb-3409-494d-8da9-4dea4bb8b0b1n%40googlegroups.com.


[tw5] Why my action-setfield is not executed ?

2021-04-27 Thread vpl
Hi guys

A stupid question but I don't understand what the rational behind this ...
When I create a basic tiddler with this code the "todel" field is set (even 
not created)
I've tried to specify the $tiddler as <> but that does not 
work ..

Thanks very much for any help ..

Regards

\define macro_init()
Hello guy
<$action-setfield  $tiddler=<> $field="todel" 
$value="init_value"/>
\end

<>

-- 
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/7c095de3-bf30-41af-aa7b-a06f0c8e0652n%40googlegroups.com.


[tw5] Tiddlyserver: How to remove file

2021-01-19 Thread vpl
Hi

I've installed tiddlyserver and became a fan of this component for 
accessing my different wikis & data/files folders through authentication 
and SSL

>From the Web interface I can create directory and upload files to my file 
data folder but could not find a way to remove a directory and files ?

Did I missed something in the configuration file ?

Thanks for your support and this great contribution !

Regards

Vpl

-- 
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/20890b1f-c8e0-4506-be1b-1457768024aen%40googlegroups.com.


[tw5] Re: How

2020-11-27 Thread vpl
Arg how do you do that ... like a magic wand that tells you that you 
will not be able to redo it yourself ...

Many thanks. It works perfectly

Regards

Le vendredi 27 novembre 2020 à 20:42:43 UTC+1, Eric Shulman a écrit :

> On Friday, November 27, 2020 at 10:06:00 AM UTC-8 vpl wrote:
>
>> When I run the below code, the <> is not the *title *of 
>> the filtered tiddler but the date value !!! So at the end the 
>> action-setfield is applied on new tiddler whose title is the date value and 
>> not my existing 'test-1" tiddlers.
>>
> \define my_test()
>> <$list filter="[tag[test-1]get[date]compare:date:gt{!!testval}]">
>><$action-setfield $tiddler=<> $field="tempid" 
>> $value="4"/>
>> 
>> \end 
>>
>
> Split the filter into two separate $list widgets, like this:
> \define my_test()
> <$vars testval={{!!testval}}>
> <$list filter="[tag[test-1]]">
><$list filter="[get[date]compare:date:gt]" 
> variable="checkdate">
>   <$action-setfield tempid="4"/>
>
> 
> 
> \end 
>
> Notes:
> * $vars gets the testval from the tiddler in which the macro is invoked
> * the first $list finds all tiddlers with the desired tag and sets 
> currentTiddler
> * the second $list compares the date of the currentTiddler to the testval
> * the second $list uses the variable="..." syntax to avoid changing the 
> value of the currentTiddler
> * $action-setfield sets the tempid field value in the currentTiddler
>
> enjoy,
> -e
>

-- 
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/7b5da955-123d-46b0-b09f-f568ea0d72ecn%40googlegroups.com.


[tw5] How

2020-11-27 Thread vpl
Hi,

I want to update the field of tiddlers that have been filtered based on a 
compare operator ..
I have a set of tiddlers taged "test-1"
Each of them have a "date" field which stores a specific MMDD
I want to filter all of these tiddlers whose date value is greated than 
{!!testval}
And for each tiddler I want to set a specific field ('tempid') with a value

When I run the below code, the <> is note the *title *of 
the filtered tiddler bur the date value !!! So at the end the 
action-setfield is applied on new tiddler whose title is the date value and 
not my existing 'test-1" tiddlers.
It turns around this <> that I do not use correctly but 
cannot figure out how to solve it ...

Any expert who could help .. ??
Many thanks in advance
Vpl

\define my_test()
<$list filter="[tag[test-1]get[date]compare:date:gt{!!testval}]">
   <$action-setfield $tiddler=<> $field="tempid" 
$value="4"/>

\end 

-- 
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/456dc638-1ad2-4927-a01f-17ca4bfddb04n%40googlegroups.com.


[tw5] Re: How to pass a tiddler field value to a compare operand

2020-11-27 Thread vpl
magic !!! Many thanks

Le vendredi 27 novembre 2020 à 10:56:43 UTC+1, saq.i...@gmail.com a écrit :

> The correct syntax would be:
>
> <$list filter="[tag[test-1]get[date]compare:date:gt{!!referencets}]">
>
> 
>
> On Friday, November 27, 2020 at 10:52:44 AM UTC+1 vpl wrote:
>
>> Hi,
>>
>> Discovering this compare operator I block on one point ..
>>
>> I have a set of tiddlers with a "date" field
>> I want to list & filter them based on their date field when it's greater 
>> than a value store in a reference tiddler field called 'referencets'
>>
>> I've tried the following but it does not take into account my referencets 
>> value
>> <$list filter="[tag[test-1]get[date]compare:date:gt[{{!!referencets}}]]">
>>
>> 
>>
>> I've also tried with simple bracket but not working ...
>> <$list filter="[tag[test-1]get[date]compare:date:gt[{!!referencets}]]">
>>
>> 
>>
>> Any magic idea ?
>>
>> Thanks a lot for your help and support
>>
>> Regards Vpl
>>
>>
>>

-- 
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/b9d7e3b1-4936-48f9-85df-5d9c651182f5n%40googlegroups.com.


[tw5] How to pass a tiddler field value to a compare operand

2020-11-27 Thread vpl
Hi,

Discovering this compare operator I block on one point ..

I have a set of tiddlers with a "date" field
I want to list & filter them based on their date field when it's greater 
than a value store in a reference tiddler field called 'referencets'

I've tried the following but it does not take into account my referencets 
value
<$list filter="[tag[test-1]get[date]compare:date:gt[{{!!referencets}}]]">



I've also tried with simple bracket but not working ...
<$list filter="[tag[test-1]get[date]compare:date:gt[{!!referencets}]]">



Any magic idea ?

Thanks a lot for your help and support

Regards Vpl


-- 
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/75f81572-847e-4de8-8a7c-d7185c69e591n%40googlegroups.com.


[tw5] Re: How to transclude tiddler field in macro call

2020-11-27 Thread vpl
Wonderful !! Thanks a lot

Vpl

Le jeudi 26 novembre 2020 à 23:18:03 UTC+1, Mark S. a écrit :

> AFAIK, you can't pass values to a <> that way. You have to use the 
> macrocall widget. Then, to get the result of that call into a single 
> variable, you'll need the wikify widget.
>
> I couldn't test, because I don't have your macro. In the following, I 
> guessed that your macro parameters were w, p, and f. Change appropriately. 
> Also, be sure to have a backup:
>
> \define my-actions()
> <$wikify name=myval text="""<$macrocall $name=TLfilter w={{!!window}} 
> p={{!!period}} f='[tag[test-2]sort[date]]'/>""" >
> <$action-setfield $field="stampId" $value=<> />
> 
> \end
>
> On Thursday, November 26, 2020 at 1:51:34 PM UTC-8 vpl wrote:
>
>> Hi
>>
>> I've developed a small macro in javascript (called TLFilter see below) 
>> and I want to pass it values stored into the tiddler fields like this
>>
>> \define my-actions()
>> <$action-setfield $field="stampId"  $value=<> {{!!period}} "[tag[test-2]sort[date]]">> />
>> \end
>> <$button actions=<>>Click me!
>>
>> When I call <> macro the text {{!!window}} and {{!!period}} 
>> is passed to it and unfortunately not the content of the window and period 
>> field of the current tiddler ... As if the window and period variables 
>> where not transcluded during the TLfilter call
>>
>> How to make that running ... I struggle and cannot find a solution
>>
>>
>> Thanks in advance for your help
>>
>> With regards
>>
>> Regards
>>
>

-- 
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/98db653a-3ed4-4ca5-b720-a588c46dfdbcn%40googlegroups.com.


[tw5] How to transclude tiddler field in macro call

2020-11-26 Thread vpl
Hi

I've developed a small macro in javascript (called TLFilter see below) and 
I want to pass it values stored into the tiddler fields like this

\define my-actions()
<$action-setfield $field="stampId"  $value=<> />
\end
<$button actions=<>>Click me!

When I call <> macro the text {{!!window}} and {{!!period}} is 
passed to it and unfortunately not the content of the window and period field 
of the current tiddler ... As if the window and period variables where not 
transcluded during the TLfilter call

How to make that running ... I struggle and cannot find a solution


Thanks in advance for your help

With regards

Regards

-- 
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/cb2321b1-4464-4be0-8471-9d2702dfb985n%40googlegroups.com.


[tw5] Why my 2 embedded macro (timeline based) are not refreshed automatically

2020-11-26 Thread vpl
Hi,

I want to use the new fantastic timeline plugin the fommoing way
I have range widgets for setting 2 fields
I have developped a small (javascript based) macro that returns a filter 
definition that is expected to be used by the time-line pluging
This works one time (when I edit or lauch the tiddler)
But when I change the range value my javascript macro (TLfilter) is not 
called
As if the timeline macro was not called.
When my TLfilter macro is invoked outside the time-line macro it is well 
refreshed eachtime I change the range value ...

I need a TW5 expert here ... totally lost !!

Thanks a lot 

Regards
Define the period of interest: <$range field='period' min=0 max=2000 
increment=100/> {{!!period}}

Define the window of interest: <$range field='window' min=0 max=2000 
increment=100/> {{!!window}}

<>>>

-- 
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/4b6eb94d-4b03-4a90-a3c0-f30e40e2331en%40googlegroups.com.


Re: [tw5] Bug or feature in Tiddler Manager. tag do not disapear ..

2020-03-24 Thread vpl
Miraculous !

I love TW5 ..

Thanks a lot

Regards

Le mardi 24 mars 2020 13:21:10 UTC+1, Jeremy Ruston a écrit :
>
> The recent tags are stored in the tiddler $:/config/Manager/RecentTags, 
> and you can just delete it to get rid of it. There’s a limit of 12 tags at 
> the moment, which is hardcoded in $:/Manager/ItemSidebar/Tags
>
> Best wishes
>
> Jeremy.
>
> On 24 Mar 2020, at 12:11, vpl > wrote:
>
> Thanks a lot Jeremy for this answer. 
> Any way to clean this cash or configure it's size ?
>
> Vpl
>
> Le mardi 24 mars 2020 09:09:34 UTC+1, Jeremy Ruston a écrit :
>>
>> The tiddler manager remembers the last few tags that have been used, and 
>> displays them as unchecked checkboxes. It makes it easier to add the same 
>> tag to a bunch of tiddlers in turn.
>>
>> Best wishes
>>
>> Jeremy.
>>
>> --
>> Jeremy Ruston
>> jer...@jermolene.com
>> https://jermolene.com
>>
>> On 24 Mar 2020, at 07:55, vpl  wrote:
>>
>> 
>> Hi,
>>
>> Here is how to reproduce simply the test. I've used an empty TW5 freshly 
>> downloaded from the Web site
>>
>> - create tiddler "test-1" with tag "tag-1"
>> - create tiddler "test-2"
>> - in the tiddler-Manager assign "tag-1" to tiddler "test-2"
>> - in the tiddler-Manager un-assign "tag-1" from tiddler "test-2"
>> - remove completely tiddler "test-1"
>> - Open the tag-manager
>>- There is no tag at all listed. Fine
>> - Open the tiddler-manager and select "test-2"
>> *   - The tag "tag-1" is still There*
>>
>>
>> Looks strange to me as "tag-1" is not assigned any more to any tiddler 
>> (as the tag manager shows). Why do we keep it in the tiddler manager ?
>>
>> Thanks for your help
>>
>> Regards
>>
>> Vincent
>>
>>
>>
>> Le mardi 24 mars 2020 06:54:30 UTC+1, A Gloom a écrit :
>>>
>>> I tried ytour button and it wasn't removing the tag
>>>
>>
>> -- 
>> 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 tiddl...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/fd2a97e3-da78-4fc6-8fa5-351e63283813%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/fd2a97e3-da78-4fc6-8fa5-351e63283813%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/be17a7e7-d288-4d50-84f1-51e37bbff917%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/be17a7e7-d288-4d50-84f1-51e37bbff917%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
>

-- 
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/a45139a5-c3c3-42d0-918f-021aa58e551c%40googlegroups.com.


Re: [tw5] Re: Bug or feature in Tiddler Manager. tag do not disapear ..

2020-03-24 Thread vpl
Thanks a lot Jeremy for this answer. 
Any way to clean this cash or configure it's size ?

Vpl

Le mardi 24 mars 2020 09:09:34 UTC+1, Jeremy Ruston a écrit :
>
> The tiddler manager remembers the last few tags that have been used, and 
> displays them as unchecked checkboxes. It makes it easier to add the same 
> tag to a bunch of tiddlers in turn.
>
> Best wishes
>
> Jeremy.
>
> --
> Jeremy Ruston
> jer...@jermolene.com 
> https://jermolene.com
>
> On 24 Mar 2020, at 07:55, vpl > wrote:
>
> 
> Hi,
>
> Here is how to reproduce simply the test. I've used an empty TW5 freshly 
> downloaded from the Web site
>
> - create tiddler "test-1" with tag "tag-1"
> - create tiddler "test-2"
> - in the tiddler-Manager assign "tag-1" to tiddler "test-2"
> - in the tiddler-Manager un-assign "tag-1" from tiddler "test-2"
> - remove completely tiddler "test-1"
> - Open the tag-manager
>- There is no tag at all listed. Fine
> - Open the tiddler-manager and select "test-2"
> *   - The tag "tag-1" is still There*
>
>
> Looks strange to me as "tag-1" is not assigned any more to any tiddler (as 
> the tag manager shows). Why do we keep it in the tiddler manager ?
>
> Thanks for your help
>
> Regards
>
> Vincent
>
>
>
> Le mardi 24 mars 2020 06:54:30 UTC+1, A Gloom a écrit :
>>
>> I tried ytour button and it wasn't removing the tag
>>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/fd2a97e3-da78-4fc6-8fa5-351e63283813%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/fd2a97e3-da78-4fc6-8fa5-351e63283813%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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/be17a7e7-d288-4d50-84f1-51e37bbff917%40googlegroups.com.


[tw5] Re: Bug or feature in Tiddler Manager. tag do not disapear ..

2020-03-24 Thread vpl
Hi,

Here is how to reproduce simply the test. I've used an empty TW5 freshly 
downloaded from the Web site

- create tiddler "test-1" with tag "tag-1"
- create tiddler "test-2"
- in the tiddler-Manager assign "tag-1" to tiddler "test-2"
- in the tiddler-Manager un-assign "tag-1" from tiddler "test-2"
- remove completely tiddler "test-1"
- Open the tag-manager
   - There is no tag at all listed. Fine
- Open the tiddler-manager and select "test-2"
*   - The tag "tag-1" is still There*


Looks strange to me as "tag-1" is not assigned any more to any tiddler (as 
the tag manager shows). Why do we keep it in the tiddler manager ?

Thanks for your help

Regards

Vincent



Le mardi 24 mars 2020 06:54:30 UTC+1, A Gloom a écrit :
>
> I tried ytour button and it wasn't removing the tag
>

-- 
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/fd2a97e3-da78-4fc6-8fa5-351e63283813%40googlegroups.com.


[tw5] Re: Bug or feature in Tiddler Manager. tag do not disapear ..

2020-03-23 Thread vpl
Thanks for your answer

But what I don't understand is that I still have tags in the tiddler 
manager which are not visible into the Tag manager

*Meaning that even if there is nothing the tag is tagging, it is still 
displayed into the Tiddler manager*

*How can I remove these tags from the tiddler manager when they are not 
tagging anything more ?*

Regards



Le lundi 23 mars 2020 19:28:36 UTC+1, Mark S. a écrit :
>
> To see what the tag is still tagging, click on it in the tag manager.
>
> The "tm-remove-tag" removes a tag from a tiddler. But first it has to know 
> which tiddler. 
>
>
>
>
> On Monday, March 23, 2020 at 10:50:28 AM UTC-7, vpl wrote:
>>
>> Hi,
>>
>> I'm using the Tiddler Manager  $:/Manager to assign different tags to 
>> various tiddlers
>> I've noticed that even if a tag is not assigned any more to any tiddler 
>> it continues to appear in the Tiddler manager
>>
>> Below the manager proposes the tags "lovely-test10" and "lovely-test11" 
>> that are not assigned any more to any tiddler, as you can see in the second 
>> image attached
>>
>> [image: Manager-TW51.png]
>>
>> [image: Manager-TW52.png]
>>
>>
>> OK. It's perhaps that the tag still exist
>> So I ran the following tiddler on "lovely-test10"
>>
>> \define deletePl()
>> <$action-sendmessage $message="tm-remove-tag" $param="lovely-test5"/>
>> \end
>>
>> <$button actions=<>>delete playList 
>>
>> The tag is still there in the Tiddler manager
>>
>> Any idea ?
>>
>> Thanks as always for your support
>>
>> Regards 
>> Vpl
>>
>>
>>
>>

-- 
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/35eb5688-a445-4e1f-b8f2-a5413d9dd581%40googlegroups.com.


[tw5] Bug or feature in Tiddler Manager. tag do not disapear ..

2020-03-23 Thread vpl
Hi,

I'm using the Tiddler Manager  $:/Manager to assign different tags to 
various tiddlers
I've noticed that even if a tag is not assigned any more to any tiddler it 
continues to appear in the Tiddler manager

Below the manager proposes the tags "lovely-test10" and "lovely-test11" 
that are not assigned any more to any tiddler, as you can see in the second 
image attached

[image: Manager-TW51.png]

[image: Manager-TW52.png]


OK. It's perhaps that the tag still exist
So I ran the following tiddler on "lovely-test10"

\define deletePl()
<$action-sendmessage $message="tm-remove-tag" $param="lovely-test5"/>
\end

<$button actions=<>>delete playList 

The tag is still there in the Tiddler manager

Any idea ?

Thanks as always for your support

Regards 
Vpl



-- 
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/974a0a87-6854-433f-9f29-c9653b97cc4a%40googlegroups.com.


[tw5] Re: filter only tiddler that have one tag with a specific value

2020-03-19 Thread vpl
Hi Guys

Thanks a lot both of you for your quick support

I've just tested the regexp approach and it works !
Thanks a lot

Regards


Le jeudi 19 mars 2020 01:35:27 UTC+1, Mark S. a écrit :
>
> Your regular expression quantity operator doesn't work because curly 
> brackets, angle brackets, and square brackets are reserved inside of 
> filters. To get around this, define the search inside of variables where 
> those bracket types are allowed. Here's an example searching for tiddler 
> searching for tiddlers tagged with only HelloThere on TiddlyWiki.com
>
> <$vars myreg="(^HelloThere$){1}">
> <$list filter="[tag[HelloThere]regexp:tags]">
>
> 
> 
>
>
> On Wednesday, March 18, 2020 at 2:35:29 PM UTC-7, vpl wrote:
>>
>> Hi guys
>>
>> I try to build a filter that matches only tiddlers that have one tag and 
>> this tag must have a specific name (in the example 'track')
>>
>> I've tried using the regexp on tags with the regex quantity operator {} 
>> but that does not work .. it returns also tracks with multiple tags (one of 
>> them beeing 'track')
>>
>> <$list filter="[regexp:tags[track{1}]sort[exp_date]reverse[]]">
>>
>> Any idea to save me ?
>>
>> Thanks for your help
>>
>> Regards
>>
>

-- 
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/7e1efe42-e34e-4643-b9aa-7a55b4e8784a%40googlegroups.com.


[tw5] filter only tiddler that have one tag with a specific value

2020-03-18 Thread vpl
Hi guys

I try to build a filter that matches only tiddlers that have one tag and 
this tag must have a specific name (in the example 'track')

I've tried using the regexp on tags with the regex quantity operator {} but 
that does not work .. it returns also tracks with multiple tags (one of 
them beeing 'track')

<$list filter="[regexp:tags[track{1}]sort[exp_date]reverse[]]">

Any idea to save me ?

Thanks for your help

Regards

-- 
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/78cc0fe4-6987-49be-8f7b-8e05a744147c%40googlegroups.com.


[tw5] Re: remove a tag from a list of tiddler

2020-03-06 Thread vpl
And this works !!! Fantastic !
Thanks so much

And here I have a clear documented example of macro ;;

Really appreciated

Thanks a lot
Vpl

Le vendredi 6 mars 2020 09:41:49 UTC+1, vpl a écrit :
>
> Hi,
>
> I can't find on the group a way to remove a tag from a list of tiddlers 
> that I would have filtered (based on another tag)
>
> I have a list of tiddlers that are tagged with "tag-a" and "tag-b"
> Some of them are tagged also with "tag-x"
> I want to filter all tiddlers containing "tag-a" and remove, from these 
> tiddlers their "tag-x", but keep the "tag-b" when present
>
> Any idea how to do that ?
>
> I had the idea to combine a list with a <$action-deletefield> 
> but this may delete all the tags of a given tiddler.
> What I want is just remove the tag-x ..
>
> Thanks a lot for your help
>
> Regards
>
>

-- 
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/75d6a900-fa6b-4087-96e9-1fec7ed43480%40googlegroups.com.


[tw5] Re: remove a tag from a list of tiddler

2020-03-06 Thread vpl
Hi,

Thanks a lot for your quick reponse

I've tested and the button does not appear within the macro
So I externalized and left the macro alone as below, but this does not work
How may I trouble shoot or log what's happening during the execution of the 
macro  ? I'm blocked ..

Thanks for your help


\define remove_tag(filter_tag remove_tag)

<$list filter="[tag<__filter_tag__>]" variable="deleteTiddler">


<$fieldmangler tiddler=<> >

<$action-sendmessage $message="tm-remove-tag" $param=<<__remove_tag__>>/>



\end

<$button actions=<>>remove tag 



Le vendredi 6 mars 2020 11:16:25 UTC+1, Luis Gonzalez a écrit :
>
> The macro:
>
> \define remove_tag(filter_tag remove_tag)
>>
>> <$button>
>>
>> 
>> <$list filter="[tag<__filter_tag__>]" variable="deleteTiddler">
>>
>> 
>> <$fieldmangler tiddler=<> >
>>
>> 
>> <$action-sendmessage $message="tm-remove-tag" $param=<<__remove_tag__>>/>
>> 
>> 
>> remove ''<<__remove_tag__>>'' from ''<<__filter_tag__>>'' tagged tiddlers
>>  
>
>
>> \end
>>
>
> You call this macro this way:
>
> <>
>>
>
> With this code you remove tag-x from all tiddlers tagged with tag-a.
>

-- 
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/4f41899f-eb3e-4846-b494-2d0c38801135%40googlegroups.com.


[tw5] remove a tag from a list of tiddler

2020-03-06 Thread vpl
Hi,

I can't find on the group a way to remove a tag from a list of tiddlers 
that I would have filtered (based on another tag)

I have a list of tiddlers that are tagged with "tag-a" and "tag-b"
Some of them are tagged also with "tag-x"
I want to filter all tiddlers containing "tag-a" and remove, from these 
tiddlers their "tag-x", but keep the "tag-b" when present

Any idea how to do that ?

I had the idea to combine a list with a <$action-deletefield> 
but this may delete all the tags of a given tiddler.
What I want is just remove the tag-x ..

Thanks a lot for your help

Regards

-- 
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/9f465f88-443b-4048-a007-432773227dfe%40googlegroups.com.


[tw5] Re: How to pass a variable to a macro

2020-03-04 Thread vpl
Thanks guys for all of these directions of work.
Need to explore and educate a bit myself on these different options

Have a nice day

Regards

Le mercredi 4 mars 2020 21:35:42 UTC+1, vpl a écrit :
>
> Hi,
>
> I've developped a small macro but can't figure out how to pass it a 
> variable which is a field of another tiddler
>
> The following call works fine. I pass the value '20200304175209359' to the 
> macro which use it
> <$list filter=<>>
> <$link />
>
> But When I try to pass the value of the field timestamp from tiddler 
> ref-timeStamp, what is passed is the string *{ref-timeStamp!!timestamp}*
>
> <$list filter=<>>
> <$link />
> 
>
> Any idea and help ...
>
> THanks a lot
>
> Regards
>
>

-- 
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/b4456117-af97-4f93-9a02-7a6b405c2f29%40googlegroups.com.


[tw5] How to pass a variable to a macro

2020-03-04 Thread vpl
Hi,

I've developped a small macro but can't figure out how to pass it a 
variable which is a field of another tiddler

The following call works fine. I pass the value '20200304175209359' to the 
macro which use it
<$list filter=<>>
<$link />

But When I try to pass the value of the field timestamp from tiddler 
ref-timeStamp, what is passed is the string *{ref-timeStamp!!timestamp}*

<$list filter=<>>
<$link />


Any idea and help ...

THanks a lot

Regards

-- 
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/8fa297ac-26cf-45ff-a807-27b9cd30230e%40googlegroups.com.


[tw5] Re: using allafter with modified field

2020-03-04 Thread vpl
Hi Eric

Thanks for your quick answer
This helps, but I still don't understand why the time is not evaluated 

If I recapitulate
<$list filter="[tag[spotify-track]get[modified]sort[]]"> returns 
(sorted !)

20200303155857027 <http://82.165.251.188:4052/#20200303155857027>

<$list 
filter="[tag[spotify-track]get[modified]sort[]allafter[20200303155857027]]">
 
returns
20200303190107647 <http://82.165.251.188:4052/#20200303190107647>
20200303190706560 <http://82.165.251.188:4052/#20200303190706560>
20200304093151389 <http://82.165.251.188:4052/#20200304093151389>

Fine !

But if I just change the time of the previous filter from 15H to 16H I 
should still ge the 3 values as the next one is at 19H
When I run
<$list 
filter="[tag[spotify-track]get[modified]sort[]allafter[20200303165857027]]">
*I get an empty list*

is the data evaluated in the allafter ?

Thanks for your help

Regards



Le mercredi 4 mars 2020 11:52:22 UTC+1, Eric Shulman a écrit :
>
> On Wednesday, March 4, 2020 at 2:08:48 AM UTC-8, vpl wrote:
>>
>> I try to retrieve tiddlers that have been modified before a specific time 
>> (not date ..)
>> The below filter 
>> <$list filter="[tag[spotify-track]get[modified]]">
>> returns
>> 20200303190107647 <http://82.165.251.188:4052/#20200303190107647> 
>> 20200303190706560 <http://82.165.251.188:4052/#20200303190706560> 
>> 20200303155857027 <http://82.165.251.188:4052/#20200303155857027> 
>> 20200304093151389 <http://82.165.251.188:4052/#20200304093151389>
>>
> <$list 
>> filter="[tag[spotify-track]get[modified]allafter[20200303155857027]]">
>>
> I get  20200304093151389 which looks strange as this time stamp is 
>> 15h58mn the 3rd of march
>> and *after this date I should get *3 answer (2 with 19:xx the 3rd and 
>> the one the 4th of march)
>>
>
> Note that the list you are showing is NOT automatically sorted by 
> date/time value, so the result you get only shows the items after the 
> specfied "marker".
>
> Try adding a sort filter, like this: 
> <$list 
> filter="[tag[spotify-track]get[modified]sort[]allafter[20200303155857027]]">
>
> That should give you the results you are expecting.  Let me know how it 
> goes.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
> InsideTiddlyWiki - http://TiddlyTools.com/InsideTW
>
>
>
>
>

-- 
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/68c266ff-859a-4b49-9f60-3a54a6da96a1%40googlegroups.com.


[tw5] using allafter with modified field

2020-03-04 Thread vpl
Hi,

I try to retrieve tiddlers that have been modified before a specific time 
(not date ..)
The below filter 
<$list filter="[tag[spotify-track]get[modified]]">
returns
20200303190107647  
20200303190706560  
20200303155857027  
20200304093151389 

Then when I apply 

<$list 
filter="[tag[spotify-track]get[modified]allafter[20200303155857027]]">
I get  20200304093151389 which looks stranges as this time stamp is 15h58mn 
the 3rd of march
and *after this date I should get *3 answer (2 with 19:xx the 3rd and the 
one the 4th of march)

how cis working ?

Regards


But if I just change the minutes for examples from 19h07 to

-- 
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/766e29ff-9534-4783-a457-5ce2c5e609ad%40googlegroups.com.


Re: [tw5] Webserver API question: GET tiddlers based on filter

2020-03-04 Thread vpl
Hi Jeremy
Thanks a lot for your answer.
Do you have an rought idea of the expected new release date ? Is it a 
matter or weeks or months ?
I think I'm going first to work on the filter itself to do what I want 
(retrieve the tiddlers that have been "touched" since a specific date) and 
if the 5.1.22 is coming soon will wait for the feature

Thanks a lot for your support

Regards


Le mardi 3 mars 2020 23:36:32 UTC+1, Jeremy Ruston a écrit :
>
> Hi vpl
>
> The upcoming v5.1.22 release will include a new “filter” parameter on the 
> GET /recipes/default/tiddlers.json API. For the moment you’ll have to do 
> the filtering on the client side. Alternatively, you could make a system 
> tiddler that gives you the data you need when rendered via the get rendered 
> tiddler API (
> https://tiddlywiki.com/#WebServer%20API%3A%20Get%20Rendered%20Tiddler 
> <https://tiddlywiki.com/#WebServer+API:+Get+Rendered+Tiddler>).
>
> Best wishes
>
> Jeremy.
>
> On 3 Mar 2020, at 21:24, vpl > wrote:
>
> Hi,
>
> I would like to use the WebServer API to search for specific tiddlers, for 
> example the last updated ones with a specific tag
> I can't find any API allowing this  (
> https://tiddlywiki.com/prerelease/static/WebServer%2520API.html)
>
> What would you recommend me to do ?
>  i could get All tiddler and search for in the full set of tiddlers 
> returned, but I would like to avoid downloading all tiddler each time ..
>
> Thanks for your help
>
> Regards
>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/dfbb97bd-fe83-477c-9e83-7fda2c4c31f9%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/dfbb97bd-fe83-477c-9e83-7fda2c4c31f9%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
>

-- 
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/7ba13e8a-b44c-410b-82b0-35c5b9ab8ed1%40googlegroups.com.


[tw5] Webserver API question: GET tiddlers based on filter

2020-03-03 Thread vpl
Hi,

I would like to use the WebServer API to search for specific tiddlers, for 
example the last updated ones with a specific tag
I can't find any API allowing this  (
https://tiddlywiki.com/prerelease/static/WebServer%2520API.html)

What would you recommend me to do ?
 i could get All tiddler and search for in the full set of tiddlers 
returned, but I would like to avoid downloading all tiddler each time ..

Thanks for your help

Regards

-- 
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/dfbb97bd-fe83-477c-9e83-7fda2c4c31f9%40googlegroups.com.


[tw5] Re: action-setfields setting tags from a variable

2020-03-03 Thread vpl
Thanks very much !!!

The option
<$action-listops $tiddler="My new tiddler" $field="tags" $filter="first-tag 
[{playListTemplate!!PL_name}]"/>
is working perfectly 

So responsive and accurate

Thanks a lot for your support

Vpl

Le mardi 3 mars 2020 13:07:41 UTC+1, Eric Shulman a écrit :
>
> On Tuesday, March 3, 2020 at 3:34:22 AM UTC-8, Mat wrote:
>>
>> Oh, wait, this doesn't look right
>>
>>> <$button actions="">
>>>
>> That might override/disable the other actions, I'm not sure.
>>
>
> You can have both... inline action widgets AND actions="..."
> The inline action widgets are processed first, followed by the widgets 
> contained in the actions="..."
>
> -e
>

-- 
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/dae43180-311b-4e25-ae39-7d1aab6cf011%40googlegroups.com.


[tw5] action-setfields setting tags from a variable

2020-03-03 Thread vpl
Hi,

I want to action setting of tags when I click on a button
One of the tags has to comme from a variable that is entered by the user

In the code below the user gives a name for a play list (PL_name) and once 
it clicks on the button I would like to create a new tiddler "My new 
tiddler" with 2 tags
One is hard coded ("first-tag") the other is set to the value entered by 
the user

The code below does not work ... I'm not using the variable the right way 
...

Some expert that could help me ?

Thanks in advance for your help
Regards

<$edit-text tiddler="playListTemplate" field="PL_name"/>

<$button actions="">Create a play list
<$action-createtiddler $basetitle="My new tiddler"  />
<$action-setfield $tiddler="My new tiddler" tags="first-tag 
{{playListTemplate!!PL_name}}"/>


-- 
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/669691c1-803b-40f4-8e3a-2a66a2b2bf67%40googlegroups.com.


[tw5] Re: Seting a field from a select widget selection not working ... Need help !!

2019-10-11 Thread vpl
Solved in fact 

The correct code is 

Company <$select tiddler="LogSearchInput" field="companyField">
<$list filter='[tag[Contact]each[company]sort[company]]'>
 <$view field='company'/>




Le vendredi 11 octobre 2019 16:40:32 UTC+2, vpl a écrit :
>
> Hi experts ..!
>
> I have a question related to the select widget
>
> I have create a tiddler called "contactTemplate"
> In this tiddler I've created a select witch lists the unique content of 
> the "company" field of all of my tiddlers with a "Contact" tag
>
> Company <$select tiddler="LogSearchInput" field="companyField">
> <$list filter='[tag[Contact]each[company]sort[company]]'>
> >><$view field='company'/>
> 
> 
>
> This works fine.
>
> But I want to set to the "companyField" of the tiddler "LogSearchInput" 
> the user selection (in my case the "company" selected value)
>
> With the above code the companyField is set to the tiddler *title 
> unfortunately .. * 
>
> How should I modify this code to get, in the companyField, the selection 
> of the select widget ?
>
> Thanks a lot for your help
>
> Regards
>
> Vpl
>
>
>

-- 
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/53f55109-e7ba-452d-b546-0789d6bbfb63%40googlegroups.com.


[tw5] Seting a field from a select widget selection not working ... Need help !!

2019-10-11 Thread vpl
Hi experts ..!

I have a question related to the select widget

I have create a tiddler called "contactTemplate"
In this tiddler I've created a select witch lists the unique content of the 
"company" field of all of my tiddlers with a "Contact" tag

Company <$select tiddler="LogSearchInput" field="companyField">
<$list filter='[tag[Contact]each[company]sort[company]]'>
>><$view field='company'/>



This works fine.

But I want to set to the "companyField" of the tiddler "LogSearchInput" the 
user selection (in my case the "company" selected value)

With the above code the companyField is set to the tiddler *title 
unfortunately .. * 

How should I modify this code to get, in the companyField, the selection of 
the select widget ?

Thanks a lot for your help

Regards

Vpl


-- 
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/313e6e58-b026-417b-a076-d4096e972537%40googlegroups.com.


[tw5] Re: a bug with the tabs macro calling javascript macro ?

2019-08-24 Thread vpl
Hi,

Precise, accurate & efficient ... No other words to thanks you for this so 
quick answer which perfectly works 

Thanks very much for your help

Regards

Vpl



On Saturday, August 24, 2019 at 5:04:37 PM UTC+2, vpl wrote:
>
> Hi,
>
> I've created a basic javascript  macro that look for a field ('categfield') 
> from a tiddler ('Test-tiddler')
> This macro is called from the 'Test-tiddler'  that allows setting the 
> 'categfield" with a $select
>
> Here is the 'Test-tiddler'
>
> By Category:
> <$select field="categfield">
> Categ-1
> Categ-2
> Categ-3
> 
>
> <>
>
> When I open 'Test-tiddler' and select a categfield the console.log in the 
> testmacro.js displays correctly the categfield value. Fine
>
> Now if I create a 'test-tab' tiddler like
>
> <>
>
> And access the ''Test-tiddler' from there,
> * the categfield are not update when I change it from the select !!*
>
> I've tried also to leave opened only the 'test-tab'. Same result
>
> I suspect a bug, don't you think ?
>
> Here is the macro
>
> /*\
> title: $:/plugins/vpl/testmacro.js
> type: application/javascript
> module-type: macro
>
> \*/
> (function(){
>
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
>
>
> /*
> Information about this macro
>
> */
>
> exports.name = "testmacro";
>
> exports.params = [];
>
> /*
> Run the macro
> */
> exports.run = function() {
> console.log("testmacro 0.1");
>var categFilterTiddlerPath = 'Test-tiddler';
>        var cateFIlterTiddler = this.wiki.getTiddler(categFilterTiddlerPath);
>var categField = cateFIlterTiddler.getFieldString("categfield");
> console.log("Vield Value from macro:"+categField);
>return ("Hello");
> };
>
> })();
>
>
> Regards
>
> Vpl
>

-- 
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/f2826d29-5be0-463e-a13e-209d9f70b880%40googlegroups.com.


[tw5] a bug with the tabs macro calling javascript macro ?

2019-08-24 Thread vpl
Hi,

I've created a basic javascript  macro that look for a field ('categfield') 
from a tiddler ('Test-tiddler')
This macro is called from the 'Test-tiddler'  that allows setting the 
'categfield" with a $select

Here is the 'Test-tiddler'

By Category:
<$select field="categfield">
Categ-1
Categ-2
Categ-3


<>

When I open 'Test-tiddler' and select a categfield the console.log in the 
testmacro.js displays correctly the categfield value. Fine

Now if I create a 'test-tab' tiddler like

<>

And access the ''Test-tiddler' from there,
* the categfield are not update when I change it from the select !!*

I've tried also to leave opened only the 'test-tab'. Same result

I suspect a bug, don't you think ?

Here is the macro

/*\
title: $:/plugins/vpl/testmacro.js
type: application/javascript
module-type: macro

\*/
(function(){

/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";


/*
Information about this macro

*/

exports.name = "testmacro";

exports.params = [];

/*
Run the macro
*/
exports.run = function() {
console.log("testmacro 0.1");
   var categFilterTiddlerPath = 'Test-tiddler';
   var cateFIlterTiddler = this.wiki.getTiddler(categFilterTiddlerPath);
   var categField = cateFIlterTiddler.getFieldString("categfield");
console.log("Vield Value from macro:"+categField);
   return ("Hello");
};

})();


Regards

Vpl

-- 
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/05c8c4cc-2883-431d-9f9c-9ffeebe81840%40googlegroups.com.


[tw5] Re: How to pass a variable to a macro

2019-08-21 Thread vpl
Ah OK !! 

Thanks very much

On Wednesday, August 21, 2019 at 5:29:33 PM UTC+2, Mark S. wrote:
>
> Text substitution (e.g. $(myvariable)$ ) only happens inside of macros. So 
> you need to define a macro.
>
> This version seems to work:
>
> \define mymacro() <$action-setfield $tiddler=
> "$:/plugins/vpl/jazzbokMem/DbActivity"  $index=<> 
> $value="hello" />
>
> <$button>
> <$set name="myVariable" value={{!!date-format}}>
> Test<>
> 
>
> Good luck!
>
> On Wednesday, August 21, 2019 at 6:48:28 AM UTC-7, vpl wrote:
>>
>> Hi
>>
>> A stupid question ... but how to pass a variable to a macro in wikitext
>> I can't find any example
>>
>> <$button>
>> <$set name="myVariable" value={{!!date-format}}>
>> <$action-setfield $tiddler="$:/plugins/vpl/jazzbokMem/DbActivity"; 
>> $index=<> $value="hello" />
>> Test
>> 
>>
>> My date-format field contains "-0MM-0DD:hh:0mm:0ss"
>> When I click on the button this action populate the data-tiddler with the 
>> following content
>> {
>>
>> "$(myVariable)$": "hello"
>>
>> }
>>
>>
>> Where I'm expecting
>>
>> "2019-08-21:15:20:09": "hello"
>>
>>
>> Any idea would help me a lot
>>
>>
>> Thanks for your support
>>
>>
>> Vpl
>> ",
>>
>>

-- 
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/2e048617-26c2-42f9-b34a-635e0dd79a2c%40googlegroups.com.


[tw5] How to pass a variable to a macro

2019-08-21 Thread vpl
Hi

A stupid question ... but how to pass a variable to a macro in wikitext
I can't find any example

<$button>
<$set name="myVariable" value={{!!date-format}}>
<$action-setfield $tiddler="$:/plugins/vpl/jazzbokMem/DbActivity"; 
$index=<> $value="hello" />
Test


My date-format field contains "-0MM-0DD:hh:0mm:0ss"
When I click on the button this action populate the data-tiddler with the 
following content
{

"$(myVariable)$": "hello"

}


Where I'm expecting

"2019-08-21:15:20:09": "hello"


Any idea would help me a lot


Thanks for your support


Vpl
",

-- 
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/2777288f-7d94-42e1-90c0-31fad4180021%40googlegroups.com.


[tw5] Re: conditional filtering

2019-07-10 Thread vpl
Hi Tony

Thanks a lot for your answer
I'm not sure I follow you ... sorry
*This is incorrect because the result comes from either the filter OR the 
value*

In my code I want to set *myFilter * to a given filter depending on the 
radio selection
That why I try to filter this way 
*filter="[searchType[Categ]]"*
hopping that depending on the local field *SearchType *which should be = to 
*Categ* or *FreeT *depending on the radio choice I will have 
*myFilter = *"[search:tags{!!sortfield}sort[tags]]" OR
  ="[search:title{!!searchval}reverse[]]">

Then I apply the subfilter in the $list ..

Please explain me again what is wrong in this filter. I've tried also 
*filter="[{{!!searchType}}[Categ]]" 
but same result ..*

*Thanks again for your help*

*Vpl*


<$radio field="searchType" value="Categ">Category
<$radio field="searchType" value="FreeT">Free Text

<$select field="sortfield">
Standards Jazz
Celtic
Chansons Francais
Autres
All


<$set name="myFilter" filter="[searchType[Categ]]" 
value="[search:tags{!!sortfield}sort[tags]]" 
emptyValue="[search:title{!!searchval}reverse[]]">
<$text text=<>/>


<$list filter="[all[tiddlers]subfilter]">


Le mercredi 10 juillet 2019 00:50:15 UTC+2, TonyM a écrit :
>
> Vincent,
>
> In you set widget you have 
> filter="[searchType[Categ]]" value="[search:tags{!!sortfield}sort[tags]]"
>
> *This is incorrect because the result comes from either the filter OR the 
> value*. Once you correct that try again.
>
> Regards
> Tony
>
> On Wednesday, July 10, 2019 at 7:18:59 AM UTC+10, vpl wrote:
>>
>> Hi,
>>
>> I've tried this direction but block ...
>>
>> Here is where I am
>>
>> I want to perform a list on either the Category of the free text
>>
>> WHen I run the bolow code, even if I click on the different radio button 
>> the <> does not change ...
>>
>> Any help ...
>> Regards
>>
>>
>> <$radio field="searchType" value="Categ">Category
>> <$radio field="searchType" value="FreeT">Free Text
>>
>> <$select field="sortfield">
>> Standards Jazz
>> Celtic
>> Chansons Francais
>> Autres
>> All
>> 
>>
>> <$set name="myFilter" filter="[searchType[Categ]]" 
>> value="[search:tags{!!sortfield}sort[tags]]" 
>> emptyValue="[search:title{!!searchval}reverse[]]">
>> <$text text=<>/>
>> 
>>
>>
>> Le mardi 9 juillet 2019 09:42:44 UTC+2, TonyM a écrit :
>>>
>>>
>>> Vincent,
>>>
>>> See The https://tiddlywiki.com/#subfilter%20Operator and note how 
>>> myFilter is defined in the set widget. Others include a filter from a 
>>> tiddler
>>> filter="{tiddlerwithfilter}" or the whoile filter 
>>> filter={{tiddlerwithfilter}}
>>>
>>> However you could use the select widget and one of those options is your 
>>> tiddler="StdSearchInput" field="searchval" or {{StdSearchInput!!searchval}}
>>>
>>> The select will modify its state tiddler/field lets say select-state
>>>
>>> <$list filter="{select-state}">
>>>
>>> More details on request.
>>>
>>> Regards
>>> Tony
>>>
>>>
>>> On Tuesday, July 9, 2019 at 5:27:45 PM UTC+10, vpl wrote:
>>>>
>>>> Hi,
>>>>
>>>> I would like to define a filter for listing values in a table which 
>>>> would be based on radio button value
>>>> I explain
>>>> I want to have 2 mode of selecting the filter criteria: 
>>>>-  Either a $select which provides a list of preconfigured 
>>>> categories or
>>>>-  <$edit-text tiddler="StdSearchInput" field="searchval"/> which 
>>>> allows entering a free text
>>>> then I would like to set a radio button to choose between these 2 
>>>> options
>>>>
>>>> My problem is that I don't know howw to position conditional filtering 
>>>> (based on the radio value) into the tiddlywiki filter expression ..
>>>>
>>>> Any idea where I should start from ?
>>>>
>>>> VIncent
>>>>
>>>

-- 
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/640b6171-5092-48d5-bfbb-6ee0a19d1ff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: conditional filtering

2019-07-09 Thread vpl
Hi,

I've tried this direction but block ...

Here is where I am

I want to perform a list on either the Category of the free text

WHen I run the bolow code, even if I click on the different radio button 
the <> does not change ...

Any help ...
Regards


<$radio field="searchType" value="Categ">Category
<$radio field="searchType" value="FreeT">Free Text

<$select field="sortfield">
Standards Jazz
Celtic
Chansons Francais
Autres
All


<$set name="myFilter" filter="[searchType[Categ]]" 
value="[search:tags{!!sortfield}sort[tags]]" 
emptyValue="[search:title{!!searchval}reverse[]]">
<$text text=<>/>



Le mardi 9 juillet 2019 09:42:44 UTC+2, TonyM a écrit :
>
>
> Vincent,
>
> See The https://tiddlywiki.com/#subfilter%20Operator and note how 
> myFilter is defined in the set widget. Others include a filter from a 
> tiddler
> filter="{tiddlerwithfilter}" or the whoile filter 
> filter={{tiddlerwithfilter}}
>
> However you could use the select widget and one of those options is your 
> tiddler="StdSearchInput" field="searchval" or {{StdSearchInput!!searchval}}
>
> The select will modify its state tiddler/field lets say select-state
>
> <$list filter="{select-state}">
>
> More details on request.
>
> Regards
> Tony
>
>
> On Tuesday, July 9, 2019 at 5:27:45 PM UTC+10, vpl wrote:
>>
>> Hi,
>>
>> I would like to define a filter for listing values in a table which would 
>> be based on radio button value
>> I explain
>> I want to have 2 mode of selecting the filter criteria: 
>>-  Either a $select which provides a list of preconfigured categories 
>> or
>>-  <$edit-text tiddler="StdSearchInput" field="searchval"/> which 
>> allows entering a free text
>> then I would like to set a radio button to choose between these 2 options
>>
>> My problem is that I don't know howw to position conditional filtering 
>> (based on the radio value) into the tiddlywiki filter expression ..
>>
>> Any idea where I should start from ?
>>
>> VIncent
>>
>

-- 
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/a3a008f8-00ec-4993-ae7a-ec21d960d646%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] conditional filtering

2019-07-09 Thread vpl
Hi,

I would like to define a filter for listing values in a table which would 
be based on radio button value
I explain
I want to have 2 mode of selecting the filter criteria: 
   -  Either a $select which provides a list of preconfigured categories or
   -  <$edit-text tiddler="StdSearchInput" field="searchval"/> which allows 
entering a free text
then I would like to set a radio button to choose between these 2 options

My problem is that I don't know howw to position conditional filtering 
(based on the radio value) into the tiddlywiki filter expression ..

Any idea where I should start from ?

VIncent

-- 
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/43b1ed7c-d857-4202-a566-5a36cc4732a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Procedure: Nginx as a reverse proxy to mutiple tiddlywiki servers running on nodejs

2019-04-26 Thread vpl


Find below a procedure to deploy a Nginx reverse proxy in front of 2 
tiddlywiki servers (one accessible through a /wiki/.The other one through  
/wiki/  paths. 

This is a need that emerged to avoid opening and configuring a number of 
ports on my cloud server. The below procedure give indications for

   - configuring the basic reverse proxy to point to the 2 tiddlywiki 
   servers
   - augment the configuration with Basic Auth
   - augment the configuration with SSL (self signed certificate ... basic 
   approach)

Certainly not optimal bu may be useful to anybody facing the same problem


Other options exist like the tiddlyServer that certainly bring other added 
values


Basic Nginx configuration (No Auth)config tiddlywiki
   
   - We assume here that we have 2 tiddlywiki (nodejs based) running on 
   port 4013 & 4014 on 127.0.0.1
   - Add on each of them a tiddler with the title: $:/config/tiddlyweb/host and 
   content 
  - $protocol$//$host$/wiki/ for the first one
  - $protocol$//$host$/sub/ for the second one
  - 
   
config nginx

events {
worker_connections 768;
# multi_accept on;
}

http {
server {
  listen80;

  location /wiki/ {
proxy_pass http://127.0.0.1:4014/;
proxy_set_headerHost $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For  $proxy_add_x_forwarded_for;
  }

  location /sub/ {
proxy_pass http://127.0.0.1:4013/;
proxy_set_headerHost $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For  $proxy_add_x_forwarded_for;
  }
}
}


   - restart nginx: sudo service nginx restart

Access
   
   - http://192.168.0.101/wiki/
   - http://192.168.0.101/sub/

Nginx Basi Auth
   
   - sudo apt-get install apache2-utils
   - Create a password for the user userName:
  - sudo htpasswd -c /etc/nginx/.htpasswd userName
   - update the nginx.conf

events {
worker_connections 768;
# multi_accept on;
}

http {
server {
  listen80;

  location /wiki/ {
proxy_pass http://127.0.0.1:4014/;
proxy_set_headerHost $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For  $proxy_add_x_forwarded_for;
auth_basic "Private Property";
auth_basic_user_file /etc/nginx/.htpasswd;
  }

  location /sub/ {
proxy_pass http://127.0.0.1:4013/;
proxy_set_headerHost $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For  $proxy_add_x_forwarded_for;
auth_basic "Private Property";
auth_basic_user_file /etc/nginx/.htpasswd;
  }
}
}


   - restart nginx: sudo service nginx restart
   - you should be challenged on
  - http://192.168.0.101/wiki/
  - http://192.168.0.101/sub/
   
Nginx SSL
   
   - We assume that we will create and store our certificate into the 
   directory /home/pi/tiddly-wiki/certif_ssl
   - cd /home/pi/tiddly-wiki/certif_ssl
   - create the private key: openssl genrsa -out vpl_nginx.pk 2048
   - create certificate request: openssl req -new -key vpl_nginx.pk -out 
   vpl_nginx.csr . Take care about *Common Name*. I've used here the IP@ as 
   it is the way I access my server. Need to put the Common Name used for 
   acessing the proxy from the browser.

Country Name (2 letter code) [AU]:FR
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:82.165.251.188
Email Address []:x...@.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:cat name
An optional company name []:


   - generate signed certificate: openssl x509 -req -days 365 -in 
   vpl_nginx.csr -signkey vpl_nginx.pk -out vpl_nginx.crt
   - update nginx.conf

events {
worker_connections 768;
# multi_accept on;
}

http {
server {
  listen443 ssl;
  #server_name 192.168.0.101

ssl  on;
ssl_certificate  /home/pi/tiddly-wiki/certif_ssl/vpl_nginx.crt;
ssl_certificate_key  /home/pi/tiddly-wiki/certif_ssl/vpl_nginx.pk;

  location /wiki/ {
proxy_pass http://127.0.0.1:4014/;
proxy_set_headerHost $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For  $proxy_add_x_forwarded_for;
auth_basic "Private Property";
auth_basic_user_file /etc/nginx/.htpasswd;
  }

  location /sub/ {
proxy_pass http://127.0.0.1:4013/;
proxy_set_headerHost $host;
proxy_set_headerX-Real-IP$remote_addr;
proxy_set_headerX-Forwarded-For  $proxy_add_x_forwarded_for;
auth_basic "Private Property";
auth_basic_user_file 

[tw5] tiddlywiki 5.1.19 and path-prefix. How does that works ?

2019-04-24 Thread vpl
Hi,

I'm trying to make running this path prefix but face issues
I've created a tiddler called 

I've created a tiddler with the title: $:/config/tiddlyweb/host
The content of this tiddler is: $protocol$//$host$/tw

I've started tiddlywiki as follow

sudo node node_modules/tiddlywiki/tiddlywiki.js testTasks --listen  
path-prefix="/tw" port=4014 host=0.0.0.0


http://192.168.0.101:4014/tw

But I face the following error (Chrome trace) *see attached image*

What is wrong in my config ? and procedure ?

Thanks again for your help

Regards
Vpl
 

-- 
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/12fccb7e-cd65-4d8b-af44-58fdf180fe5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] WebServer API: Put Tiddler: 403 Error

2019-04-19 Thread vpl
Thanks  very much

That works !

Regards
Vpl

Le vendredi 19 avril 2019 18:28:40 UTC+2, Jeremy Ruston a écrit :
>
> Hi vpl
>
> There’s a very simple cross site scripting forgery prevention measure in 
> TW5, which is that by default all HTTP requests that modify data must 
> include a header "x-requested-with” that contains the string “TiddlyWiki”. 
> There’s some background on the measure here:
>
>
> http://blog.alutam.com/2011/09/14/jersey-and-cross-site-request-forgery-csrf/
>
> You can disable it by passing csrf-disable=yes as a parameter to the 
> listen command:
>
> https://tiddlywiki.com/#WebServer%20Parameter%3A%20csrf-disable 
> <https://tiddlywiki.com/#WebServer+Parameter:+csrf-disable>
>
> Best wishes
>
> Jeremy
>
> On 19 Apr 2019, at 13:29, vpl > wrote:
>
> Hi,
>
> I try to use the PUT API on 5.1.19
> I get a 403 when I query my local tiddlywiki on node js
> The server is started as follow (no authentication with user/passwd)
>   node node_modules\tiddlywiki\tiddlywiki.js backLogTest --listen
> Serving on http://127.0.0.1:8080
>
> When I query the PUT i've not added any specific HTTP header (Can't find 
> any info in the current 5.1.19 doc)
> So I do a PUT 127.0.0.1:8080/recipes/default/tiddlers/testTodel
> And get a 403 response
>
> The GET works perfectly (GET 
> 127.0.0.1:8080/recipes/default/tiddlers/expTemplate)
>
> Any help ???
>
> Regards
>
> Vpl
>
> -- 
> 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 tiddl...@googlegroups.com .
> To post to this group, send email to tiddl...@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/d31bf2c1-e4f7-4d19-b04a-6d61e1454c91%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/d31bf2c1-e4f7-4d19-b04a-6d61e1454c91%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/baf240af-af17-472f-b1a6-c54a8f281bb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] WebServer API: Put Tiddler: 403 Error

2019-04-19 Thread vpl
Hi,

I try to use the PUT API on 5.1.19
I get a 403 when I query my local tiddlywiki on node js
The server is started as follow (no authentication with user/passwd)
  node node_modules\tiddlywiki\tiddlywiki.js backLogTest --listen
Serving on http://127.0.0.1:8080

When I query the PUT i've not added any specific HTTP header (Can't find 
any info in the current 5.1.19 doc)
So I do a PUT 127.0.0.1:8080/recipes/default/tiddlers/testTodel
And get a 403 response

The GET works perfectly (GET 
127.0.0.1:8080/recipes/default/tiddlers/expTemplate)

Any help ???

Regards

Vpl

-- 
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/d31bf2c1-e4f7-4d19-b04a-6d61e1454c91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to <$list> based on a select widget option value ?

2019-04-05 Thread vpl
Hi

I finally made it running

<$list filter="[search:tags:{!!sortfield}sort[created]reverse[]]">

Rgards

Le vendredi 5 avril 2019 09:52:57 UTC+2, vpl a écrit :
>
> Hi,
>
> My goal
> - A select widget that list all the Tag available in my tiddly
> - A List whose filter is based on the select option value
>
> What is running
> The following code display correctly the widget with the list of available 
> tags. The result is set to the currentTiddler sortfield. FIne !!
> <$select field="sortfield">
> <$list filter='[all[tiddlers]tags[]sort[title]]'>
> >><$view field='title'/>
> 
> 
>
> What is not working is the <$list> ...
> I've tried the following but none is working ...
>
> <$list filter="[search:tags[{!!sortfield}]]sort[created]reverse[]]"/>
> <$list filter="[tag[{!!sortfield}]]sort[created]reverse[]]">
>
> Any help to solve this basic problem ... I guess
>
> Thanks again for your support which is always very efficient !
>
> Regards
>
> Vpl
>
>
>

-- 
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/ae0053b7-0afb-4f5b-9727-929e16f4d881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How to <$list> based on a select widget option value ?

2019-04-05 Thread vpl
Hi,

My goal
- A select widget that list all the Tag available in my tiddly
- A List whose filter is based on the select option value

What is running
The following code display correctly the widget with the list of available 
tags. The result is set to the currentTiddler sortfield. FIne !!
<$select field="sortfield">
<$list filter='[all[tiddlers]tags[]sort[title]]'>
>><$view field='title'/>



What is not working is the <$list> ...
I've tried the following but none is working ...

<$list filter="[search:tags[{!!sortfield}]]sort[created]reverse[]]"/>
<$list filter="[tag[{!!sortfield}]]sort[created]reverse[]]">

Any help to solve this basic problem ... I guess

Thanks again for your support which is always very efficient !

Regards

Vpl


-- 
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/5ca97ba1-674e-43cd-9af0-9ca5ff979383%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Why multiple click on a WidgetButton does not work ?

2019-04-04 Thread vpl
And this works !!!

Thanks very much for your help so accurate and responsive ...

Really appreciated

Regards

vpl

Le jeudi 4 avril 2019 15:07:51 UTC+2, Jed Carty a écrit :
>
> Macros are updated when they are rendered and not updated until they are 
> re-rendered. If you open the tiddler once and don't close it then your 
> setup won't re-render the button and the date value won't update. To get 
> this to update they way you want to have to put something in to force an 
> update. This should work.
>
> <$set name=unused value={{$:/state/SomeStateTiddler!!time}}>
> <$button actions=<>>
> Click me <$action-setfield $tiddler='$:/state/SomeStateTiddler' 
> $field='time' $value=<>/>
> 
> 
>
> the big problem is that the time will be set from the previous time you 
> clicked the button, so clicking it twice in a row gets you the current time.
>

-- 
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/afcedaa9-8d21-4359-8bd5-15bd0a2415e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Why multiple click on a WidgetButton does not work ?

2019-04-04 Thread vpl
Hi,

I've created a simple javascript macro (called filterbacklog) that display 
the current date time stamp
I've created a button that trigger the execution of this macro 

<$button actions=<> >
Click me!



When I click the first time on the button I get the console.log providing 
the current timestamp
But When I click again on the button (withtout opening again the tiddler) 
the macro is not executed again ...
As if tiddlywiki was accepting only the first button click event ..

Do you have an idea why this works like that ? Normal ? Workaround ?

Thanks for your help and support

Regards
Vpl





/*\
title: filterbacklog.js
type: application/javascript
module-type: macro

Macro to return the changecount for the current tiddler

\*/
(function(){

exports.name = "filterbacklog";

exports.params = [];

/*
Run the macro
*/
exports.run = function() {
var self = this,
tiddler,
fields = [],
t,f;
var output = [];
var titleVal = [];
var valReturn = "|qsdqsdqsd|\n";
// Collect all the fields
var date = new Date();
var timestamp = date.getTime();
console.log("filterbacklog 0.5"+timestamp);
return valReturn;
};

})();

-- 
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/32534198-2674-4e7e-80a7-c31339dd865d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Why my javascript macro update is not taken into account

2019-04-02 Thread vpl
Hi Guys;

I'm currently developping my first macro in Javascript using as a reference 
the csvtiddlers.js
I'm using the nodejs tiddlywiki flavor on windows 10 (http://127.0.0.1:8080)
I've created a new tiddler "mymacro.js" and copy/paste/update the content:
Calling the macro from a tiddler <> worked perfectly

Then I've tried to update the script by adding a simple console.log, saved, 
reload
Nothing was taken into account
I've even tried to delete mymacro.js tiddler ... the macro call continue to 
work ...

As we say in French ... I'm loosing my latin ..

Any idea or help ?

With regards
Vpl

-- 
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/60cb80bf-ac95-42cd-b2b4-c2915ccbf29f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: table content conditional formatting

2019-01-09 Thread vpl
Hi Mark

Magic !! 

Thanks very much for your help and so quick answer ..

Vpl

Le mardi 8 janvier 2019 17:09:05 UTC+1, Mark S. a écrit :
>
>
> You can apply the tags as classes like this:
>
> table>
> 
> DateTopicTitle
> 
> <$list filter="[tag[task]sort[topic]]">
> 
> <$link><$view field="created" format="date" template=
> "DD/0MM/YY"/>
> <$view field="topic"/>
> <$view field="title"/>
> 
> 
>
> And then a stylesheet (tiddler tagged with $:/tags/Stylesheet) like this:
>
> tr.done td.showstatus {
> color: red;
> }
>
> -- Mark
>
> On Tuesday, January 8, 2019 at 7:26:28 AM UTC-8, vpl wrote:
>>
>> Hi,
>>
>> I struggle to find a way to display a table whose content layout is 
>> condioned by tiddler field
>>
>> For example a table like the one below. I would like to highlight in red 
>> the 'topic' field (<$view field="topic"/>) if the tiddler has a tag "done"
>>
>> 
>> 
>> DateTopicTitle
>> 
>> <$list filter="[tag[task]sort[topic]]">
>> 
>> <$link><$view field="created" format="date" 
>> template="DD/0MM/YY"/>
>> <$view field="topic"/>
>> <$view field="title"/>
>> 
>> 
>>
>> I can't find anything that could help me ... but not a tiddlywiki expert
>>
>> Thanks for your help
>>
>> Regards
>>
>> Vpl
>>
>

-- 
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/1e625b09-d3f0-4711-b72a-92450ce2a0fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] table content conditional formatting

2019-01-08 Thread vpl
Hi,

I struggle to find a way to display a table whose content layout is 
condioned by tiddler field

For example a table like the one below. I would like to highlight in red 
the 'topic' field (<$view field="topic"/>) if the tiddler has a tag "done"



DateTopicTitle

<$list filter="[tag[task]sort[topic]]">

<$link><$view field="created" format="date" 
template="DD/0MM/YY"/>
<$view field="topic"/>
<$view field="title"/>



I can't find anything that could help me ... but not a tiddlywiki expert

Thanks for your help

Regards

Vpl

-- 
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/9a441e4d-6a7d-40ba-a154-0437a974e547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Parsing the list of tags of the current tiddler to apply a regex on it

2018-12-20 Thread vpl
Hi,

I would like to assign a tiddler field a sub set of tags of the current 
tiddler
Ex:
My current tiddler has 3 tags: done, current, started
I want to assign to the field *state* one of these 3 tags (using a regexp)

For that I've first tried to assign the list of current tiddler tags to a 
variable with the hope to be able to apply a regex on this variable 

<$set name="myVariable"  value={{!!tags}}>
<$text text=<>/>


Works fine, but how to apply now a regex on this *myVariable *such as I can 
set the result to my target field ?

Thanks for your lights !

Regards

Vpl

-- 
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/7909ab5a-530b-4efb-bd03-4df0683bad11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How to $view a tag value into a list

2018-12-19 Thread vpl
Hi,

I would like to create a task list into a table and display, into one of 
the column, a specific tag of the task-tiddler.
I intend to have a maximum of 3 tags. "task" "done" and "something-else"
I want to display into my table column, only the tag "something-else"
How can I do that ?
Am I using tiddywiki the right way ?

Thanks for your help
Regards




DateTopicTitleSeverity

<$list 
filter="[!has[draft.of]tag[task]!tag[done]sort[created]!title[TiddlerTaskTemplate]]">

<$link><$view field="created" format="date" 
template="DD/0MM/YY"/>
<$view field="tag"/>
<$view field="title"/>

<$radio field="severity" value="high">high
<$radio field="severity" value="low">low



-- 
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/52e00b25-d5e4-4a56-94bb-06c73abcaf83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: 5.1.18 serving audio files

2018-11-26 Thread vpl
Fantastic. This is working. I've seen the note on the pre-release 
mentioning the need to use this "files" directory, but I thought it was for 
pdf etc ,,, But obviously an .mp3 is a file ... indeed.!

 Thanks a lot!

Vpl

On Monday, November 26, 2018 at 4:42:07 PM UTC+1, Jeremy Ruston wrote:
>
> TiddlyWiki v5.1.18 can serve static files, see here:
>
>
> https://tiddlywiki.com/prerelease/#Using%20the%20integrated%20static%20file%20server
>  
> <https://tiddlywiki.com/prerelease/#Using+the+integrated+static+file+server>
>
> I'm currently trying to test the same functionality on 5.1.18 but *with 
>> the nodejs server option*.
>>
>>- So I've copy the audio directory in the same directory as the one 
>>containing tiddlywiki.info file
>>- I've created a tiddler with the same code
>>
>> > preload="auto" controls>
>>
>
> Note that the files need to go into a folder called “files” in the wiki 
> folder (ie a sibling to the “tiddlers” folder”). They are referenced as 
> `/files/` so your audio tag should look like:
>
>  controls>
>
> Best wishes
>
> Jeremy.
>
>
>
>> That does not works. I click on the play button but Tiddlywiki does not 
>> find the audio file to serve.
>>
>> Any idea ? 
>> Is it even possible ?
>>
>> With regards
>>
>> Vpl
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/57867c87-b4ed-4d01-92f3-e7962a58c6ac%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/57867c87-b4ed-4d01-92f3-e7962a58c6ac%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/7ea5f408-9324-4045-aff8-16107d768456%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] 5.1.18 serving audio files

2018-11-26 Thread vpl
Hi,

I have a Tiddlywiki file that I use for serving local audio files ( I use 
TiddlyDesktop. *No Nodejs server*).

In my tiddler I use the following code to display the HTML-5 audio element
 
The audio directory is located at the same level as my tiddlywiki.html file.
This works properly

I'm currently trying to test the same functionality on 5.1.18 but *with the 
nodejs server option*.

   - So I've copy the audio directory in the same directory as the one 
   containing tiddlywiki.info file
   - I've created a tiddler with the same code
   


That does not works. I click on the play button but Tiddlywiki does not 
find the audio file to serve.

Any idea ? 
Is it even possible ?

With regards

Vpl

-- 
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/872eae31-5d7d-4c6b-bfd4-1aefec372bfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] 5.1.18 pre-release. https not working ?

2018-11-26 Thread vpl
Hi,

I've moved back the 2 files into the wiki folder (who contains the 
tiddywiki.info).

root@localhost:~/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18# ll
total 28
drwxr-xr-x 4 root root 4096 Nov 26 14:38 ./
drwxr-xr-x 3 root root 4096 Nov 26 09:24 ../
drwxr-xr-x 4 root root 4096 Nov 26 14:00 audio/
-rw-r--r-- 1 root root 1704 Nov 22 16:25 key_vpl_ref.pem
-rw-r--r-- 1 root root 1159 Nov 22 16:27 server_vpl_ref.crt
drwxr-xr-x 2 root root 4096 Nov 26 14:01 tiddlers/
-rw-r--r-- 1 root root 1625 Nov 22 14:57 tiddlywiki.info
root@localhost:~/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18# pwd
/root/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18


Then I started the tiddywiki from the /root/tiddly-wiki-5.1.18 where 
tiddywiki is installed.
root@localhost:~/tiddly-wiki-5.1.18# node tiddlywiki.js 
wikis/jazz_ref_book_5.1.18 --listen username=test password=test 
tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 host=0.0.0.0
Serving on http://0.0.0.0:4011
(press ctrl-C to exit)
 syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
 filesystem: Saved file 
/root/tiddly-wiki-5.1.18/wikis/jazz_ref_book_5.1.18/tiddlers/$__StoryList.tid

Same problem. Cannot access it through HTTPS. 
The stdout/err do not give me any other clue. 

I'm going to explore if my cloud provider prevent https on other port than 
443 ...?

I 

On Monday, November 26, 2018 at 2:50:56 PM UTC+1, Jeremy Ruston wrote:
>
> Hi VPL
>
> It seems that it is the case:
>
>
> That actually looks like the root of the TW5 repo folder. The "wiki 
> folder" is the folder that contains your tiddlywiki.info file, in this 
> case it looks like it should be "wikis/jazz_reff_book_5.1.18". So it is 
> expecting the CRT and PEM file to be in that same directory
>
> Anyway to get acess to any log ? I could not find any log file in 
> tiddlyWiki server.
>
>
> All logging is to stdout/stderr.
>
> Best wishes
>
> Jeremy
>
>
> Thanks
>
> On Monday, November 26, 2018 at 9:27:18 AM UTC+1, Jeremy Ruston wrote:
>>
>> Hi Vpl
>>
>> My startup command is 
>>node /root/tiddly-wiki-5.1.18/tiddlywiki.js 
>> /root/tiddly-wiki-5.1.18/wikis/vpl_ref_book_5.1.18 --listen username=test 
>> password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 
>> host=0.0.0.0
>>
>>
>> The behaviour you're getting is as if TW isn't seeing the tlskey and 
>> tlscert parameters. The filenames are taken relative to the wikifolder 
>> root, so the above example would only work if the files were present in the 
>> top level of the wikifolder.
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>> I have no error when I start
>>   Serving on http://0.0.0.0:4011
>>   (press ctrl-C to exit)
>>   syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
>>
>> When I access my site with https
>> https://:4011
>>   I get the browser error
>> " This site can't be reached *xx.yy.zz.ww* unexpectedly closed the 
>> connection."
>>
>> When I access my site with *http only*
>> http://:4011
>> This works fine with the user/passwd challenge .
>>
>> Am I getting wrong somewhere ?
>>
>> Thanks for your help
>>
>> Regards
>> Vpl
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com.
>> To post to this group, send email to tiddl...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/94840304-64a1-4c15-ab54-6c482256585a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/94840304-64a1-4c15-ab54-6c482256585a%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/4dacfbfa-4628-4f2c-a8d4-68298f541ff3%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/4dacfbfa-4628-4f2c-a8d4-68298f541ff3%40googlegroups.com?utm_medium=email_

Re: [tw5] 5.1.18 pre-release. https not working ?

2018-11-26 Thread vpl
Hi,

Thanks a lot for your quick answer

It seems that it is the case:

root@localhost:~/tiddly-wiki-5.1.18# ls
bin   contributing.md  editions languages  licenses  plugins
server_vpl_ref.crt  tiddlywiki.js
boot  core key_vpl_ref.pem  licensepackage.json  readme.md  
themes  wikis

node tiddlywiki.js wikis/jazz_ref_book_5.1.18 --listen username=test 
password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 
host=0.0.0.0

I've also checked the content of the .crt and .pem. They seem to contain a 
well formatted private key and certificate
 
Anyway to get acess to any log ? I could not find any log file in 
tiddlyWiki server.

Thanks

On Monday, November 26, 2018 at 9:27:18 AM UTC+1, Jeremy Ruston wrote:
>
> Hi Vpl
>
> My startup command is 
>node /root/tiddly-wiki-5.1.18/tiddlywiki.js 
> /root/tiddly-wiki-5.1.18/wikis/vpl_ref_book_5.1.18 --listen username=test 
> password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 
> host=0.0.0.0
>
>
> The behaviour you're getting is as if TW isn't seeing the tlskey and 
> tlscert parameters. The filenames are taken relative to the wikifolder 
> root, so the above example would only work if the files were present in the 
> top level of the wikifolder.
>
> Best wishes
>
> Jeremy.
>
>
>
> I have no error when I start
>   Serving on http://0.0.0.0:4011
>   (press ctrl-C to exit)
>   syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
>
> When I access my site with https
> https://:4011
>   I get the browser error
> " This site can't be reached *xx.yy.zz.ww* unexpectedly closed the 
> connection."
>
> When I access my site with *http only*
> http://:4011
> This works fine with the user/passwd challenge .
>
> Am I getting wrong somewhere ?
>
> Thanks for your help
>
> Regards
> Vpl
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/94840304-64a1-4c15-ab54-6c482256585a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/94840304-64a1-4c15-ab54-6c482256585a%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/4dacfbfa-4628-4f2c-a8d4-68298f541ff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] 5.1.18 pre-release. https not working ?

2018-11-26 Thread vpl
Hi,

Testing this new feature of 5.1.18 I've followed the certificate creation 
procedure as described in the Tiddler "Using HTTPS".

My startup command is 
   node /root/tiddly-wiki-5.1.18/tiddlywiki.js 
/root/tiddly-wiki-5.1.18/wikis/vpl_ref_book_5.1.18 --listen username=test 
password=test tlskey=key_vpl_ref.pem tlscert=server_vpl_ref.crt port=4011 
host=0.0.0.0

I have no error when I start
  Serving on http://0.0.0.0:4011
  (press ctrl-C to exit)
  syncer-server-filesystem: Dispatching 'save' task: $:/StoryList

When I access my site with https
https://:4011
  I get the browser error
" This site can't be reached *xx.yy.zz.ww* unexpectedly closed the 
connection."

When I access my site with *http only*
http://:4011
This works fine with the user/passwd challenge .

Am I getting wrong somewhere ?

Thanks for your help

Regards
Vpl

-- 
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/94840304-64a1-4c15-ab54-6c482256585a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] 404 not found when using GET all tiddler in 5.1.18

2018-10-05 Thread vpl
Hi Jeremy

This is working fine now !
Thanks a lot for your quick help

WIth regards

Vpl

Le jeudi 4 octobre 2018 21:52:38 UTC+2, Jeremy Ruston a écrit :
>
> Hi VPL
>
> I'm currently testing these new API function in 5.1.18
> I've installed & created a new tiddlywiki that I can access nornally 
> http://x.y.z.w:8090 
> I arrive to the "Get Started page"
>
> Now using Postman I try to submit a GET all tiddler using the following URL
>
> GET x.y.z.w:8090/recipes/default/tiddlers/tiddlers.json
>
> and receive in return a 404 Not Found ...
>
> Is there something I've missed ?
>
> Thanks for your help
>
>
> My apologies, that’s a documentation error, the path should be 
> /recipes/default/tiddlers.json
>
> I’ve updated 
> *https://tiddlywiki.com/prerelease/#WebServer%20API%3A%20Get%20All%20Tiddlers 
> <https://tiddlywiki.com/prerelease/#WebServer+API:+Get+All+Tiddlers>*
>
> Best wishes
>
> Jeremy
>
>
>
> Regards
>
> Vpl
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/97bff5db-b2cc-4742-a0d4-2ff0cfcf3472%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/97bff5db-b2cc-4742-a0d4-2ff0cfcf3472%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/90501213-b5e5-4db0-ad0b-7aab7c6645c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] 404 not found when using GET all tiddler in 5.1.18

2018-10-04 Thread vpl
Hi,

I'm currently testing these new API function in 5.1.18
I've installed & created a new tiddlywiki that I can access nornally 
http://x.y.z.w:8090 
I arrive to the "Get Started page"

Now using Postman I try to submit a GET all tiddler using the following URL

GET x.y.z.w:8090/recipes/default/tiddlers/tiddlers.json

and receive in return a 404 Not Found ...

Is there something I've missed ?

Thanks for your help

Regards

Vpl

-- 
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/97bff5db-b2cc-4742-a0d4-2ff0cfcf3472%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] 5.1.18 API question

2018-10-04 Thread vpl
Hi Jeremy

Thanks a lot for your answer.
The second approach offer great flexibility at tiddlywiki side.
I'm going to test it.

Thanks very much

With Regards

Vpl

Le mercredi 3 octobre 2018 19:46:17 UTC+2, Jeremy Ruston a écrit :
>
> Hi VPL
>
> I'm discovering in version 5.1.18 these new webserver API.
> Fantastic ! exactly what I was looking for to integrate tiddlywiki as a 
> kind of highly customizable and front-end ready system
> In the list I see there is no way to get a list of tiddlers based on a 
> filter. Am I wrong  ? Is it coming ?
>
>
> Indeed, you might expect that one could pass a “filter” querystring 
> parameter to APIs like GET /recipes/default/tiddlers.json and we may add 
> such support in the future.
>
> However, there’s an interesting alternative approach which uses the new 
> rendered single tiddler endpoint:
>
>
> https://tiddlywiki.com/prerelease/#Using%20the%20read-only%20single%20tiddler%20view
>
> The idea is to create a system tiddler that renders the data that you 
> want, and then to request that tiddler as required over HTTP(S).
>
> For example, create a tiddler called $:/MyTiddlers and the following 
> content:
>
> <>
>
> Then request that tiddler via HTTP:
>
> curl http://127.0.0.1:8080/%24%3A%2FMyTiddlers
>
> Obviously, this technique requires you to pre-register all of the filters 
> that you need in advance, but it gives you a lot of flexibility as to how 
> the data is represented.
>
> Best wishes
>
> Jeremy
>
>
>
> Thanks a lot
>
> Regards
>
> Vpl
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/27a7fef6-f3f7-4e1c-8755-588a9a00223e%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/27a7fef6-f3f7-4e1c-8755-588a9a00223e%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/f6dc2f8e-d17a-4949-be71-af6cd089ab1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] 5.1.18 API question

2018-10-03 Thread vpl
Hi,

I'm discovering in version 5.1.18 these new webserver API.
Fantastic ! exactly what I was looking for to integrate tiddlywiki as a 
kind of highly customizable and front-end ready system
In the list I see there is no way to get a list of tiddlers based on a 
filter. Am I wrong  ? Is it coming ?

Thanks a lot

Regards

Vpl

-- 
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/27a7fef6-f3f7-4e1c-8755-588a9a00223e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: dummy question ... how to install the 5.1.18 prerelease (nodejs)..

2018-08-24 Thread vpl
Thanks both for this quick answer !

Regards


Le vendredi 24 août 2018 11:26:47 UTC+2, vpl a écrit :
>
> Hi,
>
> The page: https://tiddlywiki.com/prerelease/static/ReadMe.html 
> state that a 
> sudo npm install -g tiddlywiki
>
> should install the 5.1.18 version
>
> When I do it I install the current one (5.1.17)
>
> I've tried 
> - npm install tiddlywiki@5.1.18
> - npm install tiddlywiki@5.1.18-prerelease
>
> No success...
>
> THanks for your 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/f5c5c6c9-5b65-4bb5-9dc2-dd2df5a51e98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] dummy question ... how to install the 5.1.18 prerelease (nodejs)..

2018-08-24 Thread vpl
Hi,

The page: https://tiddlywiki.com/prerelease/static/ReadMe.html 
state that a 
sudo npm install -g tiddlywiki

should install the 5.1.18 version

When I do it I install the current one (5.1.17)

I've tried 
- npm install tiddlywiki@5.1.18
- npm install tiddlywiki@5.1.18-prerelease

No success...

THanks for your 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/b81ce757-b092-4b15-bbb4-25587c8eb912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] external images relative path under nodejs. Migration from static wiki file

2018-08-24 Thread vpl
Hi,

I have a static HTML tiddlywiki file that I would like to migrate under 
nodejs.

In this static tiddlywiki I have several tiddler containing


Where the files directory is next to the HTML file in my directory of 
tiddlywiki

When migrating to nodejs, I've tried to locate the 'files' repertoire under 
the new wiki folder to avoid changing all my references but that does not 
work

Could someone tell me how can I smoothly migrate to a nodejs version ?

THanks very much for your help

Regards


-- 
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/f24a1030-7dd2-43d1-abe0-55539ae2db53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: support mp4 video via HTML5 tag

2017-09-30 Thread vpl
Hi

Thanks very much for these different directions of work
In fact I've not done the test to try to play directly the .mp4 into the 
browser.
And that does not work...

Meaning that the problem is really around the browser video format supprt 
..!

I was able to transform the original format to one which is correcly 
rendered by my browser and that works perfectly on TiddlyWiki

This space of video format is not something easy to manage..!

Thanks a lot

Vpl



Le samedi 30 septembre 2017 00:59:47 UTC+2, Greg Davis a écrit :
>
> Hi vpl,
>
> Agree with pedruchini.
>
> Your code appears to be correct,  I've been playing around with embedding 
> videos https://groups.google.com/d/msg/tiddlywiki/TL8N40F0DVQ/B0NlKmA9FAAJ
>
> You mentioned the sound did not work in Firefox or Chrome but did work in 
> VLC. You did not mention which OS.
>
> I do my initial work on an old Windows XP laptop. In Firefox, MP4s would 
> not work at all. If converted to WEBM or OGV they would, but those are 
> using different codecs.
>
> The MP4s would play in Chrome on XP, it includes some codecs. The MP4s 
> would play in both Firefox and Chrome under Windows 8.1.
>
> It is possible that your OS does not support, or have, the audio codecs 
> for the MP4. VLC includes many popular codecs so it may recognize your MP4.
>
> In VLC under Tools you can check the codecs, both video and audio. If the 
> audio is not something common like AAC or MP3 that might be your problem.
>
> If you must have that video, you might try converting it.
>
> Good Luck,
> Greg
>
>
>

-- 
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/d3724fda-92da-405b-8bbe-fcbfa95a31ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] support mp4 video via HTML5 tag

2017-09-29 Thread vpl
Hi,

I'm trying to embed a video located on my file system where my tiddlywiki 
file is based

I'm using 


  
Your browser does not support the video tag.


I get the video but no sound. !! 
I can start / stop the video 
I've tested on Firefox and Chrome

When I open the video with VLC media I can hear the sound.

Any idea ?

Something that I'm not doing right ?

Thanks again for your support and help

Regards

Vpl

-- 
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/58d83b3e-540b-4428-9d2f-22d02c1a06a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Set of radioWidgets: How to set a default value

2017-08-08 Thread vpl
Hi,

I'm looking for a way to display different radioWidget and set one of them 
as the default choice.

Something like

<$tiddler tiddler="$:/plugins/vpl/myplugin/shortTableData">
   <$radio field="type-table" value="3x3"> 3x3
   <$radio field="type-table" value="4x3"> 4x3
   <$radio field="type-table" value="4x4"> 4x4


I can't find on the forum and in the doc a way to set that the first one 
(3x3) would be displayed as the default choice.
Any idea ?

Thanks for your help and this great product. I discover more and more every 
day ...

Regards

Vpl

-- 
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/f3db8998-da4c-47d9-be12-e97cd373d9e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: invoke a macro from a button

2017-08-04 Thread vpl
Thanks very much !
This solved my problem.
I've used the same mechanism as the doc-macro.

I've coded a javascript macro called "mymacro"
I use now the below code to invoke it when I click on the invoke. 

<$button set="$:/state/SampleReveal2" setTo="invoke">Invoke macro
<$reveal type="match" state="$:/state/SampleReveal2" text="invoke">
<>


Is it the best way to do that ?

Regards





Le vendredi 4 août 2017 17:54:22 UTC+2, Mark S. a écrit :
>
> The .example macro is defined in $:/editions/tw5.com/doc-macros. But it 
> just wraps a reveal widget around the macro, so it may not be what you want.
>
> What do you want to accomplish? Macros look like functions in programming 
> languages, but often they work very differently. 
>
> Good luck,
> Mark
>
> On Friday, August 4, 2017 at 8:07:22 AM UTC-7, vpl wrote:
>>
>> Hi,
>>
>> I cannot find a way to invoke a macro from a button
>>
>> In the reference tiddly I've found what I need
>> For example the macro exemple "now Macro (Examples)"
>> A "try it" button invoke the now macro.
>>
>> But this is done through another generic macro called ".example"
>> <$macrocall $name=".example" n="1" eg="""<>"""/>
>>
>> *I can't find nowhere this code as an example that I could get some 
>> inspiration from ..*
>>
>> Can someone help me ?
>>
>> Regards
>>
>> Vpl
>>
>>

-- 
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/a60fe280-7a12-4320-a387-2f812a5ed492%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] invoke a macro from a button

2017-08-04 Thread vpl
Hi,

I cannot find a way to invoke a macro from a button

In the reference tiddly I've found what I need
For example the macro exemple "now Macro (Examples)"
A "try it" button invoke the now macro.

But this is done through another generic macro called ".example"
<$macrocall $name=".example" n="1" eg="""<>"""/>

*I can't find nowhere this code as an example that I could get some 
inspiration from ..*

Can someone help me ?

Regards

Vpl

-- 
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/08153b64-995a-499d-8fe6-62fe8bb05f2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to control the leaflet tileLayers used by the plugin

2017-05-04 Thread vpl
Hi,

The plugin documentation 
(http://sycom.github.io/TiddlyWiki-Plugins/#Leaflet%20plugin) explain how 
to *add/remove *tileLayers by updating the  tileLayers.json 
<http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Flib%2FtileLayers.json>
 i

But I can't find the way to decide which tileLayer is used for a given  
<$leafmap> 
Map

Any idea ?

Thanks for your help

Regards

Vpl

-- 
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/fda21ca0-6b56-4be7-997c-5aa07a82a9b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: how to install the new leaflet plugin

2017-05-02 Thread vpl
Hi,

Thanks for your answers.
I think I got the point.

When I load this plugin from the browser I can get it imported properly
But when I do it from the TiddlyDesktop it does not work.
I think it is the problem

With Regards

Vpl

Le mardi 2 mai 2017 09:41:31 UTC+2, vpl a écrit :
>
> Hi,
>
> I'm trying to start playing with this new plugin.
> I can't find it from the plugin Library (latest 5.1.14 tiddywiki version)
> I've found an *Install * Tiddler from the main tiddlywiki of this plugin: 
> http://sycom.github.io/TiddlyWiki-Plugins/#Leaflet%20plugin
>  but When I drag drop the link into my tiddlywiki it just import the 
> $:/plugins/sycom/leaflet and not all the shadow tiddlers of this plugin
>
>- $:/plugins/sycom/leaflet/devDiary 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2FdevDiary>
>- $:/plugins/sycom/leaflet/example 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fexample>
>- $:/plugins/sycom/leaflet/example/leaflet_with_filter 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fexample%2Fleaflet_with_filter>
>- $:/plugins/sycom/leaflet/example/leaflet_with_geojsontiddler 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fexample%2Fleaflet_with_geojsontiddler>
>- $:/plugins/sycom/leaflet/example/leaflet_with_geotiddler 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fexample%2Fleaflet_with_geotiddler>
>- $:/plugins/sycom/leaflet/example/leaflet_with_non-tiddler_geo_data 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fexample%2Fleaflet_with_non-tiddler_geo_data>
>- $:/plugins/sycom/leaflet/example/placeTiddler 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fexample%2FplaceTiddler>
>- $:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fexample%2FtiddlyWikiFrCommunity>
>- $:/plugins/sycom/leaflet/geoSyntax 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2FgeoSyntax>
>- $:/plugins/sycom/leaflet/icon 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Ficon>
>- $:/plugins/sycom/leaflet/images/layers.svg 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fimages%2Flayers.svg>
>- $:/plugins/sycom/leaflet/images/marker.svg 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fimages%2Fmarker.svg>
>- $:/plugins/sycom/leaflet/images/markershadow.svg 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fimages%2Fmarkershadow.svg>
>- $:/plugins/sycom/leaflet/images/pin.svg 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fimages%2Fpin.svg>
>- $:/plugins/sycom/leaflet/images/pinshadow.svg 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fimages%2Fpinshadow.svg>
>- $:/plugins/sycom/leaflet/images/point.svg 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fimages%2Fpoint.svg>
>- $:/plugins/sycom/leaflet/images/pointshadow.svg 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fimages%2Fpointshadow.svg>
>- $:/plugins/sycom/leaflet/lib/leaflet-markercluster.css 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Flib%2Fleaflet-markercluster.css>
>- $:/plugins/sycom/leaflet/lib/leaflet-markercluster.js 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Flib%2Fleaflet-markercluster.js>
>- $:/plugins/sycom/leaflet/lib/leaflet.css 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Flib%2Fleaflet.css>
>- $:/plugins/sycom/leaflet/lib/leaflet.js 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Flib%2Fleaflet.js>
>- $:/plugins/sycom/leaflet/lib/tileLayers.json 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Flib%2FtileLayers.json>
>- $:/plugins/sycom/leaflet/mapCssTweaks.css.tid 
>
> <http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2FmapCssTweaks.css.tid>
>- $:/plugins/sycom/leaflet/mapWidget.tid 
>
> <http://

[tw] how to install the new leaflet plugin

2017-05-02 Thread vpl
sage 
   
<http://sycom.github.io/TiddlyWiki-Plugins/#%24%3A%2Fplugins%2Fsycom%2Fleaflet%2Fusage>
   - GeoTiddler <http://sycom.github.io/TiddlyWiki-Plugins/#GeoTiddler>
   - test de GROS fichier geojson 
   
<http://sycom.github.io/TiddlyWiki-Plugins/#test%20de%20GROS%20fichier%20geojson>


Could you help me ?

Regards

Vpl

-- 
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/7f6be5f8-0f82-43df-b7e4-fa5649994cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] multiple sort step on Table of Content macro

2016-08-20 Thread vpl
Hi,

I'm trying to build up a Table of content whose tiddlers should result from 
a filter expression made of 2 steps: containing a specific tag AND nsort by 
a custom field
I've tried the following 

<>


But this does not works.
The documentation mention "an extra filter step" but I'm wondering if we 
can have a 2 (or more) steps filter in a TOC ?

Thanks for your help and great job with TW5!

Regards

Vpl

-- 
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/e8d8c6a1-09d1-4018-8e6e-508b8ccdc774%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] 5.1.10 new feature: External Text Tiddlers

2016-01-27 Thread vpl
Hi,

I discover that the new 5.1.10 may support, for the standalone TiddlyWiki 
<http://tiddlywiki.com/static/TiddlyWiki.html> HTML files, external text 
tiddlers
My need is the following

I start having a big standalone TiddlyWiki that I use to access through my 
mobile device (hosted on my web content provider)
I would like to split this content in several TiddlyWiki pages that I could 
retrieve on demand from a "start panel" page for example.

How can I do that ?
The example in the 5.1.10 release notes is not self-explanatory (See Alice 
in Wonderland 
<http://tiddlywiki.com/static/Alice%2520in%2520Wonderland.html> for an 
example.)

Thanks again for your help

Regards

Vpl

-- 
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/d1962e0a-2a0d-4488-8d2a-883bda8392e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-07 Thread vpl
Hi,.

Thanks very much

I've updated the javascript.
No need to say that I'm blocking on the addEventListener

Here is the code I've updated which generates an internal error when I open 
the tiddly

Here is what I did

   - Created 2 variables (widgetParent, widgetNextSib) to save the 
   parameters passed to the render fct
   - Created a myScript fct which does what you have coded in the render 
   but using the (widgetParent, widgetNextSib) variables
   - Added the listener and invoking the MyScript

No need to say that I'm a dummy tiddly développer ...

Thanks for your help
Vpl


\*/

(function(){


/*jslint node: true, browser: true */

/*global $tw: false */

"use strict";


var Widget = require("$:/core/modules/widgets/widget.js").widget;


var ABCWidget = function(parseTreeNode,options) {

this.initialise(parseTreeNode,options);

};


// vpl variables

var widgetParent;

var widgetNextSib;


/*

Inherit from the base widget class

*/

ABCWidget.prototype = new Widget();


/*

Render this widget into the DOM

*/

ABCWidget.prototype.render = function(parent,nextSibling) {

   // vpl

   widgetParent = parent;

   widgetNextSib = nextSibling;


this.parentDomNode = parent;

var width = parent.clientWidth*2/3;

this.computeAttributes();

this.execute();

this.pNode = this.document.createElement("div");

parent.insertBefore(this.pNode,nextSibling);

if (this.source) {

this.tid  = $tw.wiki.getTiddlerText(this.source)

ABCJS.renderAbc(this.pNode, "%%staffwidth "+width+"\n"+this.tid);

}

this.domNodes.push(this.pNode);

};


/*

Compute the internal state of the widget

*/

ABCWidget.prototype.execute = function() {

this.source = this.getAttribute("source");

};


/*

Refresh the widget by ensuring our attributes are up to date

*/

ABCWidget.prototype.refresh = function(changedTiddlers) {

var changedAttributes = this.computeAttributes();

if(changedAttributes["source"]||changedTiddlers[this.source]) {

this.refreshSelf();

return true;

}

return false;

};


exports["abc"] = ABCWidget;


var myScript = function() {

this.parentDomNode = widgetParent;

var width = parent.clientWidth*2/3;

this.computeAttributes();

this.execute();

this.pNode = this.document.createElement("div");

parent.insertBefore(this.pNode,widgetNextSib);

if (this.source) {

this.tid  = $tw.wiki.getTiddlerText(this.source)

ABCJS.renderAbc(this.pNode, this.tid);

}

this.domNodes.push(this.pNode);



};


ABCWidget.prototype.addEventListener("resize", myScript);


})();



Le lundi 7 décembre 2015 03:28:21 UTC-6, BJ a écrit :
>
> you could use this as a starting point:
>
>   this.parentDomNode = parent;
> var width = parent.clientWidth*2/3;
>   this.computeAttributes();
>   this.execute();
>   this.pNode = this.document.createElement("div");
>   parent.insertBefore(this.pNode,nextSibling);
>   if (this.source) {
>   this.tid  = $tw.wiki.getTiddlerText(this.source)
>   ABCJS.renderAbc(this.pNode, "%%staffwidth 
> "+width+"\n"+this.tid);
>
>
> to make it reactive to the resize there's this event:
>
> *object*.addEventListener("resize", *myScript*);
>
>
>
> On Monday, December 7, 2015 at 12:03:57 AM UTC, vpl wrote:
>>
>> I've found in the documentation that a default width of the music is set 
>> to 740 pixels.
>> Here is the link: 
>> https://code.google.com/p/abcjs/wiki/InstallationDocumentation
>> Search for Basic abcjs
>> I've found in your widget how you invoke the renderAbc
>>
>> ABCJS.renderAbc(this.pNode, this.tid);
>>
>> Is there a way to retrieve the current tiddler size from the widget code 
>> such as I could pass it to the rederAbc ?
>>
>> But will it solve the issue as I guess that tiddly will not invoke the 
>> widget each time the tiddler size is changed, won't it ?
>>
>> Vpl
>>
>>
>> Le dimanche 6 décembre 2015 12:47:49 UTC+1, BJ a écrit :
>>>
>>> The music is an svg image with a fixed width determined by  %%staffwidth 
>>> (if used) within the abc notation, If the staffwidth is set greater than 
>>> the width of the tiddler then it will overflow the tiddler. (actually 
>>> overflow the containing html element)
>>>
>>> I have no idea how it chooses a default width, maybe it is in the abc 
>>> documentation?
>>>
>>> You could also have on the github of abc - do a search of the issues... 
>>> ,maybe there is some css that can be set?
>>>
>>> On Sunday, December 6, 2015 at 10:12:46 AM UTC, vpl wrote:
>>>>
>>>> Hi,
>>>>
>>>>
>>>> Look at the below e

[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-06 Thread vpl


Hi,


Look at the below example.

The music sheet size is exeeding the tiddler normal frame


VIncent



<https://lh3.googleusercontent.com/-HuYv901pYlM/VmQJ7ofDqHI/AD0/JDqmDh83JC8/s1600/ex-abc-pb.PNG>



Le dimanche 6 décembre 2015 10:17:19 UTC+1, BJ a écrit :
>
> I am not sure what you are referring to, if its the width of the music 
> image then this is controlled by (eg)
>
>
> %%staffwidth 500 
>
>
>
> On Sunday, December 6, 2015 at 8:29:33 AM UTC, vpl wrote:
>>
>> Hi BJ,
>>
>> I was able to make it running based on your contribution. THanks a lot !
>> The issue I see here is that the rendering size is not reduced according 
>> to the window size (when I reduce the tiddly size).
>> FOr example
>> When we display the tt1 of your example and reduce the browser windows, 
>> below a certain size the music sheet is not reduced correctly.
>> Where does it come from ?
>>
>> Regards
>>
>>
>> Le dimanche 6 décembre 2015 06:16:08 UTC+1, vpl a écrit :
>>>
>>> Hi BJ,
>>>
>>> This is exactly what I was looking for.
>>> How did you do that ?
>>> On my side I was blocked at the following stage 
>>> I'm not a plugin expert and much more confortable at the moment with the 
>>> macro option (at least I can make running a small one..)
>>> It seems that you developed a plugin to solve that ?
>>> Will appreciate any description as I need to use this capabilities now 
>>> and would like to understand how it is integrated with tiddlyWiki
>>>
>>> Regards
>>>
>>>
>>>
>>> 
>>> What I've done
>>> - copy the abcjs_basic_latest-min.js file in the same directory as my 
>>> tiddlywiki
>>> - created a "abcjs_basic_latest-min.js" tiddler, tagged with 
>>> $:/tags/RawMarkup and containing
>>> 
>>> - created a tiddly called "$:/inmysocks/macros/render-abc.js" 
>>>- of type application/javascript 
>>>- with an attribute module-type called macro
>>>- containing
>>> /*
>>> Run the macro
>>> */
>>> exports.run = function(music) {
>>> //Make each date object.
>>> var result;
>>> result = ABCJS.renderAbc('notation', music);
>>>
>>> //result = 'ABC';
>>> return result;
>>>
>>> - created a test-abc tiddler containing
>>> <>> name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
>>> name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
>>> T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- DF,3 |\n[V: 
>>> B2]C,2A,,2 F,,2G,,2 |">>
>>>
>>> - the macro is running in the sense that when I comment the result = 
>>> ABCJS.renderAbc ... and uncomment the result = 'ABC' I get the ABC display
>>> - But when I do the reverse I don't have anything displayed.
>>>
>>> The Dev tools does nott give me any error ...
>>>
>>> I've also tried to copy paste the full content of 
>>> abcjs_basic_latest-min.js file into bcjs_basic_latest-min.js tiddler. 
>>>   In this case, when I close and re-open tiddlyWiki I get the content of 
>>> the .js displayed just below the getting-start tiddler ...
>>>
>>> ---
>>>
>>>
>>> Le vendredi 4 décembre 2015 19:29:57 UTC+1, BJ a écrit :
>>>>
>>>> Hi vpl,
>>>> I have put a widget together that could be used as a starting point:
>>>>
>>>> http://abcmusic.tiddlyspot.com/
>>>>
>>>> view it in ff (chrome won't load the lib from github)
>>>>
>>>> Feel free to use this if you want to develop abc as a plugin, if you 
>>>> don't then maybe I will push it forward a bit more.
>>>>
>>>> cheers
>>>> BJ
>>>>
>>>> On Friday, December 4, 2015 at 9:10:11 AM UTC, vpl wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I'm trying to render abcjs music notation in tiddlywiki
>>>>> Bopland.org is closed now and Vexflow licensing model is not adapted.
>>>>> abcjs (http://abcjs.net/) looks very interesting and maintained.
>>>>>
>>>>> Looking at other thread I understand that 
>>>>>  - I have to create 

[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-06 Thread vpl
Hi BJ,

I was able to make it running based on your contribution. THanks a lot !
The issue I see here is that the rendering size is not reduced according to 
the window size (when I reduce the tiddly size).
FOr example
When we display the tt1 of your example and reduce the browser windows, 
below a certain size the music sheet is not reduced correctly.
Where does it come from ?

Regards


Le dimanche 6 décembre 2015 06:16:08 UTC+1, vpl a écrit :
>
> Hi BJ,
>
> This is exactly what I was looking for.
> How did you do that ?
> On my side I was blocked at the following stage 
> I'm not a plugin expert and much more confortable at the moment with the 
> macro option (at least I can make running a small one..)
> It seems that you developed a plugin to solve that ?
> Will appreciate any description as I need to use this capabilities now and 
> would like to understand how it is integrated with tiddlyWiki
>
> Regards
>
>
>
> 
> What I've done
> - copy the abcjs_basic_latest-min.js file in the same directory as my 
> tiddlywiki
> - created a "abcjs_basic_latest-min.js" tiddler, tagged with 
> $:/tags/RawMarkup and containing
> 
> - created a tiddly called "$:/inmysocks/macros/render-abc.js" 
>- of type application/javascript 
>- with an attribute module-type called macro
>- containing
> /*
> Run the macro
> */
> exports.run = function(music) {
> //Make each date object.
> var result;
> result = ABCJS.renderAbc('notation', music);
>
> //result = 'ABC';
> return result;
>
> - created a test-abc tiddler containing
> < name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
> name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
> T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- DF,3 |\n[V: 
> B2]C,2A,,2 F,,2G,,2 |">>
>
> - the macro is running in the sense that when I comment the result = 
> ABCJS.renderAbc ... and uncomment the result = 'ABC' I get the ABC display
> - But when I do the reverse I don't have anything displayed.
>
> The Dev tools does nott give me any error ...
>
> I've also tried to copy paste the full content of 
> abcjs_basic_latest-min.js file into bcjs_basic_latest-min.js tiddler. 
>   In this case, when I close and re-open tiddlyWiki I get the content of 
> the .js displayed just below the getting-start tiddler ...
>
> ---
>
>
> Le vendredi 4 décembre 2015 19:29:57 UTC+1, BJ a écrit :
>>
>> Hi vpl,
>> I have put a widget together that could be used as a starting point:
>>
>> http://abcmusic.tiddlyspot.com/
>>
>> view it in ff (chrome won't load the lib from github)
>>
>> Feel free to use this if you want to develop abc as a plugin, if you 
>> don't then maybe I will push it forward a bit more.
>>
>> cheers
>> BJ
>>
>> On Friday, December 4, 2015 at 9:10:11 AM UTC, vpl wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to render abcjs music notation in tiddlywiki
>>> Bopland.org is closed now and Vexflow licensing model is not adapted.
>>> abcjs (http://abcjs.net/) looks very interesting and maintained.
>>>
>>> Looking at other thread I understand that 
>>>  - I have to create a tiddler containing the abcjs_basic_latest-min.js 
>>> content (available here 
>>> https://raw.githubusercontent.com/paulrosen/abcjs/master/bin/abcjs_basic_2.2-min.js
>>> )
>>>  - tag it with systemConfig
>>>
>>> Then I block as I don't understand how to render the music content using 
>>> abcjs
>>>
>>> I've tested on a html page the following code and it works
>>>
>>> 
>>> 
>>> 
>>> 
>>> abcjs basic demo
>>> 
>>> 
>>> 
>>> abcjs basic demo page
>>> 
>>>
>>> 
>>> var chorus = '%%staffwidth 500\nX: 1\nT: Chorus\nV: T1 clef=treble 
>>> name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
>>> name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
>>> T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- DF,3 |\n[V: 
>>> B2]C,2A,,2 F,,2G,,2 |';
>>> 
>>>
>>> 
>>> 
>>> ABCJS.renderAbc('notation', chorus);
>>> 
>>> 
>>>
>>> 
>>> 
>>>
>>>
>

[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-06 Thread vpl
I've found in the documentation that a default width of the music is set to 
740 pixels.
Here is the 
link: https://code.google.com/p/abcjs/wiki/InstallationDocumentation
Search for Basic abcjs
I've found in your widget how you invoke the renderAbc

ABCJS.renderAbc(this.pNode, this.tid);

Is there a way to retrieve the current tiddler size from the widget code 
such as I could pass it to the rederAbc ?

But will it solve the issue as I guess that tiddly will not invoke the 
widget each time the tiddler size is changed, won't it ?

Vpl


Le dimanche 6 décembre 2015 12:47:49 UTC+1, BJ a écrit :
>
> The music is an svg image with a fixed width determined by  %%staffwidth 
> (if used) within the abc notation, If the staffwidth is set greater than 
> the width of the tiddler then it will overflow the tiddler. (actually 
> overflow the containing html element)
>
> I have no idea how it chooses a default width, maybe it is in the abc 
> documentation?
>
> You could also have on the github of abc - do a search of the issues... 
> ,maybe there is some css that can be set?
>
> On Sunday, December 6, 2015 at 10:12:46 AM UTC, vpl wrote:
>>
>> Hi,
>>
>>
>> Look at the below example.
>>
>> The music sheet size is exeeding the tiddler normal frame
>>
>>
>> VIncent
>>
>>
>>
>>
>> <https://lh3.googleusercontent.com/-HuYv901pYlM/VmQJ7ofDqHI/AD0/JDqmDh83JC8/s1600/ex-abc-pb.PNG>
>>
>>
>>
>> Le dimanche 6 décembre 2015 10:17:19 UTC+1, BJ a écrit :
>>>
>>> I am not sure what you are referring to, if its the width of the music 
>>> image then this is controlled by (eg)
>>>
>>>
>>> %%staffwidth 500 
>>>
>>>
>>>
>>> On Sunday, December 6, 2015 at 8:29:33 AM UTC, vpl wrote:
>>>>
>>>> Hi BJ,
>>>>
>>>> I was able to make it running based on your contribution. THanks a lot !
>>>> The issue I see here is that the rendering size is not reduced 
>>>> according to the window size (when I reduce the tiddly size).
>>>> FOr example
>>>> When we display the tt1 of your example and reduce the browser windows, 
>>>> below a certain size the music sheet is not reduced correctly.
>>>> Where does it come from ?
>>>>
>>>> Regards
>>>>
>>>>
>>>> Le dimanche 6 décembre 2015 06:16:08 UTC+1, vpl a écrit :
>>>>>
>>>>> Hi BJ,
>>>>>
>>>>> This is exactly what I was looking for.
>>>>> How did you do that ?
>>>>> On my side I was blocked at the following stage 
>>>>> I'm not a plugin expert and much more confortable at the moment with 
>>>>> the macro option (at least I can make running a small one..)
>>>>> It seems that you developed a plugin to solve that ?
>>>>> Will appreciate any description as I need to use this capabilities now 
>>>>> and would like to understand how it is integrated with tiddlyWiki
>>>>>
>>>>> Regards
>>>>>
>>>>>
>>>>>
>>>>> 
>>>>> What I've done
>>>>> - copy the abcjs_basic_latest-min.js file in the same directory as my 
>>>>> tiddlywiki
>>>>> - created a "abcjs_basic_latest-min.js" tiddler, tagged with 
>>>>> $:/tags/RawMarkup and containing
>>>>> >>>> type="text/javascript">
>>>>> - created a tiddly called "$:/inmysocks/macros/render-abc.js" 
>>>>>- of type application/javascript 
>>>>>- with an attribute module-type called macro
>>>>>- containing
>>>>> /*
>>>>> Run the macro
>>>>> */
>>>>> exports.run = function(music) {
>>>>> //Make each date object.
>>>>> var result;
>>>>> result = ABCJS.renderAbc('notation', music);
>>>>>
>>>>> //result = 'ABC';
>>>>> return result;
>>>>>
>>>>> - created a test-abc tiddler containing
>>>>> <>>>> name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
>>>>> name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
>>>>> T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- D

[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-05 Thread vpl
Hi BJ,

This is exactly what I was looking for.
How did you do that ?
On my side I was blocked at the following stage 
I'm not a plugin expert and much more confortable at the moment with the 
macro option (at least I can make running a small one..)
It seems that you developed a plugin to solve that ?
Will appreciate any description as I need to use this capabilities now and 
would like to understand how it is integrated with tiddlyWiki

Regards



What I've done
- copy the abcjs_basic_latest-min.js file in the same directory as my 
tiddlywiki
- created a "abcjs_basic_latest-min.js" tiddler, tagged with 
$:/tags/RawMarkup and containing

- created a tiddly called "$:/inmysocks/macros/render-abc.js" 
   - of type application/javascript 
   - with an attribute module-type called macro
   - containing
/*
Run the macro
*/
exports.run = function(music) {
//Make each date object.
var result;
result = ABCJS.renderAbc('notation', music);

//result = 'ABC';
return result;

- created a test-abc tiddler containing
<>

- the macro is running in the sense that when I comment the result = 
ABCJS.renderAbc ... and uncomment the result = 'ABC' I get the ABC display
- But when I do the reverse I don't have anything displayed.

The Dev tools does nott give me any error ...

I've also tried to copy paste the full content of abcjs_basic_latest-min.js 
file into bcjs_basic_latest-min.js tiddler. 
  In this case, when I close and re-open tiddlyWiki I get the content of 
the .js displayed just below the getting-start tiddler ...

---


Le vendredi 4 décembre 2015 19:29:57 UTC+1, BJ a écrit :
>
> Hi vpl,
> I have put a widget together that could be used as a starting point:
>
> http://abcmusic.tiddlyspot.com/
>
> view it in ff (chrome won't load the lib from github)
>
> Feel free to use this if you want to develop abc as a plugin, if you don't 
> then maybe I will push it forward a bit more.
>
> cheers
> BJ
>
> On Friday, December 4, 2015 at 9:10:11 AM UTC, vpl wrote:
>>
>> Hi,
>>
>> I'm trying to render abcjs music notation in tiddlywiki
>> Bopland.org is closed now and Vexflow licensing model is not adapted.
>> abcjs (http://abcjs.net/) looks very interesting and maintained.
>>
>> Looking at other thread I understand that 
>>  - I have to create a tiddler containing the abcjs_basic_latest-min.js 
>> content (available here 
>> https://raw.githubusercontent.com/paulrosen/abcjs/master/bin/abcjs_basic_2.2-min.js
>> )
>>  - tag it with systemConfig
>>
>> Then I block as I don't understand how to render the music content using 
>> abcjs
>>
>> I've tested on a html page the following code and it works
>>
>> 
>> 
>> 
>> 
>> abcjs basic demo
>> 
>> 
>> 
>> abcjs basic demo page
>> 
>>
>> 
>> var chorus = '%%staffwidth 500\nX: 1\nT: Chorus\nV: T1 clef=treble 
>> name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
>> name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
>> T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- DF,3 |\n[V: 
>> B2]C,2A,,2 F,,2G,,2 |';
>> 
>>
>> 
>> 
>> ABCJS.renderAbc('notation', chorus);
>> 
>> 
>>
>> 
>> 
>>
>>
>> As you see, abcjs renders the content using ABCJS.renderAbc(). 
>> But we have to pass to this method a string content (in our case a 
>> javascript variable) representing the music I want to render.
>>
>>
>> Could somebody help me here, 
>> I'm block on tiddly and need an expert to unlock me ..
>>
>> With regards
>>
>> Vpl
>>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e67acad2-b17e-4d41-926e-e314469b681e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] rendering abcjs music notation in tiddlywiki

2015-12-04 Thread vpl
Hi,

I'm trying to render abcjs music notation in tiddlywiki
Bopland.org is closed now and Vexflow licensing model is not adapted.
abcjs (http://abcjs.net/) looks very interesting and maintained.

Looking at other thread I understand that 
 - I have to create a tiddler containing the abcjs_basic_latest-min.js 
content (available 
here 
https://raw.githubusercontent.com/paulrosen/abcjs/master/bin/abcjs_basic_2.2-min.js)
 - tag it with systemConfig

Then I block as I don't understand how to render the music content using 
abcjs

I've tested on a html page the following code and it works





abcjs basic demo



abcjs basic demo page



var chorus = '%%staffwidth 500\nX: 1\nT: Chorus\nV: T1 clef=treble 
name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- DF,3 |\n[V: 
B2]C,2A,,2 F,,2G,,2 |';




ABCJS.renderAbc('notation', chorus);







As you see, abcjs renders the content using ABCJS.renderAbc(). 
But we have to pass to this method a string content (in our case a 
javascript variable) representing the music I want to render.


Could somebody help me here, 
I'm block on tiddly and need an expert to unlock me ..

With regards

Vpl

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8cc567b3-15b8-4dd3-aacd-743b7b6b59db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-04 Thread vpl
Hi

I'm already on tiddlywiki5 for 1 year now and very happy with it !

How can I do that with TW5 ?

Thanks very much for your guidance

Vpl

Le vendredi 4 décembre 2015 11:10:53 UTC+1, Jed Carty a écrit :
>
> If you are willing to switch to tiddlywiki5 than it shouldn't be too hard. 
> If you need/want to stick with tiddlywiki classic than hopefully someone 
> else can help can 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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77c4f8fc-6d79-413b-bd0c-2997a6377970%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   >