Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-21 Thread 'Mark S.' via TiddlyWiki
What you have so far is a JS macro, not a widget. Widgets are, IMO, much 
more complicated than macros (and filter operators) and assume some 
deep understanding of TW without any clue how to gain that understanding.

You can find a write-up on JS macros here:

https://tiddlywiki.com/dev/index.html#JavaScript%20Macros

Good luck!

On Sunday, July 21, 2019 at 3:03:37 PM UTC-7, Jan wrote:
>
> Hej Mat, 
> I am a little stuck, I ve been looking for the site for the site Widgets 
> for beginners but it seems to be down. (
> https://groups.google.com/forum/#!topic/TiddlyWiki/qgNY0iKRrOU) but it 
> seems to be gone.
> The extract.js widget should have the following params:
>
> filter: A filter defining on which tiddlers the widget shall be applied,
> start: A start string
> end: An end string (which is the same as the start-string if nothing is 
> defined
> skip: A value determening whether start-string and end-string shall be 
> chopped from the result. Default:yes/remove
>
> Sorry, at the moment it appears that I can't even enter the params 
> properly. Defining the filter and getting seems to be the hardest task.
>
> Jan
>
>
>
>
>
> Am 21.07.2019 um 22:30 schrieb Jan:
>
> Hi Mark,
> you are right, I will try to finish this right now. I was preoccupied with 
> the importing of text-files as you can see in Szenio.de/Test the last days
>
> Jan. 
>
> Am 21.07.2019 um 21:57 schrieb Mat:
>
> Jan wrote:
>
>> I will see what I can achieve.
>>
>
> Jan, are you making any progress with this? I'm really curious to see what 
> you achieve. As you may know, I once created the cherrypicker 
>  macro which was later a basis for 
> T.Elmigers exctract macro, and I've always felt there should be a proper js 
> solution to this (mine is only wikitext).
>
> <:-)
>
>  
> -- 
> 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/944ac564-ed79-4571-8df6-950e73f493d9%40googlegroups.com
>  
> 
> .
>
>
>
>

-- 
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/4b9c1b52-9596-4c4f-9c5d-06c1b314d205%40googlegroups.com.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-21 Thread Jan

Hej Mat,
I am a little stuck, I ve been looking for the site for the site Widgets 
for beginners but it seems to be down. 
(https://groups.google.com/forum/#!topic/TiddlyWiki/qgNY0iKRrOU) but it 
seems to be gone.

The extract.js widget should have the following params:

filter: A filter defining on which tiddlers the widget shall be applied,
start: A start string
end: An end string (which is the same as the start-string if nothing is 
defined
skip: A value determening whether start-string and end-string shall be 
chopped from the result. Default:yes/remove


Sorry, at the moment it appears that I can't even enter the params 
properly. Defining the filter and getting seems to be the hardest task.


Jan





Am 21.07.2019 um 22:30 schrieb Jan:

Hi Mark,
you are right, I will try to finish this right now. I was preoccupied 
with the importing of text-files as you can see in Szenio.de/Test the 
last days


Jan.

Am 21.07.2019 um 21:57 schrieb Mat:

Jan wrote:

I will see what I can achieve.


Jan, are you making any progress with this? I'm really curious to see 
what you achieve. As you may know, I once created the cherrypicker 
 macro which was later a basis 
for T.Elmigers exctract macro, and I've always felt there should be a 
proper js solution to this (mine is only wikitext).


<:-)

--
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/944ac564-ed79-4571-8df6-950e73f493d9%40googlegroups.com 
.




--
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/5D34E131.6000107%40googlemail.com.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-21 Thread Jan

Hi Mark,
you are right, I will try to finish this right now. I was preoccupied 
with the importing of text-files as you can see in Szenio.de/Test the 
last days


Jan.

Am 21.07.2019 um 21:57 schrieb Mat:

Jan wrote:

I will see what I can achieve.


Jan, are you making any progress with this? I'm really curious to see 
what you achieve. As you may know, I once created the cherrypicker 
 macro which was later a basis 
for T.Elmigers exctract macro, and I've always felt there should be a 
proper js solution to this (mine is only wikitext).


<:-)

--
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/944ac564-ed79-4571-8df6-950e73f493d9%40googlegroups.com 
.


--
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/5D34CB71.4050100%40googlemail.com.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-21 Thread Mat
Jan wrote:

> I will see what I can achieve.
>

Jan, are you making any progress with this? I'm really curious to see what 
you achieve. As you may know, I once created the cherrypicker 
 macro which was later a basis for 
T.Elmigers exctract macro, and I've always felt there should be a proper js 
solution to this (mine is only wikitext).

<:-)

 

-- 
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/944ac564-ed79-4571-8df6-950e73f493d9%40googlegroups.com.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-16 Thread Jan

Hi Mark, Hi Mat
I am happy to hear that.
To be honest I would not have not have managed to do this without your 
help, in fact it is the second thing in javascript I ever did.

I got a small amelioration:

|if (text !== null) {...|

avoids red alerts which were happend before so we have this:

|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
  exports.name
 = 'roles';
  exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
if (text == null) {

var text = " ";

}
var regex = /\[\[.*?\]\]/g;
var text = text.match(regex);
if (text !== null) {
var text = "[[" + text.join("]] [[") + "]]";
return text
}
} ;

})();|

