[tw] Re: 5.1.14 prerelease: checkbox actions widget

2016-12-21 Thread Tobias Beer
Hi Danielo,
 

> It may be simple, but it is not obvious neither consistent. Every piece of 
> tiddlywiky works its own way, it's a bit of pain to remember all the moving 
> parts. This is just one more piece on the puzzle


>From a perspective of modularity,
outsourcing exhaustive action code into discrete,
even reusable chunks is the right thing to do ...for me.

Overloading a widget attribute with heaps of wikitext,
now that's what I would call inconsistent when I look at it.
Sure that'll work, but from a developer's pov it's awful.
It's like writing mountains of js directly into some
onclick="javascrit:alert('foo');" handler.
Preferably, you just don't do that.
It's separation of concerns 101.

Best wishes,

Tobias.

-- 
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/d4210098-3b72-4a19-a0cb-d8b0769df0f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Close tiddlers by tag...

2016-12-21 Thread Tobias Beer
Hi Jan,

It sounds like you're modifying the actual tiddlers in the story
when doing nothing but rearrange them.
This doesn't sound architecturally right.
You' be wanting to change some temporary
"rearrange current story" tiddlers but not the actual tiddlers
that are displayed in the story.
In other words, the only thing you should be concerned changing
is your current story, not the tiddlers in it.

Best wishes,

Tobias.

-- 
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/8f918ba4-0ab2-421a-b034-57f952c69605%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: 5.1.14 prerelease: checkbox actions widget

2016-12-21 Thread Danielo Rodríguez
It may be simple, but it is not obvious neither consistent. Every piece of 
tiddlywiky works its own way, it's a bit of pain to remember all the moving 
parts. This is just one more piece on the puzzle 

-- 
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/b1fe875d-df5b-4458-ac87-7f8b66bd21b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Close tiddlers by tag...

2016-12-21 Thread 'Mark S.' via TiddlyWiki
This version seems to work -- but it takes a different approach. It closes 
all tiddlers (except the one with the button) and then re-opens all the 
tiddlers that match the critieria. In the end, it closes itself (the button 
tiddler). I think attempting to close tiddlers in a <$list> causes problems 
because it means the $:/Storylist is changing right in the middle of an 
action. The results when I tried it that way were irregular.


<$button>PUSH 2
<$action-sendmessage $message="tm-close-other-tiddlers" />
<$list filter="[list[]tag[ReArrange]]">
<$action-navigate $to=<>/>
 
<$action-sendmessage $message="tm-close-tiddler" param=<> />






On Wednesday, December 21, 2016 at 4:18:38 PM UTC-8, Jan wrote:
>
> Hej! 
> A question for a tool to reorder the Story which i called rearranger and 
> published on 
> http://slidesnstories.tiddlyspot.com/#About%20the%20Rearranger 
>
> Is there a trick to close all Tiddlers who do not have the tag ReArrange 
> (after resetting the storylist) in one button? 
>
> This here doe s not seem to work... 
>
> <$button set="$:/StoryList!!list" setTo={{!!list}}> 
> <$list filter="[list[$:/StoryList!!list]!tag[ReArrange]]"> 
> <$fieldmangler> 
> <$action-sendmessage $message="tm-close-tiddler"/> 
>  
>  
> apply new order 
>
> Thanks a lot 
> Jan 
>

-- 
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/24d4e012-619e-4afb-9718-1c151c55b7d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Close tiddlers by tag...

2016-12-21 Thread Jan

Hej!
A question for a tool to reorder the Story which i called rearranger and 
published on http://slidesnstories.tiddlyspot.com/#About%20the%20Rearranger


Is there a trick to close all Tiddlers who do not have the tag ReArrange 
(after resetting the storylist) in one button?


This here doe s not seem to work...

<$button set="$:/StoryList!!list" setTo={{!!list}}>
<$list filter="[list[$:/StoryList!!list]!tag[ReArrange]]">
<$fieldmangler>
<$action-sendmessage $message="tm-close-tiddler"/>


apply new order

Thanks a lot
Jan

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


[tw] Re: [TW5] Convert Images from png to jpg

2016-12-21 Thread Tobias Beer
Hi Mal,
 

> I'm using Dropbox for synchronisation and I have not found a way to make 
> this work on mobile devices unless I keep everything in a single file.
>

rue, Dropbox doesn't cater for relative paths between files,
except for its pro-subscription, or what previously was that *public *
folder. 

I also wouldn't know of any other sync service that does,
esp. cross-platform.

Best wishes,

Tobias.

-- 
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/ecce11ca-8e6f-45f9-b18f-119e8662f05f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: 5.1.14 prerelease: checkbox actions widget

2016-12-21 Thread Tobias Beer
Hi Matt,

