[tw5] Re: [Help] How to perform OR based filtering from a subfilter || How to use Tidgraph for Family Tree

2019-05-19 Thread D X
Thanks, Tweeter. I'll take a look at that.

-- 
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/004a2191-f1c4-4391-827d-63873cb3671d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A dynamic dropdown select list for a tiddler field

2019-05-19 Thread TonyM
Passing by

The select widget has a class parameter, perhaps you can get some css and 
define the call for the HTML select element

I will experiment but this may help you and inspire others.

Regards
Tony

On Monday, May 20, 2019 at 3:54:24 PM UTC+10, passingby wrote:
>
> Is there a way to have a dropdown as a value chooser for a field in edit 
> mode ? I need a dynamic list generated containing tiddler names, using 
> <$select> widget.  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/5d58da89-fb5a-48b2-b9fb-9de6e7ec1400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Inspirational thoughts about using tags

2019-05-19 Thread bimlas

>
> Personal Knowledge Management (PKM)  is the practice of capturing the 
> ideas and insights we encounter in our daily life, whether from personal 
> experience, from books and articles, or from our work, and cultivating them 
> over time to produce more creative, higher quality work. I teach people how 
> to master PKM in my online course Building a Second Brain.
> By collecting our knowledge in a centralized place outside of our own 
> heads, we can create an engine of creative output – a “second brain” – to 
> advance a career, build a business, or pursue a passion. By making this 
> knowledge digital, we can reap the benefits of searchability, backups, 
> syncing between devices, sharing with others, and more.
> But there’s one aspect of personal knowledge management I haven’t fully 
> addressed, which is tags. In the past, I criticized tags harshly as being 
> too taxing, overly complicated, and low value for the effort required. I 
> advised people not to use tags to manage their knowledge, favoring 
> notebooks or folders instead.
> But I’ve changed my mind since then. Over several years of observations, 
> findings, and experiments, I’ve come to believe that tags could be the 
> missing link in making our knowledge collections truly adaptable – able to 
> reorient and reconfigure themselves on the fly to enable any goal we wish 
> to pursue.
> Let me tell you what I believe is required to unlock the immense potential 
> of tagging for personal knowledge management.


https://praxis.fortelabs.co/a-complete-guide-to-tagging-for-personal-knowledge-management/

-- 
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/375ee499-9f99-401e-ae0c-4d8bc11c861d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] A dynamic dropdown select list for a tiddler field

2019-05-19 Thread passingby
Is there a way to have a dropdown as a value chooser for a field in edit 
mode ? I need a dynamic list generated containing tiddler names, using 
<$select> widget.  

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/12bbc374-48cb-4536-9d39-ee3e36aa1d85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Resize Embedded Video

2019-05-19 Thread A Gloom

>
> If when embedding something in an iframe there are sites that will not 
> permit it. Then rather than an iframe I provide a button to open in a new 
> window.


ah kk, a "manual resort", good idea since (from the research I did for the 
embedding external content thread) some websites don't like being shown in 
iframes due to click-jacking. 

-- 
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/68c16581-14d4-441e-8a8f-9d60652967c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Macro to set a field value in multiple tiddlers

2019-05-19 Thread Damon Pritchett
Thanks Tony,

I'll give it a go.

Damon


On Saturday, May 18, 2019 at 11:29:36 PM UTC-7, TonyM wrote:
>
> Damon,
>
> I will leave it to test on your own data but follow this partial code, 
> from memory
>
> <$button>
> <$list filter="multiple tiddler selection filter">
> One or more action or send message action to apply to each tiddler eg
> <$action-setfield new-field="new-field value"/>
> 
> Press me
> 
>
>
>
>- The Button provides the trigger for the actions inside it, the list 
>iterates this to apply to multiple tiddlers.
>- The action leaves tiddler unspecified and uses current tiddler.
>- Because the list has no variable=variablename the list will set the 
>current tiddler for each item listed.
>
>
> Regards
> Tony
>
>
> On Sunday, May 19, 2019 at 1:04:14 PM UTC+10, Damon Pritchett wrote:
>>
>> Hello once again,
>>
>> I would like to create a macro that will filter my nearly 2,000 tiddlers 
>> by tag, field or both and then add a new field and its value to each 
>> tiddler that matches the filter result. This seems very doable, but given 
>> my lack of macro experience, I'm not really sure how to start. Has anyone 
>> ever done this before or have something close that I could build off of?
>>
>> Thanks in advance.
>>
>> Cheers,
>>
>> Damon
>>
>