It would be nice to turn this into a general extract macro with start 
and end parameters and the option to keep or chop start and end. So far 
Thomas Elmingers extract Macro did this Job for me but some things like 
those brackets are stubborn. I will see what I can achieve.

Cheers! Jan


Am 16.07.2019 um 16:38 schrieb 'Mark S.' via TiddlyWiki:

Do you mean /Jan's/ macro?

On Tuesday, July 16, 2019 at 4:27:50 AM UTC-7, Mat wrote:

Mark, I have a strong feeling your macro will be very useful for me.
Would you mind documenting it a little in the "Information about
this macro" part (what it does, how to use)?
And might it be something relevant to integrate into your PR
?
Thank you!

<:-)

--
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/6155117b-6ad0-4e1a-bce6-721a09de8d8a%40googlegroups.com 
.

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/5D2E21FE.30306%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-16 Thread 'Mark S.' via TiddlyWiki
Do you mean *Jan's* macro?

On Tuesday, July 16, 2019 at 4:27:50 AM UTC-7, Mat wrote:
>
> Mark, I have a strong feeling your macro will be very useful for me.
> Would you mind documenting it a little in the "Information about this 
> macro" part (what it does, how to use)?
> And might it be something relevant to integrate into your PR 
> ?
> Thank you!
>
> <:-)
>

-- 
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/6155117b-6ad0-4e1a-bce6-721a09de8d8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-16 Thread Mat
Mark, I have a strong feeling your macro will be very useful for me.
Would you mind documenting it a little in the "Information about this 
macro" part (what it does, how to use)?
And might it be something relevant to integrate into your PR 
?
Thank you!

<:-)

-- 
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/0600631c-e82b-4139-bc4b-9578e5a3e2e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread Jan

Hi Mark,
great, this works perfect and I do not need links anyway.
Thanks for solving this!

Best wishes Jan


Am 15.07.2019 um 22:48 schrieb 'Mark S.' via TiddlyWiki:

Actually, what I think you see is

Mr.
Test

What's happening is that the macro is being returned as [[Mr. Test]] 
and then stripped of the brackets at the WikifyWidget. One work-around 
is to

add additional brackets back in your macro.

Also, this

|var regex = /\[.*?\]\]/g;

Should be this

||var regex = /\[\[.*?\]\]/g;|
||
So then we end up with:

|
|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
   exports.name
  =  'roles';
   exports.params  =  [{  name:  'text'   }];
/*
Run the macro
*/
exports.run=  function(text)  {
var  regex=  /\[\[.*?\]\]/g;
var  found=  text.match(regex);
var  remove=  "[["  +  found.join("]] [[")  +  "]]";
//var result = remove.replace(/,/g, ' ');
var  result=  remove;
return  result
}  ;

})();|
|

Now you get the links listed one after another. However, they're not listed AS 
links because they're viewed as text strings. You
can probably use <$link> widget to turn them back into links, if that's what 
you want.

Good luck






On Monday, July 15, 2019 at 12:45:42 PM UTC-7, Jan wrote:

Hi Mark, that looks great, is this already available?
Meanwhile I created a solution which is working quit good but has
one flaw which I would like to eliminate:
[[Mr. Test]] Gets parsed [[Mr.]] and [[Test]].

Here comes the approach it is a Widget and a macro in combination:


|Widget|


||

|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
   exports.name    = 'roles';
   exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
var regex = /\[.*?\]\]/g;
var found = text.match(regex);
var remove = found.join();
var result = remove.replace(/,/g, ' ');
return result
} ;
|


|Macro|

\define preroll()

<$macrocall $name="roles" text={{!!dialogue}}/>

\end
\define rollen()
<$wikify name=rollo text=<> output="text">
<$list filter=<> >
{{!!title}} 


\end


||

|How can I handle that?

Jan
|




Am 15.07.2019 um 16:51 schrieb 'Mark S.' via TiddlyWiki:

With the reg expression text previously mentioned, and the
regexps (reg expression string extractor) in PR 2963

 it should be possible to extract links designated with [[ and ]] .

On Monday, July 15, 2019 at 4:06:31 AM UTC-7, Jan wrote:

Hi,
alas the Find-Macro and also the Extract-Macro fail in this
job. This really seems to be an issue for a widget which can
escape the square-bracket-problem.

I made a quick attempt to solve this problem with a widget
matching for the css, with no success so far.

|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
   exports.name    = 'roles';
   exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
   text = text.match("/\[.*?\]/g");
   return text
} ;
})();|


Seeing how complicated this problem is in wikitext, I think
it would be usefull, to have such a thing as "Extract Links
Widget".

Jan






Jan

Am 15.07.2019 um 10:01 schrieb Jan:

Hi Mark!
I have tried out your proposition but alas, the filter is
not working the way I would like it to work:
So far it looks for Tiddlers that have the field "myfield",
it should look for Links in this field.

