[tw] Re: How to get number of tiddlers tagged with the particular tag

2014-07-03 Thread Matabele
Hi

Have a look at the code in '$:/core/ui/MoreSideBar/Tags':

<$list filter="[tags[]!is[system]sort[title]]">

<$transclude tiddler="$:/core/ui/TagTemplate"/> <$count filter="[all[current]tagging[]]"/>



regards

On Friday, July 4, 2014 3:36:03 AM UTC+2, Jimmy Liew wrote:
>
> Hi All,
>
> I appreciate if anyone can help me with this simple tweak in TW5, to count 
> the number of tiddlers tagged under the particular tag.
>
> Currently I am using the following scripts to list all tiddlers that tags 
> with the category, I wish I could have the total count state beside the 
> category name.
>
> <$list filter="[tag[category]sort[title]]">
> <$link to={{!!title}}><$view field="title"/>
> 
>
> 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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to get number of tiddlers tagged with the particular tag

2014-07-03 Thread Jimmy Liew
Hi Hradek,

I tried to include <$count/> in my script, see below.

<$list filter="[tag[archives]sort[title]]">
<$link to={{!!title}}><$view field="title"/> (<$count/>)


But my output looks like this:
category 1 (undefined)
category 2 (undefined)
category 2 (undefined)

On Friday, 4 July 2014 13:57:42 UTC+8, Stephan Hradek wrote:
>
> Replace in your
>
> <$list filter="[tag[category]sort[title]]">
>
> $list with $count.
>
> And don't forget the / before the >
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] CycleTags button in TW5?

2014-07-03 Thread Matabele
Hi Mans

After further testing, I have found that fields work better than data 
entries -- especially when switching from one list to another. A single 
tiddler may still be used for the lists -- the lists being placed in fields 
rather data entries and called with: 

lists!!days

 -- rather than 

lists##days

It is possible to use a variable -- in general this requires the use of 
<$set> widgets, as in:

<$set name="list" value="lists!!days">
<$set name="target" value="Title">

-- or even

<$set name="list" value={{!!list}}>
<$set name="target" value={{!!title}}>

These variables can then be used in the macrocalls, for example:

\define nexttag()
[list[$(list)$]after[$(oldtag)$]][list[$(list)$]first[]]+[first[]]
\end

regards

On Friday, July 4, 2014 2:30:12 AM UTC+2, Måns wrote:
>
> Hi Matabele
>

