[tw] Re: How to adjust the style of a spreadsheet (plugin: $:/plugins/ebalster/formula)?

2018-02-04 Thread coda coder
And, of course, if you want to hide column 6, just change the 2 to a 6.

On Sunday, February 4, 2018 at 4:19:06 PM UTC-6, coda coder wrote:
>
>
>
> On Sunday, February 4, 2018 at 4:12:45 PM UTC-6, Surya wrote:
>>
>> Hi Coda,
>>
>> thanks for your answer :-)
>>
>
> Create a spreadsheet tiddler called spreadsheet-css and give it the tag  
> $:/tags/Stylesheet
>
> Place this code in the spreadsheet tiddler:
>
>
>> .my-ss-table th:nth-child(2),
>> .my-ss-table td:nth-child(2) {
>>   display:none;
>> }
>>
>
>  
>

-- 
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/9497b00d-23a2-44fd-ade8-11ed3da14f01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to adjust the style of a spreadsheet (plugin: $:/plugins/ebalster/formula)?

2018-02-04 Thread coda coder


On Sunday, February 4, 2018 at 4:12:45 PM UTC-6, Surya wrote:
>
> Hi Coda,
>
> thanks for your answer :-)
>

Create a spreadsheet tiddler called spreadsheet-css and give it the tag  
$:/tags/Stylesheet. 
Pl

Place this code in the spreadsheet tiddler:

.
> .my-ss-table th:nth-child(2),
> .my-ss-table td:nth-child(2) {
>   display:none;
> }
>

 

-- 
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/ac34188b-a963-4b03-8984-0b093e5ff97b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to adjust the style of a spreadsheet (plugin: $:/plugins/ebalster/formula)?

2018-02-04 Thread 'Surya' via TiddlyWiki
Hi Coda,

thanks for your answer :-)

I tried now to insert 

and 
to insert 
.my-ss-table th:nth-child(2),

.my-ss-table td:nth-child(2) {
  display:none;
}

at different places, but with no success at all.
Where do have to insert it in this:??

\define ss_cols() a b c d e f g
\define ss_rows() 1 2 3 4 5 6
\define ss_cell() $(c)$$(r)$

<$tiddler tiddler="Spreadsheet/Data">

Click on cells to pop up an editor.  Formulas currently need to be written 
in `(= =)` but cells may be referred to by their names, such as `a2`.  
Ranges aren't supported yet.



<$vars popupState=<> popupCell=<> >

<$reveal type="popup" state=<> >


<$set name="cell" filter="[titleget[text]]">
''<>'': <$edit-text tag=input index=<> size=230 />

<$button 
class="tc-btn-invisible">{{$:/core/images/save-button}}<$action-setfield 
$tiddler=<> text=""/>






<$list variable=c filter=<> 
><>
<$list variable=r filter=<> >

<>
<$list variable=c filter=<> >

<$button popup=<> 
style="width:100%;margin:0;padding:6px;display:block;background:none;border:none;cursor:pointer;"><$action-setfield
 
$tiddler=<> text=<>/> <$formula formula=<>/>














The above assumes you will have NO INNER nested TABLES with more THs and 
> TDs.  If you DO have nested tables, change it to this:
>
>>>I don't kno what inner nested tables are, so I think, I don't have such. 
This what I wrote above, IS the table with calculating possibilities.

Surya

-- 
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/5fb50b5d-4a81-4d6d-a0c1-1f785b27fc49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] The Pan Widget

2018-02-04 Thread Jan

Hi Simon,
now it works, I found my(!) bugs which prevented the menu from working. 
( I just had inverted the functions to be triggered)

It works beautifully.
smarties.tiddlyspot.com
Thanks for making this possible.