I have tired several variations with get[] and list[] to
have the dialoguebut it nearly seems impossible to filter
the result for [[square brackets.

Jan






Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:

Hi Mark,
 thanks, again you saved my day!
I will implement this at once!
Jan

Mohammad  schrieb am So. 14. Juli
2019 um 19:18:

Hi 

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread 'Mark S.' via TiddlyWiki
Actually, what I think you see is 

Mr.
Test

What's happening is that the macro is being returned as [[Mr. Test]] and 
then stripped of the brackets at the WikifyWidget. One work-around is to
add additional brackets back in your macro. 

Also, this 

var regex = /\[.*?\]\]/g;

Should be this

var regex = /\[\[.*?\]\]/g;

So then we end up with:

/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
  exports.name
 = 'roles';
  exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
var regex = /\[\[.*?\]\]/g;
var found = text.match(regex);
var remove = "[[" + found.join("]] [[") + "]]";
//var result = remove.replace(/,/g, ' ');
var result = remove ;
return result
} ;

})();


Now you get the links listed one after another. However, they're not listed 
AS links because they're viewed as text strings. You
can probably use <$link> widget to turn them back into links, if that's 
what you want.

Good luck






On Monday, July 15, 2019 at 12:45:42 PM UTC-7, Jan wrote:
>
> Hi Mark, that looks great, is this already available?
> Meanwhile I created a solution which is working quit good but has one flaw 
> which I would like to eliminate:
> [[Mr. Test]] Gets parsed [[Mr.]] and [[Test]]. 
>
> Here comes the approach it is a Widget and a macro in combination:
> Widget 
>
> /*\
> title: $:/core/modules/macros/roles.js
> type: application/javascript
> module-type: macro
> Making some replacements in Textinputs
> \*/
>
> (function(){
>/*jslint node: true, browser: true */
>/*global $tw: false */
>"use strict";
>
> /*
> Information about this macro
> */
>   exports.name = 'roles';
>   exports.params = [{ name: 'text'  }];
> /*
> Run the macro
> */
> exports.run = function(text) {
> var regex = /\[.*?\]\]/g;
> var found = text.match(regex);
> var remove = found.join();
> var result = remove.replace(/,/g, ' ');
> return result
> } ;
>
> Macro 
>
> \define preroll()
>
> <$macrocall $name="roles" text={{!!dialogue}}/>
>
> \end
> \define rollen()
> <$wikify name=rollo text=<> output="text">
> <$list filter=<> >
> {{!!title}} 
> 
> 
> \end
>
> How can I handle that?
>
> Jan
>
>
>
>
> Am 15.07.2019 um 16:51 schrieb 'Mark S.' via TiddlyWiki:
>
> With the reg expression text previously mentioned, and the regexps (reg 
> expression string extractor) in PR 2963 
> 
>  it should be possible to extract links designated with [[ and ]] .
>
> On Monday, July 15, 2019 at 4:06:31 AM UTC-7, Jan wrote: 
>>
>> Hi, 
>> alas the Find-Macro and also the Extract-Macro fail in this job. This 
>> really seems to be an issue for a widget which can escape the 
>> square-bracket-problem.
>>
>> I made a quick attempt to solve this problem with a widget matching for 
>> the css, with no success so far. 
>>
>> /*\
>> title: $:/core/modules/macros/roles.js
>> type: application/javascript
>> module-type: macro
>> Making some replacements in Textinputs
>> \*/
>>
>> (function(){
>>/*jslint node: true, browser: true */
>>/*global $tw: false */
>>"use strict";
>>
>> /*
>> Information about this macro
>> */
>>   exports.name = 'roles';
>>   exports.params = [{ name: 'text'  }];
>> /*
>> Run the macro
>> */
>> exports.run = function(text) {
>>   text = text.match("/\[.*?\]/g");
>>   return text
>> } ;
>> })();
>>
>>
>> Seeing how complicated this problem is in wikitext, I think it would be 
>> usefull, to have such a thing as "Extract Links Widget".
>>
>> Jan
>>
>>
>>
>>
>>
>>
>> Jan
>>
>> Am 15.07.2019 um 10:01 schrieb Jan:
>>
>> Hi Mark!
>> I have tried out your proposition but alas, the filter is not working the 
>> way I would like it to work:
>> So far it looks for Tiddlers that have the field "myfield", it should 
>> look for Links in this field.
>>
>> I have tired several variations with get[] and list[] to have the 
>> dialoguebut it nearly seems impossible to filter the result for [[square 
>> brackets.
>>
>> Jan
>>
>>
>>
>>
>>  
>>
>> Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:
>>
>> Hi Mark,
>>  thanks, again you saved my day! 
>> I will implement this at once!
>> Jan
>>
>> Mohammad  schrieb am So. 14. Juli 2019 um 19:18:
>>
>>> Hi Mark, 
>>>  I was surprised with this simple and elegant solution you proposed 
>>> albeit the regxp is behind my knowledge! :-)
>>>
>>> Added to TW-Scripts.
>>>
>>> Cheers
>>> Mohammad
>>>
>>>
>>> On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote: 

 You need to put your expression in a separate variable:

 <$vars reg="(?g)\[\[.*?\]\]">
 <$list filter="[!is[system]regexp:myfield]"/>
 

 I tested using field "myfield". I was surprised to find that there 
 actually is a matching field at tiddlywiki.com.

 Note that the regexp filter has 

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread Jan

Hi Mark, that looks great, is this already available?
Meanwhile I created a solution which is working quit good but has one 
flaw which I would like to eliminate:

[[Mr. Test]] Gets parsed [[Mr.]] and [[Test]].

Here comes the approach it is a Widget and a macro in combination:


   |Widget|


   ||

|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
  exports.name = 'roles';
  exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
var regex = /\[.*?\]\]/g;
var found = text.match(regex);
var remove = found.join();
var result = remove.replace(/,/g, ' ');
return result
} ;
|


   |Macro|