It's real simple: Just define your actions in a macro.

Best wishes,

Tobias.

-- 
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/f9ac8300-87fa-4249-a988-5bb171e78538%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Convert Images from png to jpg

2016-12-21 Thread Mal
Tobias,

I agree, external images would be preferred, but this wiki uses embedded images 
because it is synchronised across multiple devices, including notepad, iPad and 
Android phone.  I also need it to be available for off-line use on these 
devices.  I'm using Dropbox for synchronisation and I have not found a way to 
make this work on mobile devices unless I keep everything in a single file. 

Regards,

Mal 

-- 
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/08b3c751-6e3a-4877-9d2a-fde28aa878c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: 5.1.14 prerelease: checkbox actions widget

2016-12-21 Thread 'Mark S.' via TiddlyWiki
Answering my own questions ... it turns out this version works:

<$fieldmangler>
<$set filter="[[Example]] [[Example 2]] +[tags[]]" name="tag">
<>
<$checkbox actions="""<$action-setfield  $field="tags" $value=<> 
/><$action-sendmessage $message="tm-add-tag" $param=<> />""" 
field="checked" checked="YES" unchecked="NO" >
Add tags from [[Example]] and [[Example 2]]






I'm using action-setfield and action-sendmessage to demonstrate two 
actions. The action-sendmessage joines all  the tags into one large tag. 
The action-setfield appends the tags as individual tags. Note the 
correction to the action-sendmessage ('param' vs. '$param') The 
<$fieldmangler> is required for action-sendmessage  but  not for 
action-setfield. The action occurs whether you check or uncheck, so that's 
something to watch out for. Surrounding the actions string with triple 
quotes seemed to be necessary.

I still think Matt's way is more intuitive, but if that isn't available ...

HTH
Mark



On Wednesday, December 21, 2016 at 10:44:16 AM UTC-8, Mark S. wrote:
>
> Your method makes more sense to me. I'm guessing that there were technical 
> reasons for making it different from the button. 
>
> At the very least, there should be an example for how to use the new super 
> powers. In particular, I'm wondering how and if you can pass off a variable 
> to the parameters? Do you need complete <$action...> syntax? Does 
> it need to work with the <$fieldmangler> or can it be used independently? 
> Inquiring minds want to know.
>
> Good luck!
> Mark
>
>
>
> On Wednesday, December 21, 2016 at 8:47:31 AM UTC-8, Matthew Lauber wrote:
>>
>> All,
>>I was looking at the release notes for the 5.1.14 prerelease, and it 
>> mentioned the actions param of the checkbox widget.  Excited, I checked it 
>> out, only to be confused.  From the description of the param "A string 
>> containing ActionWidgets to be triggered when the checkbox is clicked" 
>> it sounds like it triggers actions set as a param, rather than actions that 
>> are children of the checkbox widget.  This is the opposite of how buttons 
>> work, and makes it difficult to have multiple action widgets, and 
>> impossible to generate actions widgets from a a <$list> widget.  As an 
>> example, I'd like to be able to do this.
>>
>> <$checkbox actions="true">
>> Add tags from [[Example]] and [[Example 2]]
>> <$list filter="[[Example]] [[Example 2]] +[tags[]]" variable="tag">
>> <$action-sendmessage $message="tm-add-tag" param=<> />
>> 
>> 
>>
>> Is there a reason why the actions param is the actual list of actions? 
>>  Would a PR for my suggestion be welcome?  
>>
>> Matt Lauber
>>
>

-- 
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/efda939e-029f-470d-b5c4-6a9d6da30abe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: 5.1.14 prerelease: checkbox actions widget

2016-12-21 Thread 'Mark S.' via TiddlyWiki
Your method makes more sense to me. I'm guessing that there were technical 
reasons for making it different from the button. 

At the very least, there should be an example for how to use the new super 
powers. In particular, I'm wondering how and if you can pass off a variable 
to the parameters? Do you need complete <$action...> syntax? Does 
it need to work with the <$fieldmangler> or can it be used independently? 
Inquiring minds want to know.

Good luck!
Mark



On Wednesday, December 21, 2016 at 8:47:31 AM UTC-8, Matthew Lauber wrote:
>
> All,
>I was looking at the release notes for the 5.1.14 prerelease, and it 
> mentioned the actions param of the checkbox widget.  Excited, I checked it 
> out, only to be confused.  From the description of the param "A string 
> containing ActionWidgets to be triggered when the checkbox is clicked" it 
> sounds like it triggers actions set as a param, rather than actions that 
> are children of the checkbox widget.  This is the opposite of how buttons 
> work, and makes it difficult to have multiple action widgets, and 
> impossible to generate actions widgets from a a <$list> widget.  As an 
> example, I'd like to be able to do this.
>
> <$checkbox actions="true">
> Add tags from [[Example]] and [[Example 2]]
> <$list filter="[[Example]] [[Example 2]] +[tags[]]" variable="tag">
> <$action-sendmessage $message="tm-add-tag" param=<> />
> 
> 
>
> Is there a reason why the actions param is the actual list of actions? 
>  Would a PR for my suggestion be welcome?  
>
> Matt Lauber
>