Next weekend (I won't find the time before) I will have to put it on the 
tiddlers in the storyriver to show the menu.

and I will apply it to the slideshow


Yours Jan





Am 04.02.2018 um 19:59 schrieb BurningTreeC:
two or three or four finger swipes/taps/pans also work if you provide 
$pointers="2"/$pointers="3" ...


so this does different things on the "testclass" element if you swipe 
with one or two fingers:


<$swipe $targets="testclass" $state="on" $direction="left" 
*$pointers="1" *$actions="""someactions""">
<$swipe $targets="testclass" $state="on" $direction="left" 
*$pointers="2" *$actions="""someotheractions""">



swipe with one finger or mousepointer to do someactions
swipe with two fingers (won't be possible with mouse) to do 
someotheractions






--
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/ee7616b1-2d2d-4c45-aa6b-5c9b88f43d0a%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/5A77818A.9090503%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Build sequential modals out of a list filter

2018-02-04 Thread coda coder
Sorry, Diego, that will take a while.  I have it in an archive 
"somewhere"...

On Friday, February 2, 2018 at 6:36:13 PM UTC-6, Diego Mesa wrote:
>
> Awesome! Could you give me a shell of an example if you get a chance?
>
> Thanks! 
>
> On Friday, February 2, 2018 at 4:59:27 PM UTC-6, coda coder wrote:
>>
>> Yes. I've done it using listops. But frankly, I ended up hardwiring the 
>> whole thing -- I could understand and reason about the code better, AND, 
>> most importantly, understand it six months (weeks? minutes?) later.
>>
>>
>> On Friday, February 2, 2018 at 4:35:43 PM UTC-6, Diego Mesa wrote:
>>>
>>> Hey all,
>>>
>>> I am working on something where I would take a list of tiddlers I've 
>>> filtered for, and display each one as a modal popup with a button to the 
>>> next one. Is this possible? 
>>>
>>> Thanks! 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/9b5846e2-3d7d-4da9-898f-4842875260fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to adjust the style of a spreadsheet (plugin: $:/plugins/ebalster/formula)?

2018-02-04 Thread coda coder


On Sunday, February 4, 2018 at 3:21:39 PM UTC-6, Surya wrote:
>
>
> \define ss_cols() a b c d e f g
> \define ss_rows() 1 2 3 4 5 6
> \define ss_cell() $(c)$$(r)$
>
> <$tiddler tiddler="Spreadsheet/Data">
>
> Click on cells to pop up an editor.  Formulas currently need to be 
> written in `(= =)` but cells may be referred to by their names, such as 
> `a2`.  Ranges aren't supported yet.
>
>
> <$vars popupState=<> 
> popupCell=<> >
>
> <$reveal type="popup" state=<> >
> 
>
> <$set name="cell" filter="[titleget[text]]">
> ''<>'': <$edit-text tag=input index=<> size=230 />
> <$button 
> class="tc-btn-invisible">{{$:/core/images/save-button}}<$action-setfield 
> $tiddler=<> text=""/>
> 
>
> 
> 
>
>
I would use CSS nth-child, targeting the THs and TDs.  But first, to help 
the cascade better, give this table a class:

 

> 
>

you can change that name to anything that makes sense to you.

Then in your css, to hide all the cells in column 2, write something like 
this:

.my-ss-table th:nth-child(2),
.my-ss-table td:nth-child(2) {
  display:none;
}

The above assumes you will have NO INNER nested TABLES with more THs and 
TDs.  If you DO have nested tables, change it to this:

.my-ss-table > th:nth-child(2),
.my-ss-table > td:nth-child(2) {
  display:none;
}

I have not tested this... and my ability to parse other people's code is 
limited, so I hope this is what you're asking for.

You can read about nth-child here: 
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child

Coda

-- 
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/15fdec0e-070f-4e64-8472-aa7b308277b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to adjust the style of a spreadsheet (plugin: $:/plugins/ebalster/formula)?

2018-02-04 Thread 'Surya' via TiddlyWiki
Hello @all,

I found out now a little bit how to adjust it.
But only a little bit...

I can now adjust the first column: Not anymore grey blackground and the 
font is very small- almost invisible (in that way, I can see the content 
for calculating by Ctrl + scrolling up, but in normal view mode it is 
almost invisible).

I also can now adjust the background from the cells, where I write the main 
content. I don't need that possibility at the moment, but nice to know the 
how-to.


But still I don't know how to adjust the width of the first column.
And I don't know how to adjust the background-colour, the font-size and the 
height of the header.
And I don't know how to make one certain cell invisible (or better one 
column).

That is what I wrote into the Spreadsheet Prototype:

\define ss_cols() a b c d e f g
\define ss_rows() 1 2 3 4 5 6
\define ss_cell() $(c)$$(r)$

<$tiddler tiddler="Spreadsheet/Data">

Click on cells to pop up an editor.  Formulas currently need to be written 
in `(= =)` but cells may be referred to by their names, such as `a2`.  
Ranges aren't supported yet.


<$vars popupState=<> popupCell=<> >

<$reveal type="popup" state=<> >


<$set name="cell" filter="[titleget[text]]">
''<>'': <$edit-text tag=input index=<> size=230 />
<$button 
class="tc-btn-invisible">{{$:/core/images/save-button}}<$action-setfield 
$tiddler=<> text=""/>






<$list variable=c filter=<> 
><>
<$list variable=r filter=<> >

<>
<$list variable=c filter=<> >
<$button popup=<> 
style="width:100%;margin:0;padding:6px;display:block;background:none;border:none;cursor:pointer;"><$action-setfield
 
$tiddler=<> text=<>/> <$formula formula=<>/>













Could someone of you please help me with that?
Thanks a lot in advance! Surya

-- 
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/e3af3810-1e8c-4216-aaa4-84a77ff44eb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-02-04 Thread Robert Edwards
This might be helpful:
https://groups.google.com/forum/#!topic/tiddlywikiclassic/Eb48yQBof5c

On Friday, January 12, 2018 at 6:08:18 PM UTC-5, Jon wrote:
>
> Hi,
>
> I have some highly modified TWCs that are important but way too much 
> trouble to convert to TW5 (until maybe retirement puts a lot of time into 
> my hands).
>
> It would be very useful for a couple of these to be able to read and write 
> local files. Impossible with current browsers, but perhaps possible with 
> TiddlyDesktop or TiddlyServer? If so, can someone spoon-feed me some basics 
> to help me get started? I'm experienced with TW, but not at all experienced 
> with nodejs or nw. The files could be either ordinary text files or 
> externally stored tiddlers, it doesn't really matter, as long as I can read 
> and write them with javascript.
>
> Thanks!
> Jon
>
>

-- 
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/53595035-1d4d-40ca-bac9-4a5d97715556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
two or three or four finger swipes/taps/pans also work if you provide 
$pointers="2"/$pointers="3" ...

so this does different things on the "testclass" element if you swipe with 
one or two fingers:

<$swipe $targets="testclass" $state="on" $direction="left" *$pointers="1" *
$actions="""someactions""">
<$swipe $targets="testclass" $state="on" $direction="left" *$pointers="2" *
$actions="""someotheractions""">


swipe with one finger or mousepointer to do someactions
swipe with two fingers (won't be possible with mouse) to do someotheractions





-- 
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/ee7616b1-2d2d-4c45-aa6b-5c9b88f43d0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
Some updates:

the swipe, pan and tap widgets now accept multiple classes in 
$targets="class1 class3 class2" (no commas, just spaces)

So you can do something like this in the story PageTemplate and swipe on 
tiddlers and the story river (with mouse or touch) to open and close the 
sidebar

<$swipe $targets="tc-story-river tc-tiddler-frame" $velocity="0.8" 
$state="on" $direction="right" $actions="""<$action-setfield 
$tiddler="$:/state/sidebar" text="no"/>""">
<$swipe $targets="tc-story-river tc-tiddler-frame" $velocity="0.8" 
$state="on" $direction="left" $actions="""<$action-setfield 
$tiddler="$:/state/sidebar" text="yes"/>""">





<$list 
filter="[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]">

<$transclude/>





<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" 
template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" 
storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>



<$list 
filter="[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]">

<$transclude/>










-- 
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/f369ffb4-54fd-4acc-987f-feba0a704de7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-02-04 Thread okido
Hello Jon,

Somebody made a comment to use the internal download mechanism.
You can do this with some inline javascript, InlineJavascriptPlugin is 
needed:


let fileName = "data.txt"
let dataContent = "Lorum ipsum"
HTML5DownloadSaveFile(fileName, dataContent)


You are restricted to the download directory, but further every thing goes.

Have a nice day, Okido


Op maandag 15 januari 2018 22:34:59 UTC+1 schreef Jon:
>
>
> Thank you, Tony & Okido. Those are both good leads!
>
> Duh, should've thought about starting from the built-in saving mechanism. 
> But, Okido, if you have a TWC plugin for filesaver.js already, that would 
> certainly save me time.
>
> Thanks,
> Jon
>

-- 
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/c0c8975b-e754-421e-8b71-8d6b2e36e2b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Infobox Template in tiddlers with specific tag

2018-02-04 Thread Dazzle
nevermind it was a very stupid mistake by myself, everything works fine now 

Am Samstag, 3. Februar 2018 23:56:41 UTC+1 schrieb Dazzle:
>
> Maybe the question was a bit confusing. Basically what I want to do is let 
> the text of a transcluded tiddler float on the left side of another 
> element, like if the text were in the same tiddler without transclusion 
> (for example the transcluded text should float around an image or any other 
> element). Is it more of a css or tw problem?
>
> Would love to hear some suggestion, and btw thanks for the reply!
> - Regards Nico
>
> Am Samstag, 3. Februar 2018 15:47:33 UTC+1 schrieb Mark S.:
>>
>> It would help if you showed your work. It's hard to know exactly what you 
>> are doing and whether you need a CSS tweak or a TW tweak.
>>
>> For controlling the order of inserted elements, you can use list-before 
>> and list-after. See: 
>> https://tiddlywiki.com/#Order%20of%20Tagged%20Tiddlers
>>
>> Good luck!
>> -- Mark
>>
>> On Saturday, February 3, 2018 at 3:34:42 AM UTC-8, Dazzle wrote:
>>>
>>> Hello,
>>>
>>> I am trying to create a little infobox on the right of each tiddler with 
>>> a specific tag similiar to the ones on wikipedia (for information like 
>>> author, publishing date, tags etc.).
>>> I tried to create a template that is applied to every tiddler with the 
>>> tag and uses the field values to fill in the information that should be 
>>> displayed. And then I want to transclude several tiddlers to generate the 
>>> main content, but the problem is, if i transclude a tiddler the text doesnt 
>>> float around the infobox, instead the box is shown below the text. Is there 
>>> a way to fix this? If the text was inside the same tiddler the text wrapped 
>>> nicely around the box.
>>>
>>

-- 
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/e9c4eb48-cef3-4eef-83da-0c922f691ddd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
I think I'll change the swipe widget in the near future so that it accepts 
a list of classes

-- 
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/e5849f0f-6bd5-42f0-8c83-a09ffaf2a502%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
@Jan,

the leftmenuwrapper in the "open" pane is covered by other divs, so I 
changed the swipe invocation to:

<$reveal state="$:/state/MultiMenu" type="match" text="" default="" 
retain="yes" animate="yes">
<$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="right" 
$actions="""<$action-setfield $tiddler="$:/state/sidebar" $value="no"/>""" 
$state="on">
<$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="left" 
$actions="""<>""" $state="on">
<$swipe $targets="open" $velocity="1.0" $direction="right" 
$actions="""<$action-setfield $tiddler="$:/state/sidebar" $value="no"/>""" 
$state="on">
<$swipe $targets="open" $velocity="1.0" $direction="left" 
$actions="""<>""" $state="on">
<$swipe $targets="mmenu" $velocity="1.0" $direction="right" 
$actions="""<$action-setfield $tiddler="$:/state/sidebar" $value="no"/>""" 
$state="on">
<$swipe $targets="mmenu" $velocity="1.0" $direction="left" 
$actions="""<>""" $state="on">
{{$:/plugins/JR/MultiMenu}}








so it covers all divs that appear there inside that leftbar and your 
actions get triggered in every leftbar-state

-- 
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/67c5edaa-f74a-4cf8-9887-274c53cd0672%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
Jan, forget everything I said

if I remove your tag $:/tags/Macro and I add my tag $:/tags/Macro (and 
change your macro to set sidebar to yes) - then it works

do you have a space in your tag?

Am Sonntag, 4. Februar 2018 11:07:26 UTC+1 schrieb BurningTreeC:
>
> Jan, that's strange: on your site, if I remove the tag $:/tags/Macro, save 
> the Tiddler, open it and readd $:/tags/Macro - then it works.
>
> Must have something to do with the TopRightBar tag and how TW loads macros 
> on startup.
>
> I also changed your macro that it sets the sidebar to "yes"
>

-- 
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/000cf869-9064-433d-abde-76a1e65ee0e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
Jan, that's strange: on your site, if I remove the tag $:/tags/Macro, save 
the Tiddler, open it and readd $:/tags/Macro - then it works.

Must have something to do with the TopRightBar tag and how TW loads macros 
on startup.

I also changed your macro that it sets the sidebar to "yes"

-- 
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/8399250a-d572-41a8-a79b-8fb448a92d6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
@Jan,

sorry - the tag wasn't the problem

It must have been something else. But I got it working

-- 
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/549f2a51-8b24-47a4-833c-f99117ba7fde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] The Pan Widget

2018-02-04 Thread BurningTreeC
Hi Jan,

Macros work, I tried it on your site. I think the problem there is 
something else. If I remove the tag $:/tags/TopRightBar from the menu, it 
works.

I guess the TopRightBar tagged tiddlers get transcluded somewhere so that 
those macros don't have effect. I don't know

-- 
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/ee1bd03b-f79e-4234-ad63-84a928ca6144%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] The Pan Widget