\define preroll()

<$macrocall $name="roles" text={{!!dialogue}}/>

\end
\define rollen()
<$wikify name=rollo text=<> output="text">
<$list filter=<> >
{{!!title}} 


\end


   ||

|How can I handle that?

Jan
|




Am 15.07.2019 um 16:51 schrieb 'Mark S.' via TiddlyWiki:
With the reg expression text previously mentioned, and the regexps 
(reg expression string extractor) in PR 2963 


 it should be possible to extract links designated with [[ and ]] .

On Monday, July 15, 2019 at 4:06:31 AM UTC-7, Jan wrote:

Hi,
alas the Find-Macro and also the Extract-Macro fail in this job.
This really seems to be an issue for a widget which can escape the
square-bracket-problem.

I made a quick attempt to solve this problem with a widget
matching for the css, with no success so far.

|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
   exports.name    = 'roles';
   exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
   text = text.match("/\[.*?\]/g");
   return text
} ;
})();|


Seeing how complicated this problem is in wikitext, I think it
would be usefull, to have such a thing as "Extract Links Widget".

Jan






Jan

Am 15.07.2019 um 10:01 schrieb Jan:

Hi Mark!
I have tried out your proposition but alas, the filter is not
working the way I would like it to work:
So far it looks for Tiddlers that have the field "myfield", it
should look for Links in this field.

I have tired several variations with get[] and list[] to have the
dialoguebut it nearly seems impossible to filter the result for
[[square brackets.

Jan






Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:

Hi Mark,
 thanks, again you saved my day!
I will implement this at once!
Jan

Mohammad > schrieb am So. 14.
Juli 2019 um 19:18:

Hi Mark,
 I was surprised with this simple and elegant solution you
proposed albeit the regxp is behind my knowledge! :-)

Added to TW-Scripts.

Cheers
Mohammad


On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote:

You need to put your expression in a separate variable:

<$vars reg="(?g)\[\[.*?\]\]">
<$list filter="[!is[system]regexp:myfield]"/>


I tested using field "myfield". I was surprised to find
that there actually is a matching field at
tiddlywiki.com .

Note that the regexp filter has its own notation for
indicating a global search. I put it in, but don't
really understand what use it has, since it is the
tiddler that gets returned, not the field. So finding
one match should be good enough.


On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote:

Hi Mat,
Unfortunately filtersyntax gets so terribly
complicated when the param contains squarebrackets.
This here causes a syntax error:
[!is[system]regexp[/\[.*?\]/g]]

And how do I enter the suffix for the field?
-Jan




Am 14.07.2019 um 12:03 schrieb Mat:

>or else it would probably be veeery tricky to find
them.

Pah! I'm exaggerating. It is "just" a matter of
creating the right regexp for it. Not that I could
do it.

<:-)
-- 
You received this message because you are

subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving
   

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread 'Mark S.' via TiddlyWiki
With the reg expression text previously mentioned, and the regexps (reg 
expression string extractor) in PR 2963 

 it should be possible to extract links designated with [[ and ]] .

On Monday, July 15, 2019 at 4:06:31 AM UTC-7, Jan wrote:
>
> Hi, 
> alas the Find-Macro and also the Extract-Macro fail in this job. This 
> really seems to be an issue for a widget which can escape the 
> square-bracket-problem.
>
> I made a quick attempt to solve this problem with a widget matching for 
> the css, with no success so far. 
>
> /*\
> title: $:/core/modules/macros/roles.js
> type: application/javascript
> module-type: macro
> Making some replacements in Textinputs
> \*/
>
> (function(){
>/*jslint node: true, browser: true */
>/*global $tw: false */
>"use strict";
>
> /*
> Information about this macro
> */
>   exports.name = 'roles';
>   exports.params = [{ name: 'text'  }];
> /*
> Run the macro
> */
> exports.run = function(text) {
>   text = text.match("/\[.*?\]/g");
>   return text
> } ;
> })();
>
>
> Seeing how complicated this problem is in wikitext, I think it would be 
> usefull, to have such a thing as "Extract Links Widget".
>
> Jan
>
>
>
>
>
>
> Jan
>
> Am 15.07.2019 um 10:01 schrieb Jan:
>
> Hi Mark!
> I have tried out your proposition but alas, the filter is not working the 
> way I would like it to work:
> So far it looks for Tiddlers that have the field "myfield", it should look 
> for Links in this field.
>
> I have tired several variations with get[] and list[] to have the 
> dialoguebut it nearly seems impossible to filter the result for [[square 
> brackets.
>
> Jan
>
>
>
>
>  
>
> Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:
>
> Hi Mark,
>  thanks, again you saved my day! 
> I will implement this at once!
> Jan
>
> Mohammad > schrieb am So. 14. Juli 
> 2019 um 19:18:
>
>> Hi Mark, 
>>  I was surprised with this simple and elegant solution you proposed 
>> albeit the regxp is behind my knowledge! :-)
>>
>> Added to TW-Scripts.
>>
>> Cheers
>> Mohammad
>>
>>
>> On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote: 
>>>
>>> You need to put your expression in a separate variable:
>>>
>>> <$vars reg="(?g)\[\[.*?\]\]">
>>> <$list filter="[!is[system]regexp:myfield]"/>
>>> 
>>>
>>> I tested using field "myfield". I was surprised to find that there 
>>> actually is a matching field at tiddlywiki.com.
>>>
>>> Note that the regexp filter has its own notation for indicating a global 
>>> search. I put it in, but don't really understand what use it has, since it 
>>> is the tiddler that gets returned, not the field. So finding one match 
>>> should be good enough.
>>>
>>>
>>> On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote: 

 Hi Mat,
 Unfortunately filtersyntax gets so terribly complicated when the param 
 contains squarebrackets.
 This here causes a syntax error: [!is[system]regexp[/\[.*?\]/g]]

 And how do I enter the suffix for the field?
 -Jan




 Am 14.07.2019 um 12:03 schrieb Mat:

 >or else it would probably be veeery tricky to find them. 

 Pah! I'm exaggerating. It is "just" a matter of creating the right 
 regexp for it. Not that I could do it.

 <:-)
 -- 
 You received this message because you are subscribed to the Google 
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to 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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com
  
 
 .
 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 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/3989d192-3218-4d29-8eef-114071e5fcc4%40googlegroups.com