-- 
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/9a40f022-af8a-4e0a-bb94-2d092bce1b6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Toggle a tag when pressing button to reveal text

2019-05-19 Thread Ed Edson
This is perfect! Thank you!

On Sunday, May 19, 2019 at 7:21:46 AM UTC+1, TonyM wrote:
>
> Ed,
>
> At first I tried a variation as follows with no luck
>
> <$reveal type="nomatch" state="$:/state/SampleReveal2" text="show">
>
>
> <$button>
> <$action-setfield $tiddler="$:/state/SampleReveal2" $field="text" 
> text="show"/>
> <$action-sendmessage $message="tm-add-tag" $param="tagname"/>
> Show me
> 
>
>
> 
> <$reveal type="match" state="$:/state/SampleReveal2" text="show">
>
>
> <$button>
> <$action-setfield $tiddler="$:/state/SampleReveal2" $field="text" 
> text="hide"/>
> <$action-sendmessage $message="tm-remove-tag" $param="tagname"/>
> Hide me
> 
>
>
> ! This is the revealed content
> And this is some text
>
>
> 
>
> Then I realise simply wrap the above with 
> https://tiddlywiki.com/#FieldManglerWidget
> <$fieldmangler>
> Wikitext here
> 
> it now works out of preview mode/ on the view mode.
>
> As will  your original
> <$fieldmangler>
>
>
> <$reveal type="nomatch" state="$:/state/SampleReveal2" text="show">
>
>
> <$button set="$:/state/SampleReveal2" setTo="show">
> <$action-sendmessage $message="tm-add-tag" $param="tagname"/>
> Show me
> 
>
>
> 
> <$reveal type="match" state="$:/state/SampleReveal2" text="show">
>
>
> <$button set="$:/state/SampleReveal2" setTo="hide">
> <$action-sendmessage $message="tm-remove-tag" $param="tagname"/>
> Hide me
> 
>
>
> ! This is the revealed content
> And this is some text
>
>
> 
> 
>
> I have never being sure when and if we need to use field mangler.
>
> Regards
> Tony
>

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


Re: [tw5] Re: Visual Design Thoughts, #14 revision T7

2019-05-19 Thread Jeremy Ruston
Hi Mario

> As far as I can see, tachions grid is based on float: left. ... Which is imo 
> out of date if you want to start a new UI system. It depends on well defined 
> clear-fixes , which make it hard 
> for most users to do things right. 

Yuck. One problem is that the average lifetime of things like CSS frameworks is 
only 2-5 years, and TW5 has already been around for a lot longer than that. 
There’s a danger that anything that we adopt will become abandoned and 
unmaintained. That’s part of the motivation for the idea of translatable CSS 
classes above.

Best wishes

Jeremy

-- 
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/20EDE0AE-4208-4FD6-8680-855D739AF084%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Visual Design Thoughts, #14 revision T7

2019-05-19 Thread PMario
On Sunday, May 19, 2019 at 3:37:42 PM UTC+2, Jeremy Ruston wrote:
>
> I’m keen to introduce a new default theme as part of a future v5.2.x 
> version of TW5. I’d definitely be wanting to use an off-the-shelf 
> framework, and tend to favour the simpler ones that focus on typography, 
> such as Tachyons (https://tachyons.io/).
>

As far as I can see, tachions grid is based on float: left. ... Which is 
imo out of date if you want to start a new UI system. It depends on well 
defined clear-fixes , which make 
it hard for most users to do things right. 

just a thought. 

-mario

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


[tw5] Re: Adding tags containing spaces when creating a child tiddler

2019-05-19 Thread 'Mark S.' via TiddlyWiki
Hi Tony,

That looked plenty elegant to me ;-) !