> I can't help wondering if:
>
> Is it possible to change the "library index" part (lists##days)to a 
> variable eg.: lists##$variable$ and make the "current" part(s) 
> (set="!!current" and <$set name="oldtag" value={{!!current}}>) also into a 
> variable and turn everything into a single cycle tags macro where you 
> specify the tiddler and the list eg.: 
>
> <> or <> ??
>
> Cheers Måns Mårtensson
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to get number of tiddlers tagged with the particular tag

2014-07-03 Thread Stephan Hradek
Replace in your

<$list filter="[tag[category]sort[title]]">

$list with $count.

And don't forget the / before the >

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to get number of tiddlers tagged with the particular tag

2014-07-03 Thread Jimmy Liew
Hi Hradek,

Thanks for your prompt response.  I added <$count> in the script and it 
shows unidentified.  Would you able to show me a complete example on how to 
do that?
Thanks



On Friday, 4 July 2014 13:14:54 UTC+8, Stephan Hradek wrote:
>
> You searched for "count" on tiddlywiki.com? You found this? 
> http://tiddlywiki.com/#CountWidget:CountWidget
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to get number of tiddlers tagged with the particular tag

2014-07-03 Thread Stephan Hradek
You searched for "count" on tiddlywiki.com? You found this? 
http://tiddlywiki.com/#CountWidget:CountWidget

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Trouble viewing TW on Android Device

2014-07-03 Thread stevekimmel via TiddlyWiki
My problem isn't quite the same but similar enough that I thought this 
might be the right place for it. If not then I apologize.

I'm having problems getting TW5 to display correctly on my tablet. It 
doesn't seem to matter whether I am using Firefox for Android or Dolphin, 
or whether I am using one of my wikis or the main Tiddlywiki website, but 
the main body of the wiki looks fine other than it fills almost the entire 
screen. The sidebar section is crushed beyond usability or pushed off the 
screen completely. It is almost as though my screen is 800 px wide and the 
normal ability to zoom has somehow been disabled. In any case, nothing on 
the sidebar can be used.

I am probably the only person on Earth trying this particular combination, 
but I am working with a 7" Kindle Fire HD with Android Firefox. The 
tablet's default browser, Silk, won't touch the website at all because it 
won't use javascript. And perhaps my copy of Antidwiki (sp?) is out of date 
but it crashes on TW5 as well. 

Since I'm such a rare case, my problem probably doesn't deserve a 
modification to the program but the answer that occurs to me may be worth 
considering. If the sidebar were on the left instead of on the right, then 
I could reach the appearance tweaks. Frankly I would prefer a left side bar 
in any case.

So my question is: Is there an easy way to switch the sidebar and the main 
tiddler? 

On Thursday, July 3, 2014 12:55:17 PM UTC-5, Jon wrote:
>
> Thanks, Mans. It might be that my phone doesn't have enough juice to open 
> the file but yes, Danielo I'll try an empty file and see how that goes.
>
> On Thursday, 3 July 2014 12:39:26 UTC+1, Danielo Rodríguez wrote:
>>
>> You don't need any extension to display TW5, just to save it.
>>
>> In my android phone it is displayed correctly. My file is about 6MB. 
>> Let's break this down. Try with an empty TW5, and let us know if it is 
>> displayed properly.
>>
>> El jueves, 3 de julio de 2014 12:14:02 UTC+2, Måns escribió:
>>>
>>> Hi Jon
>>>
>>> My largest TW5's are about 4Mb...
>>>
>>> Try Firefox and install the tiddlyfox extension (google tiddlyfox in 
>>> Firefox and install it from the page)..
>>>
>>> Maybe Firefox will work fine on your phone.
>>>
>>> Cheers Måns Mårtensson
>>>
>>> Den torsdag den 3. juli 2014 07.49.59 UTC+2 skrev Jon:

 Hi Mans,
 I just tried downloading this app to my phone but it won't open my wiki 
 after appearing to load - just ends with blank screen. My wiki has grown 
 to 
 8Mb recently (from pictures) and I wonder if that's the reason. How large 
 is your file?
 Thanks, Jon.

 On Wednesday, 2 July 2014 21:52:06 UTC+1, Måns wrote:
>
> Hi justaguy168
>
> I used to use Firefox with the tiddlyfox extension or the (free) 
> Andtidwiki app for Android.
> Now I've choosen to pay for the Andtidwiki+ app (Andtidwiki without 
> advertisments) because it's the better choice for my Chinese tablet and 
> LG 
> phone..
> For some reason the app is both faster and better at rendering 
> TiddlyWiki than Firefox on my devices..
>
> Cheers Måns Mårtensson
>
> Den onsdag den 2. juli 2014 20.02.11 UTC+2 skrev justaguy168:
>>
>> I have created my first TW and jumped into v5.  I want to type my 
>> notes on my desktop computer and view them on my Android device.  I 
>> transferred the file to 
>> file:///storage/sdcard0/Documents/FileName.htm (no spaces or special 
>> chars) and the page does not properly display or display at all.  On the 
>> internal browser I just get a list of tiddlers.  When using the Chrome 
>> browser, I get the message "Access to fie file was denied.  The file at 
>> file:///storage/sdcard0/Documents/FileName.htm is not readable.  It 
>> may have been removed, moved, or file permissions may be preventing 
>> access.  Error code:  ERR_ACCESS_DENIED.  
>>
>> It seems to me like this is basic functionality.  Do others use TW5 
>> in this way?  If so how?  If not do they use TWc to view on Android?
>>
>> I have a Verizon / Galaxy S4 running Android version 4.2.2 Chrome 
>> version 34.0.1916.141.
>>
>> I have tried to internet search this to no avail.  Please advise or 
>> tell me where to RTFM. 
>>
>> Thank you in advance.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] How to get number of tiddlers tagged with the particular tag

2014-07-03 Thread Jimmy Liew
Hi All,

I appreciate if anyone can help me with this simple tweak in TW5, to count 
the number of tiddlers tagged under the particular tag.

Currently I am using the following scripts to list all tiddlers that tags 
with the category, I wish I could have the total count state beside the 
category name.

<$list filter="[tag[category]sort[title]]">
<$link to={{!!title}}><$view field="title"/>


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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] CycleTags button in TW5?

2014-07-03 Thread Måns
Hi Matabele
 