>>  
>> 
>> .
>> 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 

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread Jan

Am 15.07.2019 um 14:42 schrieb Jan:
AFAIK the widget is applied before the Links are rendered when I call 
it like that.




<$macrocall $name="roles" text={{!!dialogue}}/>



So the input does not seem to be the problem - it is the widget.
Jan




Am 15.07.2019 um 13:28 schrieb TonyM:

This is part of the render process already.

Perhaps it just needs a method to access it.

Jeremy is talking about opening more of the core features to user config.

*See Control Panel > Infor > Advanced > Parsing > wikilink *

Here you can enable and disable it for text fields. This may help you 
identify how it is done for the text field and redeploy this on other 
fields.


Regards
Tony

On Monday, July 15, 2019 at 9:06:31 PM UTC+10, Jan wrote:

Hi,
alas the Find-Macro and also the Extract-Macro fail in this job.
This really seems to be an issue for a widget which can escape
the square-bracket-problem.

I made a quick attempt to solve this problem with a widget
matching for the css, with no success so far.

|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
   exports.name    = 'roles';
   exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
   text = text.match("/\[.*?\]/g");
   return text
} ;
})();|


Seeing how complicated this problem is in wikitext, I think it
would be usefull, to have such a thing as "Extract Links Widget".

Jan






Jan

Am 15.07.2019 um 10:01 schrieb Jan:

Hi Mark!
I have tried out your proposition but alas, the filter is not
working the way I would like it to work:
So far it looks for Tiddlers that have the field "myfield", it
should look for Links in this field.

I have tired several variations with get[] and list[] to have
the dialoguebut it nearly seems impossible to filter the result
for [[square brackets.

Jan






Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:

Hi Mark,
 thanks, again you saved my day!
I will implement this at once!
Jan

Mohammad > schrieb am So.
14. Juli 2019 um 19:18:

Hi Mark,
 I was surprised with this simple and elegant solution you
proposed albeit the regxp is behind my knowledge! :-)

Added to TW-Scripts.

Cheers
Mohammad


On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S.
wrote:

You need to put your expression in a separate variable:

<$vars reg="(?g)\[\[.*?\]\]">
<$list filter="[!is[system]regexp:myfield]"/>


I tested using field "myfield". I was surprised to find
that there actually is a matching field at
tiddlywiki.com .

Note that the regexp filter has its own notation for
indicating a global search. I put it in, but don't
really understand what use it has, since it is the
tiddler that gets returned, not the field. So finding
one match should be good enough.


On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote:

Hi Mat,
Unfortunately filtersyntax gets so terribly
complicated when the param contains squarebrackets.
This here causes a syntax error:
[!is[system]regexp[/\[.*?\]/g]]

And how do I enter the suffix for the field?
-Jan




Am 14.07.2019 um 12:03 schrieb Mat:

>or else it would probably be veeery tricky to
find them.

Pah! I'm exaggerating. It is "just" a matter of
creating the right regexp for it. Not that I could
do it.

<:-)
-- 
You received this message because you are

subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving
emails from it, send an email to
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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com

.

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread Jan
AFAIK the widget is applied before the Links are rendered when I call it 
like that.




<$macrocall $name="roles" text={{!!dialogue}}/>



So the input does not seem to be the problem - it is the widget.
Jan




Am 15.07.2019 um 13:28 schrieb TonyM:

This is part of the render process already.

Perhaps it just needs a method to access it.

Jeremy is talking about opening more of the core features to user config.

*See Control Panel > Infor > Advanced > Parsing > wikilink *

Here you can enable and disable it for text fields. This may help you 
identify how it is done for the text field and redeploy this on other 
fields.


Regards
Tony

On Monday, July 15, 2019 at 9:06:31 PM UTC+10, Jan wrote:

Hi,
alas the Find-Macro and also the Extract-Macro fail in this job.
This really seems to be an issue for a widget which can escape the
square-bracket-problem.

I made a quick attempt to solve this problem with a widget
matching for the css, with no success so far.

|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
   exports.name    = 'roles';
   exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
   text = text.match("/\[.*?\]/g");
   return text
} ;
})();|