Maybe ... I think actions between tags is deprecated ? So maybe the action 
could be moved into the action attribute. 
But deprecated or not this looks easier to read. 

I never got into the habit of thinking of {{{ }}} because they're not 
prominently in the documentation, and made few appearances in the forum. I 
need to recalibrate my thinking.

Thanks!

On Saturday, May 18, 2019 at 11:48:39 PM UTC-7, TonyM wrote:
>
> Mark,
>
> Saying that you are not sure it is the most elegant solution is like "a 
> red flag to a bull" for me,
>
> First I found this alternative
> <$set name=tiddlername filter="[is[current]]">
> <$button>
> Add child tiddler
> <$action-sendmessage $message="tm-new-tiddler"  tags=<> />
> 
> 
>
> Then realised this too works and is possibly more elegant?
>
> <$button>
> Add child tiddler
> <$action-sendmessage $message="tm-new-tiddler"  tags={{{ [is[current]] }}} 
> />
> 
>
> Only recently have I started using this pattern. If a value can be 
> evaluated using a filter use the triple curly braces to provide a value 
> into any widget and bypass the need for a set or define of the variable. 
> Especially when you only wish to use the result of the filter once in a 
> tiddler. It is an easy way of passing contents from a field, tiddler and 
> field combination, a filtered tag or a variable including adding and 
> removing prefix or some other operation. I expect it will be popular with 
> maths expressions in 5.1.20
>
> *But more elegant even?*
>
> Perhaps moving the send message into the button "message=" parameter.
>
> Regards
> Tony
>
>
> On Sunday, May 19, 2019 at 11:03:35 AM UTC+10, Mark S. wrote:
>>
>> Maybe someone will have a more elegant solution, but this appears to work:
>>
>> \define wraptitle() [[$(currentTiddler)$]]
>> <$button>
>> Add child tiddler
>> <$action-sendmessage $message="tm-new-tiddler"  tags=<> />
>> 
>>
>>
>> On Saturday, May 18, 2019 at 4:59:49 PM UTC-7, passingby wrote:
>>>
>>> I am trying to create a child tiddler of a journal by attaching the name 
>>> of the journal tiddler as a tag along with other tags. But it does not seem 
>>> to work out.
>>>
>>>  I have tried this:
>>> <$button>
>>> Add child tiddler
>>> <$action-sendmessage $message="tm-new-tiddler"  tags=<> 
>>> />
>>> 
>>>
>>> But this add three separate tags like 81th, 2019, May
>>>
>>> then I tried this:
>>>
>>> <$button>
>>> Add child tiddler
>>> <$wikify name="tidtags" text="[[<>]] anothertag">
>>> <$action-sendmessage $message="tm-new-tiddler" tags=<> />
>>> 
>>> 
>>>
>>> This results in two tags <> (literal) and anothertag. 
>>> Not what I want.
>>>
>>> Any ideas?
>>>
>>>
>>>
>>>
>>>

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


Re: [tw5] Re: Visual Design Thoughts, #14 revision T7