> To avoid the necessity for separate tiddlers for each list, lists may be 
> stored as data entries in a data dictionary (here titled 'lists'):
>
> days: Sun Mon Tue Wed Thu Fri Sat
> months: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
>
> -- then:
>
> \define nexttag()
> [list[lists##days]after[$(oldtag)$]][list[lists##days]first[]]+[first[]]
> \end
>

That's very,very nice :-)

Great to see practical use of a data library/catalog.. - gives food for 
thought.

I can't help wondering if:

Is it possible to change the "library index" part (lists##days)to a 
variable eg.: lists##$variable$ and make the "current" part(s) 
(set="!!current" and <$set name="oldtag" value={{!!current}}>) also into a 
variable and turn everything into a single cycle tags macro where you 
specify the tiddler and the list eg.: 

<> or <> ??

Cheers Måns Mårtensson

 

>  
>
> On Tuesday, July 1, 2014 8:38:15 AM UTC+2, Måns wrote:
>>
>> Hi TwWizards
>>
>> I wonder if it is possible to create a button which will set and unset 
>> tags from a predefined row of tags. I want to be able to cycle through 4 
>> "stages": A, B, C and none of these three tags...
>>
>> Can I do this already? - or do I need a specialized Widget for it?
>>
>> Cheers Måns Mårtensson
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] "SecurityError: The operation is insecure." when trying to save (Firefox on OS X)

2014-07-03 Thread Christian Platzer
PS: Below is the console output I receive when going to 
http://tiddlywiki.com/empty.html and clicking the download button:

SecurityError: The operation is insecure. empty.html line 4506 > eval:109
"SecurityError: The operation is insecure." empty.html:4217

Perhaps the line numbers can help narrowing this down...

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Trouble viewing TW on Android Device

2014-07-03 Thread Jon
Thanks, Mans. It might be that my phone doesn't have enough juice to open 
the file but yes, Danielo I'll try an empty file and see how that goes.

On Thursday, 3 July 2014 12:39:26 UTC+1, Danielo Rodríguez wrote:
>
> You don't need any extension to display TW5, just to save it.
>
> In my android phone it is displayed correctly. My file is about 6MB. Let's 
> break this down. Try with an empty TW5, and let us know if it is displayed 
> properly.
>
> El jueves, 3 de julio de 2014 12:14:02 UTC+2, Måns escribió:
>>
>> Hi Jon
>>
>> My largest TW5's are about 4Mb...
>>
>> Try Firefox and install the tiddlyfox extension (google tiddlyfox in 
>> Firefox and install it from the page)..
>>
>> Maybe Firefox will work fine on your phone.
>>
>> Cheers Måns Mårtensson
>>
>> Den torsdag den 3. juli 2014 07.49.59 UTC+2 skrev Jon:
>>>
>>> Hi Mans,
>>> I just tried downloading this app to my phone but it won't open my wiki 
>>> after appearing to load - just ends with blank screen. My wiki has grown to 
>>> 8Mb recently (from pictures) and I wonder if that's the reason. How large 
>>> is your file?
>>> Thanks, Jon.
>>>
>>> On Wednesday, 2 July 2014 21:52:06 UTC+1, Måns wrote:

 Hi justaguy168

 I used to use Firefox with the tiddlyfox extension or the (free) 
 Andtidwiki app for Android.
 Now I've choosen to pay for the Andtidwiki+ app (Andtidwiki without 
 advertisments) because it's the better choice for my Chinese tablet and LG 
 phone..
 For some reason the app is both faster and better at rendering 
 TiddlyWiki than Firefox on my devices..

 Cheers Måns Mårtensson

 Den onsdag den 2. juli 2014 20.02.11 UTC+2 skrev justaguy168:
>
> I have created my first TW and jumped into v5.  I want to type my 
> notes on my desktop computer and view them on my Android device.  I 
> transferred the file to file:///storage/sdcard0/Documents/FileName.htm 
> (no spaces or special chars) and the page does not properly display or 
> display at all.  On the internal browser I just get a list of tiddlers.  
> When using the Chrome browser, I get the message "Access to fie file was 
> denied.  The file at file:///storage/sdcard0/Documents/FileName.htm is 
> not readable.  It may have been removed, moved, or file permissions may 
> be 
> preventing access.  Error code:  ERR_ACCESS_DENIED.  
>
> It seems to me like this is basic functionality.  Do others use TW5 in 
> this way?  If so how?  If not do they use TWc to view on Android?
>
> I have a Verizon / Galaxy S4 running Android version 4.2.2 Chrome 
> version 34.0.1916.141.
>
> I have tried to internet search this to no avail.  Please advise or 
> tell me where to RTFM. 
>
> Thank you in advance.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] "SecurityError: The operation is insecure." when trying to save (Firefox on OS X)