-- 
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/6c3f2a4d-4fec-429a-87a1-20c7ee7f1994%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] 5.1.14 prerelease: checkbox actions widget

2016-12-21 Thread Matthew Lauber
All,
   I was looking at the release notes for the 5.1.14 prerelease, and it 
mentioned the actions param of the checkbox widget.  Excited, I checked it 
out, only to be confused.  From the description of the param "A string 
containing ActionWidgets to be triggered when the checkbox is clicked" it 
sounds like it triggers actions set as a param, rather than actions that 
are children of the checkbox widget.  This is the opposite of how buttons 
work, and makes it difficult to have multiple action widgets, and 
impossible to generate actions widgets from a a <$list> widget.  As an 
example, I'd like to be able to do this.

<$checkbox actions="true">
Add tags from [[Example]] and [[Example 2]]
<$list filter="[[Example]] [[Example 2]] +[tags[]]" variable="tag">
<$action-sendmessage $message="tm-add-tag" param=<> />



Is there a reason why the actions param is the actual list of actions? 
 Would a PR for my suggestion be welcome?  

Matt Lauber

-- 
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/f85a75da-812a-4d7e-aad6-165aecc88819%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Conveying: Moans about poor documentation

2016-12-21 Thread Josiah
Ciao Wimm & all

That is very useful! The search in it produces more meaningful results than 
naked Google Groups does.

Search This Google Group ... Friendly Style 


Thank you. 

It raises the point of, until there is greater clarity of the way to go to 
a better system, we could be getting MORE out of Goggle Groups than we are.

Best wishes
Josiah

On Wednesday, 21 December 2016 07:36:59 UTC+1, wimm wrote:
>
>
> another source to search the tiddlywiki googlegroups with more serach 
> options:
>
> https://www.mail-archive.com/tiddlywiki@googlegroups.com/  
> 
>
> from their docucumentation:
>
> fancy boolean operators like + - AND OR NOT ().
>
> Finally, searches can be limited to a particular email field such as from
> , date, subject or message. 
>
> For example, one can find all messages from April 2002. 
>
> The sort order can be controlled by adding *sort:newest or sort:oldest* to 
> your search string.
>
>- "battle royale" +Jeff -Breidenbach -Marshall
>- (dualing OR dueling) AND banjos 
>- from:"Mac Oglesby" date:[19980101 TO 19981231] Breidenbach 
>date:200204*
>- help sort:newest
>
>
>
>
>
>
>
>
>
>
>
> https://www.mail-archive.com/searching.html (which also describes wild 
> cards)
>
> keyboard shortcuts
>
> Access keyMnemonicAction
> Alt-n Next Later message by thread
> Alt-p Previous Earlier message by thread
> Alt-f Forward Later message by date
> Alt-b Back Earlier message by date
> Alt-i Index Chronological index
> Alt-c Contents Thread index
>
>
>
>
> wimm
>
>

-- 
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/fcb8474d-0f5a-420a-aed7-f3d264a47ebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Convert Images from png to jpg

2016-12-21 Thread Tobias Beer
Hi Mal,
 

> I'm sure there are much more elegant ways to do this, but this solved my 
> immediate problem. 
>

The most efficient way is
to not have images base-64 embedded in tiddlers
and use ExternalImages  instead,
e.g. via the *_canonical_uri* field
or plain html ** tags,
e.g. http://tobibeer.github.io/tb5/#ximg

Best wishes,

Tobias.

-- 
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/269d5308-eb75-44d5-9225-3de176b28bae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Edit field of tiddlers under the same tag every time one of those tiddlers is updated or created.

2016-12-21 Thread Tobias Beer
Hi Penguinlay,

Hi, in your demo, can I compare and make computation with the values of the 
> fields of tiddlers within filter macro's capability?
>

You can compute with tiddler data using tobibeer/eval 
.

Anyhow, there is no "filter macro".
So, I would recommend you read a little more
on the general TiddlyWiki components,
e.g. "Macros in Wikitext" or "Widgets" like the "ListWidget",
and also "Filter Operators", etc... on tiddlywiki.com.

Best wishes,

Tobias.

-- 
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/c5b55bfb-fe3c-4cbd-bd93-d574aec0603f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.