2019-05-19 Thread Jeremy Ruston
I’m keen to introduce a new default theme as part of a future v5.2.x version of 
TW5. I’d definitely be wanting to use an off-the-shelf framework, and tend to 
favour the simpler ones that focus on typography, such as Tachyons 
(https://tachyons.io/ ).

As others have suggested, I’d also be keen to package up some or all of the 
popular CSS frameworks such as Bootstrap and Semantic UI as optional plugins.

The trouble, of course, is that each framework has different expectations of 
the classes that will be used to implement components. For example, Bootstrap 
needs the classes .btn and .btn-success to be added to a stock HTML button, 
while Semantic UI expects the classes .ui and .button.

So, it’s not practical for the core to include classes for all the available 
frameworks. So, if a user were to choose to import the Semantic UI framework 
plugin they would be able to make their own freshly written buttons use the 
correct styles, but the existing buttons used by the core would stay with their 
default styling.

There is a potential solution: the core could use tiddlers to map the names of 
UI components to the classes that should be assigned. For example, somewhere 
there might be a declaration like this that says “give components of type 
“button” the CSS classes ban and btn-success:

button: btn btn-success

Then the core would define buttons like this:



Then, the Semantic UI plugin would change the value of 
$:/config/ui/component-classes/button to be “ui button”.

There might be concern about performance, but transcluded attributes are pretty 
efficient, it’s just one extra lookup over a string value. Anyhow, it’s not 
something I’ve had a chance to explore yet, but I’m keen to do so for v5.2.x

Best wishes

Jeremy.

> On 18 May 2019, at 05:42, TonyM  wrote:
> 
> Josiah,
> 
> You say without conversion to TW classes.  Is this because you want to change 
> fundamentally the way tiddlyWiki works?. 
> 
> I use the css in these frameworks to craft content within my tiddlers 
> typically using html with wikitext embeded to generate lists and columns or 
> display a value. 
> 
> On a current project I am building html templates for the display of content 
> in a given tiddler. For example I have a tiddler type of Office, with a 
> couple of dozen fields, and I use vanilla html/css to structure the way the 
> tiddler content is displayed through a template. It appears such html and css 
> rich templates embeded with wikitext can be considered equivalent to HTML 
> pages, such pages can be designed with elements from any css platform with 
> few limits that wikitext can usually overcome. HTML Layouts can be found all 
> over the net that can get such a page started.
> 
> I would like to know what you are doing that you want to convert to tw 
> classes?
> 
> Regards
> Tony
> 
> On Saturday, May 18, 2019 at 3:46:45 AM UTC+10, @TiddlyTweeter wrote:
> Ciao TonyM
> 
> TonyM wrote:
> My 2 cents. The addition of w3cc, bootstrap etc... is trivial, just obtain 
> the desired css file install and tag as a stylesheet. 
> 
> IMO its not trivial. Its not useful to install css libraries without 
> conversion to TW classes. And that is slog. It is serious work, I think.
> 
> I think there is an issue about libraries. Meaning--is one or another a 
> better fit with TW? Better to go with one that is a good fit?
> 
> Side thoughts
> Josiah
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> 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/8c74e6a1-4906-471e-a19f-c497b27a4806%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/3DFB506B-3BF8-40E4-ABA1-C8DF0B240D4D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Batch tagging for TCG wiki

2019-05-19 Thread PMario
Hi, 

You can have a closer look to the tiddler $:/Manager 
.
and $:/TagManager . 

have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c98b47e3-8d96-42a0-8ca7-169700b5141d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] javascript in text/html tiddlers?

2019-05-19 Thread Jeremy Ruston
Hi Gloom

I’ll explain what’s going on with regard to iframe, but I don’t think it’s a 
viable route to solving your issue.

Text/html tiddlers are not subject to any sanitisation, but the iframe that is 
used to display them is given the “sandbox” attribute (see the description 
here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe 
), which 
blocks JS by default.

However, you can easily use your own iframe to display an HTML tiddler, 
avoiding the sandbox attribute. For example:



I tried it with the following content in “New Tiddler”:



console.log("How are you");

HelloThere


You can see the console.log output in the browser developer console.

Now, it looks like what you’re actually trying to do is to manipulate the 
properties of an SVG image. If so, the easiest technique is to use an SVG 
embedded directly in the HTML (ie without an IMG tag). Then it is possible to 
manipulate all of the properties you mention using CSS. Whether or not you’ll 
be able to use the technique depends on how much control you’ve got over the 
images.

The other approach you could try is to use wikitext primitives to construct the 
text of the SVG image, splicing in the correct property values, and then 
displaying it with an IMG tag.

Best wishes

Jeremy.


> On 19 May 2019, at 09:46, A Gloom  wrote:
> 
> From what I could find about the subject, you can use  tag in a 
> text/html tiddler but the simple examples I seen shown (shown below) don't 
> work in my TW-- I get the iframe but no content.  Using single file TW 5.1.17 
> & 5.1.19 with latest Firefox.
> 
>