2014-07-03 Thread Christian Platzer
When I try to save (either by clicking the download button, or whenever I 
make an edit while autosave is on), I get the following error message:

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
by refreshing your browser
SecurityError: The operation is insecure.

The Tiddler is edited successfully, but I am unable to download/save any 
changes to a file.

My system:
TiddlyWiki 5.0.13-beta
Firefox 30.0
OS X Version 10.9.3

I tried installing the TiddlyFox extension - but I still get the same error 
message whether it is installed or not (I do get the popup from TiddlyFox 
that asks me to allow file system access, but afterwars I end up with the 
same error message from TiddlyWiki again).

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] CycleTags button in TW5?

2014-07-03 Thread Matabele
Hi

To avoid the necessity for separate tiddlers for each list, lists may be 
stored as data entries in a data dictionary (here titled 'lists'):

days: Sun Mon Tue Wed Thu Fri Sat
months: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

-- then:

\define nexttag()
[list[lists##days]after[$(oldtag)$]][list[lists##days]first[]]+[first[]]
\end

regards

On Tuesday, July 1, 2014 8:38:15 AM UTC+2, Måns wrote:
>
> Hi TwWizards
>
> I wonder if it is possible to create a button which will set and unset 
> tags from a predefined row of tags. I want to be able to cycle through 4 
> "stages": A, B, C and none of these three tags...
>
> Can I do this already? - or do I need a specialized Widget for it?
>
> Cheers Måns Mårtensson
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] CycleTags button in TW5?

2014-07-03 Thread Matabele
Hi Mans

I tidied the code a little whilst working out how the code works:

\define nexttag()
[list[Daylist]after[$(oldtag)$]][list[Daylist]first[]]+[first[]]
\end

\define swaptag(newtag)
<$setfield set="!!current" setTo="$newtag$">
<$mangletags find="$(oldtag)$" add="$newtag$" message="tw-set-field">
<$button message="tw-mangle-tags">Cycle Tags

\end

<$set name="oldtag" value={{!!current}}>
<$list filter=<> variable="getnexttag" >
<$macrocall $name="swaptag" newtag=<>/>



regards
 
On Tuesday, July 1, 2014 8:38:15 AM UTC+2, Måns wrote:
>
> Hi TwWizards
>
> I wonder if it is possible to create a button which will set and unset 
> tags from a predefined row of tags. I want to be able to cycle through 4 
> "stages": A, B, C and none of these three tags...
>
> Can I do this already? - or do I need a specialized Widget for it?
>
> Cheers Måns Mårtensson
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Lockfile feature for TW5

2014-07-03 Thread Stephan Hradek


Am Donnerstag, 3. Juli 2014 15:54:41 UTC+2 schrieb Jeremy Ruston:
>
> The trouble with trying to use a lockfile with TiddlyWiki is that we don't 
> have atomic file operations. 
>

Is renaming a file atomic? If so, we have at least one means which could 
work.

We need to define a lockfile which must exist in order to be able to get a 
lock. I'd do it like this:

my_lock= lockfilename + SomeRandomNumberOrProcessID
while not rename lockfilename to my_lock
if no more retries allowed -> Couldn't get lock
sleep a while
end while
Got the lock
do something
rename my_lock to lockfilename

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] The <$makelist> widget (for buttons)

2014-07-03 Thread Matabele
Hi

Nothing to do with the <$makelist> widget as such, but whilst updating the 
site at:  http://gwiz.tiddlyspot.com/, I found it convenient to create a 
'Save Snapshot' button which assists in creating the story layouts for the 
demos on the site, which may be of interest.

The 'Save Snapshot' button and the companion 'Show Snapshot' select box may 
be found in the 'Stories' tab of the sidebar. if you are interested in the 
code, the tiddler name for this tab is also 'Stories'.

regards