2018-02-04 Thread Jan

Hallo Simon,
Heureka, it works!

Now I got an further task:
Because a lot of actions shall be triggerd by the swipe I tried to 
replace the actions with a macro <> (defined in 
$:/core/ui/TopBar/menu).

Could you get macros to work in the widget?

Yours Jan


Am 04.02.2018 um 07:51 schrieb BurningTreeC:

@Jan,

I took a look how you implemented it:

<$reveal state="$:/state/MultiMenu" type="match" text="" default="" 
retain="yes" animate="yes">
<$swipe $targets="tc-tid-frame" $velocity="1.0" $direction="left" 
$actions="""<$action-setfield $tiddler="$:/state/sidebar" 
$value="yes"/>""" $state="on">

{{$:/plugins/JR/MultiMenu}}



you don't have no element with the class "tc-tid-frame" in the 
MultiMenu. But there's the big leftmenuwrapper that can be used.

I changed it to

<$reveal state="$:/state/MultiMenu" type="match" text="" default="" 
retain="yes" animate="yes">
<$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="left" 
$actions="""<$action-setfield $tiddler="$:/state/sidebar" 
$value="yes"/>""" $state="on">

{{$:/plugins/JR/MultiMenu}}



and it worked. you can also

<$reveal state="$:/state/MultiMenu" type="match" text="" default="" 
retain="yes" animate="yes">
<$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="right" 
$actions="""<$action-setfield $tiddler="$:/state/sidebar" 
$value="no"/>""" $state="on">
<$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="left" 
$actions="""<$action-setfield $tiddler="$:/state/sidebar" 
$value="yes"/>""" $state="on">