Seeing how complicated this problem is in wikitext, I think it
would be usefull, to have such a thing as "Extract Links Widget".

Jan






Jan

Am 15.07.2019 um 10:01 schrieb Jan:

Hi Mark!
I have tried out your proposition but alas, the filter is not
working the way I would like it to work:
So far it looks for Tiddlers that have the field "myfield", it
should look for Links in this field.

I have tired several variations with get[] and list[] to have the
dialoguebut it nearly seems impossible to filter the result for
[[square brackets.

Jan






Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:

Hi Mark,
 thanks, again you saved my day!
I will implement this at once!
Jan

Mohammad > schrieb am So. 14.
Juli 2019 um 19:18:

Hi Mark,
 I was surprised with this simple and elegant solution you
proposed albeit the regxp is behind my knowledge! :-)

Added to TW-Scripts.

Cheers
Mohammad


On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote:

You need to put your expression in a separate variable:

<$vars reg="(?g)\[\[.*?\]\]">
<$list filter="[!is[system]regexp:myfield]"/>


I tested using field "myfield". I was surprised to find
that there actually is a matching field at
tiddlywiki.com .

Note that the regexp filter has its own notation for
indicating a global search. I put it in, but don't
really understand what use it has, since it is the
tiddler that gets returned, not the field. So finding
one match should be good enough.


On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote:

Hi Mat,
Unfortunately filtersyntax gets so terribly
complicated when the param contains squarebrackets.
This here causes a syntax error:
[!is[system]regexp[/\[.*?\]/g]]

And how do I enter the suffix for the field?
-Jan




Am 14.07.2019 um 12:03 schrieb Mat:

>or else it would probably be veeery tricky to find
them.

Pah! I'm exaggerating. It is "just" a matter of
creating the right regexp for it. Not that I could
do it.

<:-)
-- 
You received this message because you are

subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving
emails from it, send an email to
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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com

.
For more options, visit
 

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread TonyM
This is part of the render process already.

Perhaps it just needs a method to access it. 

Jeremy is talking about opening more of the core features to user config.

*See Control Panel > Infor > Advanced > Parsing > wikilink *

Here you can enable and disable it for text fields. This may help you 
identify how it is done for the text field and redeploy this on other 
fields.

Regards
Tony

On Monday, July 15, 2019 at 9:06:31 PM UTC+10, Jan wrote:
>
> Hi, 
> alas the Find-Macro and also the Extract-Macro fail in this job. This 
> really seems to be an issue for a widget which can escape the 
> square-bracket-problem.
>
> I made a quick attempt to solve this problem with a widget matching for 
> the css, with no success so far. 
>
> /*\
> title: $:/core/modules/macros/roles.js
> type: application/javascript
> module-type: macro
> Making some replacements in Textinputs
> \*/
>
> (function(){
>/*jslint node: true, browser: true */
>/*global $tw: false */
>"use strict";
>
> /*
> Information about this macro
> */
>   exports.name = 'roles';
>   exports.params = [{ name: 'text'  }];
> /*
> Run the macro
> */
> exports.run = function(text) {
>   text = text.match("/\[.*?\]/g");
>   return text
> } ;
> })();
>
>
> Seeing how complicated this problem is in wikitext, I think it would be 
> usefull, to have such a thing as "Extract Links Widget".
>
> Jan
>
>
>
>
>
>
> Jan
>
> Am 15.07.2019 um 10:01 schrieb Jan:
>
> Hi Mark!
> I have tried out your proposition but alas, the filter is not working the 
> way I would like it to work:
> So far it looks for Tiddlers that have the field "myfield", it should look 
> for Links in this field.
>
> I have tired several variations with get[] and list[] to have the 
> dialoguebut it nearly seems impossible to filter the result for [[square 
> brackets.
>
> Jan
>
>
>
>
>  
>
> Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:
>
> Hi Mark,
>  thanks, again you saved my day! 
> I will implement this at once!
> Jan
>
> Mohammad > schrieb am So. 14. Juli 
> 2019 um 19:18:
>
>> Hi Mark, 
>>  I was surprised with this simple and elegant solution you proposed 
>> albeit the regxp is behind my knowledge! :-)
>>
>> Added to TW-Scripts.
>>
>> Cheers
>> Mohammad
>>
>>
>> On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote: 
>>>
>>> You need to put your expression in a separate variable:
>>>
>>> <$vars reg="(?g)\[\[.*?\]\]">
>>> <$list filter="[!is[system]regexp:myfield]"/>
>>> 
>>>
>>> I tested using field "myfield". I was surprised to find that there 
>>> actually is a matching field at tiddlywiki.com.
>>>
>>> Note that the regexp filter has its own notation for indicating a global 
>>> search. I put it in, but don't really understand what use it has, since it 
>>> is the tiddler that gets returned, not the field. So finding one match 
>>> should be good enough.
>>>
>>>
>>> On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote: 

 Hi Mat,
 Unfortunately filtersyntax gets so terribly complicated when the param 
 contains squarebrackets.
 This here causes a syntax error: [!is[system]regexp[/\[.*?\]/g]]

 And how do I enter the suffix for the field?
 -Jan




 Am 14.07.2019 um 12:03 schrieb Mat:

 >or else it would probably be veeery tricky to find them. 

 Pah! I'm exaggerating. It is "just" a matter of creating the right 
 regexp for it. Not that I could do it.

 <:-)
 -- 
 You received this message because you are subscribed to the Google 
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to 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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com
  
 
 .
 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 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/3989d192-3218-4d29-8eef-114071e5fcc4%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>