On Saturday, June 28, 2014 7:45:31 AM UTC+2, Matabele wrote:
>
> Hi
>
> I have updated my widgets to version 5.0.13-beta at: 
> http://gwiz.tiddlyspot.com/ -- everything appears to be working.
>
> I have added a new <$makelist> widget, which saves the output of a filter 
> expression to a text-reference as a space separated list. I wrote the 
> widget to save a current list of tiddlers for sorting, but the widget may 
> be used for other things.
>
> The example on the help page uses the widget to tag a tiddler with the 
> titles of all tiddlers with a specified tag. The Demo for the widget uses 
> the widget along with the new <$select> widget to open all tiddlers with a 
> chosen tag -- choose 'widget' as there aren't many other tags on the site 
> (for the purposes of the demo, the tiddlers open in a substory -- this is 
> easily changed to the main story river.)
>
> The Menu tiddler at http://gwiz.tiddlyspot.com/ is itself a usage example 
> -- here the <$makelist> widget is used to switch between various snapshots 
> of the main story river (click the SiteTitle to return to the menu.) 
> Instead of listing the tiddlers as a parameter, the widget could have been 
> used to save snapshots of the current story list to entries in a data 
> dictionary for later retrieval.
>
> Hope the new widget proves to be of some use.
>
> regards
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] CycleTags button in TW5?

2014-07-03 Thread Matabele
Hi cmari

A variable set with the <$set> widget must be called with the syntax 
$(variable)$.

A variable passed as a parameter to a macrocall must be called with the 
syntax $parameter$.

In your case you have set the value of the variable 'now' with a <$set> 
widget:

<$set name="now" value=[[!!current}}>

In the macro, therefore, the correct syntax is $(now)$

In this case, when calling the macro <> -- no parameter is passed 
with the call, and the (now) parameter of the macro definition is 
superfluous. The definition should read:

\define nexttag()
...

regards 