{{$:/plugins/JR/MultiMenu}}




works very well

happy hacking!
--
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/1f87c970-9307-4084-9101-cc504b2a0aee%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/5A76D14C.9040106%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-02-04 Thread Evan Balster
Hey, Tony —

The tw_date function should do what you want:  It manually turns other 
things into dates, bypassing the normal "interpretation" mechanism.  It 
will accept MMDD dates with each subsequent part being optional.  It 
might not work on data that have been interpreted as numbers, which can 
happen with {{transclude}} syntax...  To avoid the interpretation, you can 
use the "transclude" or "variable" functions to fetch raw, uninterpreted 
text:

... tw_date(transclude("tiddler", "field")) ...

Basically the idea is that all automatic conversion can be bypassed or done 
manually.

The "fall-back" behaviors you're describing would best be implemented with 
the "iferror" function, which formula doesn't implement yet.  Other than 
that I advise using some string-related functions to figure out what kind 
of data you're dealing with.  For example, 
len(trim(x))==0
tells you if some data is blank (ie, only whitespace or nothing at all).

I might have to investigate the interoperation problems between formula and 
condition.

On Saturday, 3 February 2018 21:35:13 UTC-6, TonyM wrote:
>
> Evan,
>
> Thanks again for your work.
>
> To the point : *So I suppose I am asking, "can the treatment of empty or 
> blank date fields be restored?", or could you "tell me a way to treat such 
> fields to avoid the errors?"*
>
> I will return to blank dates shortly.
>
> *Date Format*
> First, removing the trailing "00" or using 000 does indeed let a date 
> display correctly THANKYOU
> I was erroneously setting dates to one digit short
> <$action-setfield $field=date-field $value=<> 
> $timestamp=no />
> Previously however this was tolerated. As was a date field with only the 
> date 0MM0DD and other combinations (I have not retested)
>
> *Blank dates*
>
> This behaviour has changed, I am now getting these errors below when 
> previously use of date fields that had empty or a single space in the date 
> field were tolerated and no result was returned,
>
> ComputeError: Cannot auto-convert "" to a date!
> ComputeError: Cannot auto-convert " " to a date!
>
> I was using the existence of a date-field to trigger the display, time 
> stamp or edit of that and other fields
>
>
>- For example if item-started existed it allows you to "select, enter 
>or time stamp the date"  item-started
>- Basically the existence of item-started indicates the tiddler is now 
>under disposition management (regardless of its value or not)
>- It also provides the ability to optionally provide a item-completed 
>or item-cancelled dates
>- If I accidentally cancelled the item and cleared the item-cancelled 
>date, to instead set the completed date, I would have a blank cancelled 
>date field.
>
> *Why permit " " dates*
> If I am using the existence of a date field empty or otherwise I use a 
> filter that includes has[fieldname]
> Of note was that this has[fieldname] filter often seemed only to work when 
> the field existed and was not empty, hence the use of " "
>
> On example of where formulas was tolerant of blank and space was in the 
> following, which calculates the number of days between the date-fields 
> value and today.
>
> \define daystoday(datefield)
> (= days( now(), date( {{!!$datefield$}} ) ) =)
> \end
>
>
> Other examples, It is fine for these to return nothing
>
> (= if(tw_date({{!!$datefield$}})=now(),"Today","Not Today") =)
>
>
> \define showtodayrange(datefield1,datefield2)
> > 
> max=< ))">>/> 
> \end
>
>
> <$if value=(={{!!$datefield$}}=)>
>  Has value (=date({{!!$datefield$}})=)
>  <$set name=indate value= (=date({{!!$datefield$}})=)>
>  
> <$else>
>  No Value (={{!!$datefield$}}=)
>  <$set name=indate value=(=now()=)>
> 
>
> The above also seems broken, using The *Condition* plugin for TiddlyWiki, 
> version 0.1.0 (disabled or not)
>
>
> *So I suppose I am asking, "can the treatment of empty or blank date fields 
> be restored?", or could you "tell me a way to treat such fields to avoid the 
> errors?"*
>
>
> Thanks in advance,
>
> Tony
>
>
>
> On Sunday, February 4, 2018 at 12:54:42 PM UTC+11, Evan Balster wrote:
>>
>> Hey all —
>>
>> Formula 0.2.2 is out:  https://evanbalster.com/tiddlywiki/formulas.html
>> GitHub:  https://github.com/EvanBalster/TiddlyWikiFormula
>>
>> Changes:
>>
>>- Fixed a bug in the parsing of /* block comments */. // line comments 
>> also 
>>work.
>>- Implemented regular expression literals in the JavaScript style: 
>>/regex/g
>>   - May be used as a Datum 
>>   
>>   - When converting strings to regex, both JavaScript and TiddlyWiki 
>>   styles will be recognized.
>>- Formula errors now mention LET assignments they lie inside.
>>- Formulas as Tag Attributes 
>>
>> 
>>  are 
>>now facilitated by a mod using the experimental Mod-Loader Plugin 
>>