-- 
You received this message because you are 

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-15 Thread Jan

Hi,
alas the Find-Macro and also the Extract-Macro fail in this job. This 
really seems to be an issue for a widget which can escape the 
square-bracket-problem.


I made a quick attempt to solve this problem with a widget matching for 
the css, with no success so far.


|/*\
title: $:/core/modules/macros/roles.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/

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

/*
Information about this macro
*/
  exports.name = 'roles';
  exports.params = [{ name: 'text'  }];
/*
Run the macro
*/
exports.run = function(text) {
  text = text.match("/\[.*?\]/g");
  return text
} ;
})();|


Seeing how complicated this problem is in wikitext, I think it would be 
usefull, to have such a thing as "Extract Links Widget".


Jan






Jan

Am 15.07.2019 um 10:01 schrieb Jan:

Hi Mark!
I have tried out your proposition but alas, the filter is not working 
the way I would like it to work:
So far it looks for Tiddlers that have the field "myfield", it should 
look for Links in this field.


I have tired several variations with get[] and list[] to have the 
dialoguebut it nearly seems impossible to filter the result for 
[[square brackets.


Jan






Am 14.07.2019 um 22:51 schrieb Jan Johannpeter:

Hi Mark,
 thanks, again you saved my day!
I will implement this at once!
Jan

Mohammad > schrieb am So. 14. Juli 2019 um 
19:18:


Hi Mark,
 I was surprised with this simple and elegant solution you
proposed albeit the regxp is behind my knowledge! :-)

Added to TW-Scripts.

Cheers
Mohammad


On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote:

You need to put your expression in a separate variable:

<$vars reg="(?g)\[\[.*?\]\]">
<$list filter="[!is[system]regexp:myfield]"/>


I tested using field "myfield". I was surprised to find that
there actually is a matching field at tiddlywiki.com
.

Note that the regexp filter has its own notation for
indicating a global search. I put it in, but don't really
understand what use it has, since it is the tiddler that gets
returned, not the field. So finding one match should be good
enough.


On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote:

Hi Mat,
Unfortunately filtersyntax gets so terribly complicated
when the param contains squarebrackets.
This here causes a syntax error:
[!is[system]regexp[/\[.*?\]/g]]

And how do I enter the suffix for the field?
-Jan




Am 14.07.2019 um 12:03 schrieb Mat:

>or else it would probably be veeery tricky to find them.

Pah! I'm exaggerating. It is "just" a matter of creating
the right regexp for it. Not that I could do it.

<:-)
-- 
You received this message because you are subscribed to

the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to 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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com

.
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/3989d192-3218-4d29-8eef-114071e5fcc4%40googlegroups.com

.
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 

Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread Jan Johannpeter
Hi Mark,
 thanks, again you saved my day!
I will implement this at once!
Jan

Mohammad  schrieb am So. 14. Juli 2019 um 19:18:

> Hi Mark,
>  I was surprised with this simple and elegant solution you proposed albeit
> the regxp is behind my knowledge! :-)
>
> Added to TW-Scripts.
>
> Cheers
> Mohammad
>
>
> On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote:
>>
>> You need to put your expression in a separate variable:
>>
>> <$vars reg="(?g)\[\[.*?\]\]">
>> <$list filter="[!is[system]regexp:myfield]"/>
>> 
>>
>> I tested using field "myfield". I was surprised to find that there
>> actually is a matching field at tiddlywiki.com.
>>
>> Note that the regexp filter has its own notation for indicating a global
>> search. I put it in, but don't really understand what use it has, since it
>> is the tiddler that gets returned, not the field. So finding one match
>> should be good enough.
>>
>>
>> On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote:
>>>
>>> Hi Mat,
>>> Unfortunately filtersyntax gets so terribly complicated when the param
>>> contains squarebrackets.
>>> This here causes a syntax error: [!is[system]regexp[/\[.*?\]/g]]
>>>
>>> And how do I enter the suffix for the field?
>>> -Jan
>>>
>>>
>>>
>>>
>>> Am 14.07.2019 um 12:03 schrieb Mat:
>>>
>>> >or else it would probably be veeery tricky to find them.
>>>
>>> Pah! I'm exaggerating. It is "just" a matter of creating the right
>>> regexp for it. Not that I could do it.
>>>
>>> <:-)
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to 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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com
>>> 
>>> .
>>> 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/3989d192-3218-4d29-8eef-114071e5fcc4%40googlegroups.com
> 
> .
> 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/CALdpFy0ud6VBzp2gThDVgmqn_KJDN1kNJxnuSi%3DDgxmJgM5Vfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread Mohammad
Hi Mark,
 I was surprised with this simple and elegant solution you proposed albeit 
the regxp is behind my knowledge! :-)

Added to TW-Scripts.

Cheers
Mohammad