On Wednesday, July 2, 2014 1:50:16 AM UTC+2, cmari wrote:
>
> Thank you both, Måns and Stephan - that's a great improvement!  I think 
> I've said before that I don't understand why parentheses are needed in 
> situations like [$(now)$], but they are clearly required in this case 
> (omitting them causes the tag to switch to the item "before" rather than 
> "after"). 
> cmari
>
> On Tuesday, July 1, 2014 2:47:46 PM UTC-7, Måns wrote:
>>
>> Hi cmari and Stephan
>>
>> If I write:
>>
>> \define nexttag(now)
>> [list[Daylist]after[$(now)$]][list[Daylist]first[]]+[first[]]
>> \end
>>
>> seems to work fine :-)
>>
>> @cmari - Matabele's widgets: mangletags and setfield are very powerfull 
>> indeed - Nice to see how you make them work in this context!! :-)
>>
>> Cheers Måns mårtensson
>>
>> Den tirsdag den 1. juli 2014 18.42.51 UTC+2 skrev Stephan Hradek:
>>>
>>>
>>> First I think
>>>
>>> [list[Daylist]after[$(now)$]]
>>>
>>>
>>>
>>> should be
>>>
>>> [list[Daylist]after[$now$]]
>>>
>>>
>>>
>>> But I might be mistaken.
>>>
>>> Then I think this should help you go to the start:
>>>
>>> [list[Daylist]after[$now$]] [[list[Daylist]first[]] +[first[]]
>>>
>>>
>>>
>>> At least I hope.
>>>
>>> This would add the first element of Daylist after your "next" element.
>>> [[list[Daylist]first[]]
>>>
>>>
>>>
>>> So if you have a "next" element, you will now have 2 elements. If there 
>>> was no "next" element, you will just have the first of the daylist.
>>>
>>> This then will limit the result to the first element
>>> +[first[]]
>>>
>>>
>>>
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] - relativedate

2014-07-03 Thread Michael
I know that much of the functionality of dates and calendars is still in 
the making and will be added in later releases!

I just wondered whether it is already possible to customise the 
'relativedate' format of the view widget: Two things would be great:

1) To be able to modify the timezone offset (as in the date format)
2) to be able to change the outputs (e.g. 'tomorrow' instead of 'in 17 
hours')

Is that already possible? I am no programmer and do all of my customisation 
of TW by tweaking, breaking and fixing existing examples.

Thanks for your help,
Michael

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Lockfile feature for TW5

2014-07-03 Thread Jeremy Ruston
The trouble with trying to use a lockfile with TiddlyWiki is that we don't
have atomic file operations. That means that the basic operation of
acquiring the lock is intrinsically unreliable, which means that it's
unlikely to be supported by the core.

There has been some work on running Node.js apps in locked-down
environments:

https://github.com/crazy-max/nodejs-portable

Best wishes

Jeremy.




On Tue, Jul 1, 2014 at 3:43 PM, Al Stan  wrote:

> I suppose this is something that has been asked before but I couldn't find
> an answer even though I tried for a couple of hours:
>
> I have been using TW-Classic for a small group of people (5-10) as a tool
> for a project - mainly for documentation and information purposes. In order
> to prevent people from overwriting each other's work when editing
> simultaneously, I've used the lockfile plugin. It's not perfect, but it
> worked.
>
> Now I want to create a new TW using TW5. I need to use the stand-alone
> version of TW5 without node.js since we use a closed system where we cannot
> install anything.
>
> However, I can't find any equivalent to the TW-Classic lockfile plugin.
>
> Does that mean there isn't any? If so, why? Is there any workaround that I
> can use given our restrictions?
>
> Thank you all!
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW 5.0.13 File Size & Proformance

2014-07-03 Thread Michael
Deleting HistoryList brought the file size down from 9.8 MB to 7.5 MB. 
Deleting 4 PDFs that I dumped in and forgot about  brought me down to 5.3 
MB.The empty 5.1.13 is 915 KB. I wonder whether the delta all comes from my 
708 tiddlers, or whether there are other goodies like HistoryList that blow 
up file size?

Cheers,
Michael

On Thursday, July 3, 2014 3:18:30 PM UTC+2, Michael wrote:
>
> Would it be a good idea to have a way to 'estimate the size of individual 
> tiddlers' (knowing that we are talking about one file here!)? Get somehow 
> an indication which particular portions of your TW contribute most to file 
> size?
>
> I use TW5 as a project management tool. It has currently about 10MB (708 
> tiddlers excluding shadows and tiddlers, only two small pictures). It 
> starts to get sluggish on my older notebook, and on my iPad 3 it takes 
> about 20 secs to load and about 10 secs to save a tiddler. I toyed with the 
> idea of using an encrypted TW for a personal diary including photos, but my 
> iPad doesn't take that.
>
> I had no idea about this HistoryList tiddler and will hurry to delete it!
>
> Cheers,
> Michael
>
> On Wednesday, June 25, 2014 5:24:25 AM UTC+2, Chemaster wrote:
>>
>> I have a Tiddly Wiki 5.0.13 file that has 101 Tiddliers and is 3.7 meg in 
>> size encrypted. Of coarse the blank size was around point .8 meg or so.  I 
>> currently have a few images embed within the program but will cut back more 
>> and more if possible. I am not using any addon's will have no plans of 
>> using any.
>>
>> The file will be used locally on a hard drive but I plan on expanding it 
>> to around 500 - 1000 Tiddliers' total.
>>
>> Currently there are no proformance issues but given this situation should 
>> I expect some later on? Should I do certain now in advance to prevent 
>> issues?
>>
>> Thanks,
>>
>> Chemaster
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] GettingStarted tiddler is zealous at startup

2014-07-03 Thread Jeremy Ruston
Hi Clément

GettingStarted is included in the shadow $:/DefaultTiddlers. It shouldn't
appear if you edit $:/DefaultTiddlers to remove it.

Does the GettingStarted tiddler disappear if you click "close all" in the
sidebar? If it does, it sounds like you've saved the wiki incorrectly. In
particular, don't use Firefox's File/Save menu item to save the empty wiki.

Best wishes

Jeremy



On Tue, Jul 1, 2014 at 5:01 PM, Clément Aymé  wrote:

> Hi TiddlyFellows...
>
> TiddlyWiki version: 5.0.13-beta
>
> Don't you know how to get rid of the GettingStarted tiddler displayed at
> startup
> even after using the "cop" setting and remove it from the Default tiddler
> in the Basic tab (and saved).
> It seems that this does not work as expect...
> Someone get same issue ?
> 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 http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: TW 5.0.13 File Size & Proformance

2014-07-03 Thread Jeremy Ruston
For 5.0.14 I've adjusted things so that the $:/HistoryList tiddler isn't
included when the wiki is saved. This should avoid it getting too large.

https://github.com/Jermolene/TiddlyWiki5/commit/3ff7462afd5414b92680c6b6e67274be79233224

Best wishes

Jeremy



On Thu, Jul 3, 2014 at 2:18 PM, Michael 
wrote:

> Would it be a good idea to have a way to 'estimate the size of individual
> tiddlers' (knowing that we are talking about one file here!)? Get somehow
> an indication which particular portions of your TW contribute most to file
> size?
>
> I use TW5 as a project management tool. It has currently about 10MB (708
> tiddlers excluding shadows and tiddlers, only two small pictures). It
> starts to get sluggish on my older notebook, and on my iPad 3 it takes
> about 20 secs to load and about 10 secs to save a tiddler. I toyed with the
> idea of using an encrypted TW for a personal diary including photos, but my
> iPad doesn't take that.
>
> I had no idea about this HistoryList tiddler and will hurry to delete it!
>
> Cheers,
> Michael
>
>
> On Wednesday, June 25, 2014 5:24:25 AM UTC+2, Chemaster wrote:
>
>> I have a Tiddly Wiki 5.0.13 file that has 101 Tiddliers and is 3.7 meg in
>> size encrypted. Of coarse the blank size was around point .8 meg or so.  I
>> currently have a few images embed within the program but will cut back more
>> and more if possible. I am not using any addon's will have no plans of
>> using any.
>>
>> The file will be used locally on a hard drive but I plan on expanding it
>> to around 500 - 1000 Tiddliers' total.
>>
>> Currently there are no proformance issues but given this situation should
>> I expect some later on? Should I do certain now in advance to prevent
>> issues?
>>
>> Thanks,
>>
>> Chemaster
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW 5.0.13 File Size & Proformance

2014-07-03 Thread Michael
Would it be a good idea to have a way to 'estimate the size of individual 
tiddlers' (knowing that we are talking about one file here!)? Get somehow 
an indication which particular portions of your TW contribute most to file 
size?

I use TW5 as a project management tool. It has currently about 10MB (708 
tiddlers excluding shadows and tiddlers, only two small pictures). It 
starts to get sluggish on my older notebook, and on my iPad 3 it takes 
about 20 secs to load and about 10 secs to save a tiddler. I toyed with the 
idea of using an encrypted TW for a personal diary including photos, but my 
iPad doesn't take that.

I had no idea about this HistoryList tiddler and will hurry to delete it!

Cheers,
Michael

On Wednesday, June 25, 2014 5:24:25 AM UTC+2, Chemaster wrote:
>
> I have a Tiddly Wiki 5.0.13 file that has 101 Tiddliers and is 3.7 meg in 
> size encrypted. Of coarse the blank size was around point .8 meg or so.  I 
> currently have a few images embed within the program but will cut back more 
> and more if possible. I am not using any addon's will have no plans of 
> using any.
>
> The file will be used locally on a hard drive but I plan on expanding it 
> to around 500 - 1000 Tiddliers' total.
>
> Currently there are no proformance issues but given this situation should 
> I expect some later on? Should I do certain now in advance to prevent 
> issues?
>
> Thanks,
>
> Chemaster
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Trouble viewing TW on Android Device

2014-07-03 Thread Danielo Rodríguez
You don't need any extension to display TW5, just to save it.

In my android phone it is displayed correctly. My file is about 6MB. Let's 
break this down. Try with an empty TW5, and let us know if it is displayed 
properly.

El jueves, 3 de julio de 2014 12:14:02 UTC+2, Måns escribió:
>
> Hi Jon
>
> My largest TW5's are about 4Mb...
>
> Try Firefox and install the tiddlyfox extension (google tiddlyfox in 
> Firefox and install it from the page)..
>
> Maybe Firefox will work fine on your phone.
>
> Cheers Måns Mårtensson
>
> Den torsdag den 3. juli 2014 07.49.59 UTC+2 skrev Jon:
>>
>> Hi Mans,
>> I just tried downloading this app to my phone but it won't open my wiki 
>> after appearing to load - just ends with blank screen. My wiki has grown to 
>> 8Mb recently (from pictures) and I wonder if that's the reason. How large 
>> is your file?
>> Thanks, Jon.
>>
>> On Wednesday, 2 July 2014 21:52:06 UTC+1, Måns wrote:
>>>
>>> Hi justaguy168
>>>
>>> I used to use Firefox with the tiddlyfox extension or the (free) 
>>> Andtidwiki app for Android.
>>> Now I've choosen to pay for the Andtidwiki+ app (Andtidwiki without 
>>> advertisments) because it's the better choice for my Chinese tablet and LG 
>>> phone..
>>> For some reason the app is both faster and better at rendering 
>>> TiddlyWiki than Firefox on my devices..
>>>
>>> Cheers Måns Mårtensson
>>>
>>> Den onsdag den 2. juli 2014 20.02.11 UTC+2 skrev justaguy168:

 I have created my first TW and jumped into v5.  I want to type my notes 
 on my desktop computer and view them on my Android device.  I transferred 
 the file to file:///storage/sdcard0/Documents/FileName.htm (no spaces 
 or special chars) and the page does not properly display or display at 
 all.  On the internal browser I just get a list of tiddlers.  When using 
 the Chrome browser, I get the message "Access to fie file was denied.  The 
 file at file:///storage/sdcard0/Documents/FileName.htm is not 
 readable.  It may have been removed, moved, or file permissions may be 
 preventing access.  Error code:  ERR_ACCESS_DENIED.  

 It seems to me like this is basic functionality.  Do others use TW5 in 
 this way?  If so how?  If not do they use TWc to view on Android?

 I have a Verizon / Galaxy S4 running Android version 4.2.2 Chrome 
 version 34.0.1916.141.

 I have tried to internet search this to no avail.  Please advise or 
 tell me where to RTFM. 

 Thank you in advance.