On Sunday, July 14, 2019 at 9:21:42 PM UTC+4:30, Mark S. wrote:
>
> You need to put your expression in a separate variable:
>
> <$vars reg="(?g)\[\[.*?\]\]">
> <$list filter="[!is[system]regexp:myfield]"/>
> 
>
> I tested using field "myfield". I was surprised to find that there 
> actually is a matching field at tiddlywiki.com.
>
> Note that the regexp filter has its own notation for indicating a global 
> search. I put it in, but don't really understand what use it has, since it 
> is the tiddler that gets returned, not the field. So finding one match 
> should be good enough.
>
>
> On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote:
>>
>> Hi Mat,
>> Unfortunately filtersyntax gets so terribly complicated when the param 
>> contains squarebrackets.
>> This here causes a syntax error: [!is[system]regexp[/\[.*?\]/g]]
>>
>> And how do I enter the suffix for the field?
>> -Jan
>>
>>
>>
>>
>> Am 14.07.2019 um 12:03 schrieb Mat:
>>
>> >or else it would probably be veeery tricky to find them. 
>>
>> Pah! I'm exaggerating. It is "just" a matter of creating the right regexp 
>> for it. Not that I could do it.
>>
>> <:-)
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to 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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com
>>  
>> 
>> .
>> 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/3989d192-3218-4d29-8eef-114071e5fcc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread 'Mark S.' via TiddlyWiki
You need to put your expression in a separate variable:

<$vars reg="(?g)\[\[.*?\]\]">
<$list filter="[!is[system]regexp:myfield]"/>


I tested using field "myfield". I was surprised to find that there actually 
is a matching field at tiddlywiki.com.

Note that the regexp filter has its own notation for indicating a global 
search. I put it in, but don't really understand what use it has, since it 
is the tiddler that gets returned, not the field. So finding one match 
should be good enough.


On Sunday, July 14, 2019 at 3:51:37 AM UTC-7, Jan wrote:
>
> Hi Mat,
> Unfortunately filtersyntax gets so terribly complicated when the param 
> contains squarebrackets.
> This here causes a syntax error: [!is[system]regexp[/\[.*?\]/g]]
>
> And how do I enter the suffix for the field?
> -Jan
>
>
>
>
> Am 14.07.2019 um 12:03 schrieb Mat:
>
> >or else it would probably be veeery tricky to find them. 
>
> Pah! I'm exaggerating. It is "just" a matter of creating the right regexp 
> for it. Not that I could do it.
>
> <:-)
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to 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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com
>  
> 
> .
> 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/a065123e-f6b1-48d5-a1c6-90a03bf33a6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread Mohammad
Jan,
 Have you tried the find macro! It easily find such cases!
The find macro actually find patterns and return the content!

-Mohammad

On Sunday, July 14, 2019 at 2:56:33 PM UTC+4:30, Jan wrote:
>
> Hi Mark 
> thanks for the clarification, it would be nice if the filter could detect 
> all links sourrounded by double brackets.
> -Jan
>
> PS:
> It would be great if the LinksOperator hat a field parameter...
>
>
> Am 14.07.2019 um 12:03 schrieb Mat:
>
> >or else it would probably be veeery tricky to find them. 
>
> Pah! I'm exaggerating. It is "just" a matter of creating the right regexp 
> for it. Not that I could do it.
>
> <:-)
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to 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/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com
>  
> 
> .
> 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/d744db79-d33f-4cf8-8f5e-0361852e6c05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread Jan

Hi Mat,
Unfortunately filtersyntax gets so terribly complicated when the param 
contains squarebrackets.

This here causes a syntax error: [!is[system]regexp[/\[.*?\]/g]]

And how do I enter the suffix for the field?
-Jan




Am 14.07.2019 um 12:03 schrieb Mat:

>or else it would probably be veeery tricky to find them.

Pah! I'm exaggerating. It is "just" a matter of creating the right 
regexp for it. Not that I could do it.


<:-)
--
You received this message because you are subscribed to the Google 
Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to tiddlywiki+unsubscr...@googlegroups.com 
.
To post to this group, send email to tiddlywiki@googlegroups.com 
.

Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com 
.

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/5D2B0930.2040700%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread Jan

Hi Mark
thanks for the clarification, it would be nice if the filter could 
detect all links sourrounded by double brackets.

-Jan

PS:
It would be great if the LinksOperator hat a field parameter...


Am 14.07.2019 um 12:03 schrieb Mat:

>or else it would probably be veeery tricky to find them.

Pah! I'm exaggerating. It is "just" a matter of creating the right 
regexp for it. Not that I could do it.


<:-)
--
You received this message because you are subscribed to the Google 
Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to tiddlywiki+unsubscr...@googlegroups.com 
.
To post to this group, send email to tiddlywiki@googlegroups.com 
.

Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com 
.

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/5D2B0350.8000608%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread Mat
>or else it would probably be veeery tricky to find them.

Pah! I'm exaggerating. It is "just" a matter of creating the right regexp 
for it. Not that I could do it.

<:-)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ebad32fa-60c1-4434-a943-350812eb47d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Is there a filter to find links in other fields than text

2019-07-14 Thread Mat
Find links in general or find specific links?

The former is more complicated but as a smallest requirement it would 
probably demand that links are enclosed in [[brackets]], i.e not 
camelcase or else it would probably be veeery tricky to find them.

If it is merely a question of finding specific links in a field then you 
can use the search filter operator.

<:-)

-- 
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/7248bd05-7562-4022-acc4-3e2b0e7c9373%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.