-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Trouble viewing TW on Android Device

2014-07-03 Thread Måns
Hi Jon

My largest TW5's are about 4Mb...

Try Firefox and install the tiddlyfox extension (google tiddlyfox in 
Firefox and install it from the page)..

Maybe Firefox will work fine on your phone.

Cheers Måns Mårtensson

Den torsdag den 3. juli 2014 07.49.59 UTC+2 skrev Jon:
>
> Hi Mans,
> I just tried downloading this app to my phone but it won't open my wiki 
> after appearing to load - just ends with blank screen. My wiki has grown to 
> 8Mb recently (from pictures) and I wonder if that's the reason. How large 
> is your file?
> Thanks, Jon.
>
> On Wednesday, 2 July 2014 21:52:06 UTC+1, Måns wrote:
>>
>> Hi justaguy168
>>
>> I used to use Firefox with the tiddlyfox extension or the (free) 
>> Andtidwiki app for Android.
>> Now I've choosen to pay for the Andtidwiki+ app (Andtidwiki without 
>> advertisments) because it's the better choice for my Chinese tablet and LG 
>> phone..
>> For some reason the app is both faster and better at rendering TiddlyWiki 
>> than Firefox on my devices..
>>
>> Cheers Måns Mårtensson
>>
>> Den onsdag den 2. juli 2014 20.02.11 UTC+2 skrev justaguy168:
>>>
>>> I have created my first TW and jumped into v5.  I want to type my notes 
>>> on my desktop computer and view them on my Android device.  I transferred 
>>> the file to file:///storage/sdcard0/Documents/FileName.htm (no spaces 
>>> or special chars) and the page does not properly display or display at 
>>> all.  On the internal browser I just get a list of tiddlers.  When using 
>>> the Chrome browser, I get the message "Access to fie file was denied.  The 
>>> file at file:///storage/sdcard0/Documents/FileName.htm is not 
>>> readable.  It may have been removed, moved, or file permissions may be 
>>> preventing access.  Error code:  ERR_ACCESS_DENIED.  
>>>
>>> It seems to me like this is basic functionality.  Do others use TW5 in 
>>> this way?  If so how?  If not do they use TWc to view on Android?
>>>
>>> I have a Verizon / Galaxy S4 running Android version 4.2.2 Chrome 
>>> version 34.0.1916.141.
>>>
>>> I have tried to internet search this to no avail.  Please advise or tell 
>>> me where to RTFM. 
>>>
>>> Thank you in advance.
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] Editing transcluded fields - results in refresh pr. digit and loss of focus...

2014-07-03 Thread Måns
Hi Stephan

If possible, try to have the edit field in another tiddler than the field 
> you're editing. 
>

This did the trick for me!

http://xn--mns-ula.dk/1314/udtalelser.html#%24%3A%2FUdtalelser%2FFooter:%24%3A%2FUdtalelser%2FFooter%20%24%3A%2FUdtalelser%2FFooter%2FForstander

Thank you very much :-)

Cheers Måns Mårtensson 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 latex with the MathJax Plugin

2014-07-03 Thread james smith
great !

Am Donnerstag, 3. Juli 2014 09:36:49 UTC+2 schrieb ben:
>
> http://mathjax-tw5.kantorsite.net/
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 latex with the MathJax Plugin

2014-07-03 Thread ben
http://mathjax-tw5.kantorsite.net/

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.