Re: [tw] Re: Anyway to improve the speed of TW5?

2014-04-03 Thread Jimmy Liew
Thanks Jeremy,

One question, would it be possible to temporary disable the "Show Preview" 
feature in the "New Tiddler" screen?  I think the refresh is for the 
instant preview feature right?


Regards,
Jim

On Friday, 4 April 2014 01:08:00 UTC+8, Jeremy Ruston wrote:
>
> Hi Jimmy
>
> There are indeed performance issues with TW5 that I am addressing at the 
> moment.
>
> The underlying issue is that the "refresh mechanism" is a bit suboptimal 
> in the way that it processes filters, to the extent that filter processing 
> can comprise 80% of the refresh cycle time.
>
> BJ's plugin works by deferring the expensive refresh cycle so that it 
> doesn't occur on every keypress. Adding a variant of that mechanism is the 
> "get out of jail card" for these performance issues: we know from BJ's work 
> that it is possible to avoid running the refresh cycle on every keypress.
>
>
> Best wishes
>
> Jeremy.
>
>
>
>
> On Thu, Apr 3, 2014 at 4:34 PM, Jimmy Liew 
> > wrote:
>
>> Hi all,
>> I really appreciated for all the prompt response.   This google group is 
>> cool. :)
>> PMario, any idea when is the upcoming release for TW5?
>>
>>
>> On Thursday, 3 April 2014 11:55:25 UTC+8, Mal wrote:
>>>
>>> You might find this 
>>> discussionuseful.
>>>
>>> It might be a good idea to try to make sure you don't have a long list 
>>> of tiddlers displayed in the sidebar.  Certain selections on the "More" tab 
>>> seem to cause some of the delays during refresh.  Selecting the "Open" tab 
>>> might be a good option.
>>>
>>> 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+...@googlegroups.com .
>> To post to this group, send email to tiddl...@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...@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] Nested sliders Plugin: Can Sliders within Sliders be transient?

2014-04-03 Thread Jan Johannpeter

Hello,
It appears to me that sliders within sliders don't close if you click 
elsewhere, no matter whether they are marked transient with the 
indicated parameter (*).

Is there a workaround for this problem?

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


Re: [tw] Re: TW5 - Way to change formatting of a link to a tiddler based on a tag that tiddler has?

2014-04-03 Thread Matthew Petty
That's very useful, thank you!


On Mon, Mar 31, 2014 at 11:21 PM, Stephan Hradek
wrote:

> Almost possible.
>
> Create a tiddler called (e.g.) "tasklink" with this content (as an example)
>
> <$list filter="[is[current]tag[done]]">
> 
> <$link><$view field="title"/>
> 
> 
> <$list filter="[is[current]tag[task]!tag[done]]">
> 
> <$link><$view field="title"/>
> 
> 
>
> Then, instead of writing [[mytask]], write {{mytask||tasklink}}
>
> Hope this helps.
>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/QAdf2MBUpJo/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
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] Any way to disable "You have unsaved changes in TiddlyWiki" message?

2014-04-03 Thread Jason Hanford-Smith
Here's my scenario:

I'm using 5.0.8-beta as a help system to be run from an internal web 
server. I use Tiddly Desktop to create the content and then copy the 
updated html file to the server.

The problem:

Whenever a user views the "site" and then tries to close the browser 
window, they get the "You have unsaved changes in TiddlyWiki". This happens 
even if they close it after just opening it. It also happens in all the 
desktop browsers we're using (IE, Chrome, Firefox).

The users will never make changes to the content and so I don't need any 
automatic saving capability, but I also don't want this popup.

Is there a configuration setting I can make to disable this?

Thanks,

--Jason

-- 
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] MathJax plugin for TW5 (unofficial)

2014-04-03 Thread Martin Kantor
Hi
I have created unofficial plugin for TiddlyWiki 5 which allows you use 
MathJax in tiddlers. It's still very experimental so backup your data 
before installation!

I want also note that plugin uses MathJax CDN so you will need internet 
connection or you must download mathjax to your local folder.

Plugin is unofficial because it doesn't follow general policy of 
TiddlyWiki. In the future there will be probably better ways how work with 
math in TW5.

More information about support of Math and MathJax in TiddlyWiki5:
https://groups.google.com/d/msg/tiddlywiki/4sUoAxHXeAc/fAq23m3FanAJ
https://www.youtube.com/watch?feature=player_detailpage&v=SX0jvQ0vYVk#t=5049
http://www.youtube.com/watch?feature=player_detailpage&v=o70TtNIe-L4#t=5143
http://www.youtube.com/watch?feature=player_detailpage&v=umV13nEJZBk#t=1365

Plugin website and download: http://mathjax-tw5.kantorsite.net/
MathJax CDN 
ToS: http://www.mathjax.org/download/mathjax-cdn-terms-of-service/

I can't promise future development but don't hesitate to send me your 
feedback :)

Thanks, Martin Kantor

-- 
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] poor man's tag cloud

2014-04-03 Thread UBi
Hallo Stephan,

I'm a bit late, but: thanks! It works! At least with counts up to 9 :-)

The missing parts for a real tag cloud implementation are AFAICS:
1) get min and max count over all tags (minCnt, maxCnt)
2) fit each count (cnt) into a corresponding font size range (minFontsize, 
maxFontsize):
fontSize = minFontsize + (cnt – minCount) * (maxFontsize – minFontsize) / 
(maxCount - minCount)

So much for the theory. Implementation is left as an exercise for the 
reader :-)

Uwe

Am Dienstag, 1. April 2014 16:20:45 UTC+2 schrieb Stephan Hradek:
>
> I just created a "count" filter which WOULD help with this, but your idea 
> is not well thought through. Imagine I have a 3 counts: 1, 10 and 100. The 
> resulting sizes would be: "1.1em", "1.10em" and "1.100em". Would you be 
> able to tell the difference? ;)
>
> For completeness sake, this is the source of my count filter:
>
> /*\
> title: $:/core/modules/filters/count.js
> type: application/javascript
> module-type: filteroperator
>
> Filter operator that gives the counts the current list's members
>
> \*/
> (function(){
>
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
>
> /*
> Export our filter function
> */
> exports.count = function(source,operator,options) {
> // count the source if it's not an array
> var count = 0;
> if(!$tw.utils.isArray(source)) {
> $tw.utils.each(source,function(element,title) {
> ++count;
> });
> return [ "" + count ];
> }
> // return array's length
> return [ "" + source.length ];
> };
>
> })();
>
>
>
> used like this (using your request)
>
> \define mySize()
> "font-size:$(cnt)$em"
> \end
>
> <$list filter="[tags[]!is[system]sort[title]]">
>   <$set name="title" value={{!!title}}>
> <$list filter="[is[current]tagging[]count[]]">
>   <$set name="cnt" value={{!!title}}>
> >>
>   <$tiddler tiddler=<>>
> <$transclude tiddler="$:/core/ui/TagTemplate"/>
>   
> 
>   
> 
>   
> 
>
>
>
> I'm not sure yet, whether to make it a plugin. Comments welcome.
>
>
>

-- 
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] TW5 <$edit field="title"/> results in new tiddlers

2014-04-03 Thread Jeremy Ruston
Hi Danielo

The edit widget works by rewriting the current tiddler with the new field
value at every keypress. The effect of rewriting it with a different title
will be to leave the tiddler with the old title intact, hence the
proliferation of tiddlers that you're seeing. We should probably detect
attempts to edit the title field and prevent it.

Rather than editing the title field directly, the approach TiddlyWiki uses
is to edit the "draft.of" field of draft tiddlers, and then have the
"tw-save-tiddler" message in the navigator widget save the tiddler under
that title. You can see how it's done in the core edit template.

Best wishes

Jeremy





On Wed, Apr 2, 2014 at 9:42 PM, Danielo Rodríguez wrote:

> Hello everyone,
>
> I don't sure about this, but I think this has been working before.
> Currently using this <$edit field="title"/> results in a new tiddler every
> key stroke.
> I'm not doing this for the tiddler where it is but for a different one.
> I have this tiddler:
>
> edit
> <$edit field="title"/><$edit field="user"/> <$edit
> field="grupo"/> <$edit field="rol"/> 
>
> Which I use in this way
>
> {{tiddlerToEdit||edit}}
>
> How can I avoid this horrible behavior?
> Thanks 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.
>



-- 
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: Anyway to improve the speed of TW5?

2014-04-03 Thread Jeremy Ruston
Hi Jimmy

There are indeed performance issues with TW5 that I am addressing at the
moment.

The underlying issue is that the "refresh mechanism" is a bit suboptimal in
the way that it processes filters, to the extent that filter processing can
comprise 80% of the refresh cycle time.

BJ's plugin works by deferring the expensive refresh cycle so that it
doesn't occur on every keypress. Adding a variant of that mechanism is the
"get out of jail card" for these performance issues: we know from BJ's work
that it is possible to avoid running the refresh cycle on every keypress.


Best wishes

Jeremy.




On Thu, Apr 3, 2014 at 4:34 PM, Jimmy Liew  wrote:

> Hi all,
> I really appreciated for all the prompt response.   This google group is
> cool. :)
> PMario, any idea when is the upcoming release for TW5?
>
>
> On Thursday, 3 April 2014 11:55:25 UTC+8, Mal wrote:
>>
>> You might find this 
>> discussionuseful.
>>
>> It might be a good idea to try to make sure you don't have a long list of
>> tiddlers displayed in the sidebar.  Certain selections on the "More" tab
>> seem to cause some of the delays during refresh.  Selecting the "Open" tab
>> might be a good option.
>>
>> 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 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: Anyway to improve the speed of TW5?

2014-04-03 Thread Jimmy Liew
Hi all,
I really appreciated for all the prompt response.   This google group is 
cool. :)
PMario, any idea when is the upcoming release for TW5?


On Thursday, 3 April 2014 11:55:25 UTC+8, Mal wrote:
>
> You might find this 
> discussionuseful.
>
> It might be a good idea to try to make sure you don't have a long list of 
> tiddlers displayed in the sidebar.  Certain selections on the "More" tab 
> seem to cause some of the delays during refresh.  Selecting the "Open" tab 
> might be a good option.
>
> 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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Anyway to improve the speed of TW5?

2014-04-03 Thread Matabele
Hi

This is also evident if text is being edited in larger tiddlers, or if more 
than one tiddler is open for editing at any one time. When moving content 
across from TWC, I had to break larger tiddlers into multiple sections (a 
couple of screens each) to get adequate performance.

regards

On Thursday, April 3, 2014 4:28:07 AM UTC+2, Jimmy Liew wrote:
>
> Hi All,
> TW5 is slow, some time lagging, when typing and creating new tiddler.  
> Comparing with TWC, it is fast and the response is fantastic.
>
> Does any scripts running behind it when we typing or creating a new 
> tiddler?
>
> Is there anyway to improve it?
>
> Kindly advise.
>

-- 
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: Anyway to improve the speed of TW5?

2014-04-03 Thread Jimmy Liew
I really appreciated for all the prompt response.   This google group is
cool. :)
PMario, any idea when is the upcoming release for TW5?

--
Best Regards,
Jimmy Liew


On Thu, Apr 3, 2014 at 5:33 PM, PMario  wrote:

> On Thursday, April 3, 2014 4:28:07 AM UTC+2, Jimmy Liew wrote:
>>
>> Does any scripts running behind it when we typing or creating a new
>> tiddler?
>>
>
> As BJ pointed out, if your right sidebar contains a "short" list, the
> update will be faster. ... TW5 refreshes the whole display with every
> keystroke. So the whole sidebar will be handled too. ...
>
> For the upcoming release, Jeremy added some performance measurement
> features. ... So I think he is already dealing with the issue. I also hope
> he finds something :)
>
> have fun!
> -mario
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/0LIL2f0OyLI/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
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: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread Ulrik Stervbo
It does - like a charm!

Thanks

On Thursday, 3 April 2014 17:11:06 UTC+2, cmari wrote:
>
> Does it work like this?  (note that the field name can't actually contain 
> uppercase letters).
>
> [tag{!!ATag}]
>
> cmari
>
> On Thursday, April 3, 2014 7:00:05 AM UTC-7, Ulrik Stervbo wrote:
>>
>> Thanks - sorry I wasn't clear, I wanted to use the value defined in a 
>> field to dynamically generate a list of tiddlers containing that tag.
>>
>>
>> On Thursday, 3 April 2014 14:57:31 UTC+2, Stephan Hradek wrote:
>>>
>>>
>>>
>>> Am Donnerstag, 3. April 2014 14:17:17 UTC+2 schrieb Ulrik Stervbo:

 Is there a way to do a similar thing with filters? tag[{{!!ATag}}] does 
 not work.

>>>
>>> tag{!!ATag}
>>>
>>>
>>>

-- 
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] [TW5] Porting TiddlyWikiFX (TiddlyWiki into a JavaFX application) to use TiddlyWiki 5

2014-04-03 Thread Jeremy Ruston
Hi Bertrand

> I just tried a very quick implementation (I injected JavaScript code for
DeviceInfo, LocalFileSystem, window.requestFileSystem, etc.), and I was
able to save using TWEdit saver!

That's great, glad it's working. I've created a ticket for refactoring the
TWEdit saver into a generic saver:

https://github.com/Jermolene/TiddlyWiki5/issues/530

Best wishes

Jeremy



On Wed, Apr 2, 2014 at 12:37 PM, Bertrand Goetzmann <
bertrand.goetzm...@gmail.com> wrote:

> Hi Jeremy,
>
> I just tried a very quick implementation (I injected JavaScript code for
> DeviceInfo, LocalFileSystem, window.requestFileSystem, etc.), and I was
> able to save using TWEdit saver!
> When the saver calls writer.write(text) I execute Groovy code to do the
> saving.
>
> Cheers,
>
> Bertrand.
>
> Le samedi 29 mars 2014 17:19:01 UTC+1, Jeremy Ruston a écrit :
>>
>> Hi Bertrand
>>
>> The saving process starts with syncer.saveWiki() here:
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/
>> modules/syncer.js#L126
>>
>> The individual savers are here:
>>
>> https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/savers
>>
>> The basic strategy is that saver modules have a numeric priority and
>> either or both of the capabilities "save" and "download". The saveWiki()
>> function looks for the highest priority saver that can handle a request.
>>
>> My suggestion is that you shouldn't need to write your own saver, but
>> begin by piggy-backing on the existing TWEdit saver (ie, injecting the JS
>> functions that it requires), and then we can work to recast TWEdit.js as a
>> generic saver for environments that support requestFileSystem.
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Mar 28, 2014 at 12:49 PM, Bertrand Goetzmann <
>> bertrand@gmail.com> wrote:
>>
>>> Hello Jeremy,
>>>
>>> Can you tell me how the saver is selected and in what part of the source
>>> code?
>>>
>>>
>>> Thanks,
>>>
>>> Cheers,
>>>
>>> Bertrand.
>>>
>>> Le jeudi 27 mars 2014 12:16:54 UTC+1, Jeremy Ruston a écrit :
>>>
 Hi Bertrand

 That's great, congratulations, and thank you for the detailed write-up
 at https://bitbucket.org/bgoetzmann/tiddlywiki-fx/wiki/Home

 Have you seen TiddlyDesktop? It works in a similar way to TiddlyWikiFX,
 embedding a web view containing a TiddlyWiki in a desktop application. To
 the TiddlyWiki files that it displays it presents the same interface as
 TiddlyFox.

 TiddlyDesktop: https://github.com/Jermolene/TiddlyDesktop
 TiddlyFox: https://github.com/TiddlyWiki/TiddlyFox

 In the case of TiddlyWikiFX, though, I think a different approach may
 be better. The goal would be to have TiddlyWikiFX re-use one of the savers
 included in the core:

 https://github.com/Jermolene/TiddlyWiki5/tree/master/core/mo
 dules/savers

 The best candidate might be the saver for the TWEdit iOS app:

 https://github.com/Jermolene/TiddlyWiki5/blob/master/core/mo
 dules/savers/twedit.js

 It looks like you could inject skeleton JavaScript implementations of
 DeviceInfo, window.requestFileSystem etc. that shell out to Java methods.

 The requestFileSystem interface is actually a semi-standard:

 https://developer.mozilla.org/en-US/docs/Web/API/LocalFileSystem

 The test for DeviceInfo is a hangover from PhoneGap. If this approach
 works we could refactor this saver into a general LocalFileSystem saver,
 and add a new check that can detect TiddlyWikiFX.

 Best wishes

 Jeremy





 On Wed, Mar 26, 2014 at 11:11 PM, Bertrand Goetzmann <
 bertrand@gmail.com> wrote:

> Hello,
>
> I created a project named 
> TiddlyWikiFX;
> all is in the name: it's a JavaFX application using a WebView component
> that contains a TiddlyWiki *classic *page. The benefit is to have a
> more integrated solution whereby you can have more control on content, 
> e.g.
> the way content is loaded or saved. I was able to do load and save
> operations using Java/Groovy code called from JavaScript added on the page
> and using existing JavaScript functions in the TiddlyWiki page.
> Now I would like to port my application to use the new TiddlyWiki
> version.
>
> Any suggestion or hint on the way I can use the JavaScript functions
> in the new version? Ideally, I don't want to modify anything in 
> TiddlyWiki,
> but just add or override some JavaScript functions.
>
>
> Cheers,
>
> Bertrand
>
> --
> 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+...@googlegroups.com.
> To post to this group, send email to tiddl...@googlegroups.com.
>
>

[tw] Re: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread cmari
Does it work like this?  (note that the field name can't actually contain 
uppercase letters).

[tag{!!ATag}]

cmari

On Thursday, April 3, 2014 7:00:05 AM UTC-7, Ulrik Stervbo wrote:
>
> Thanks - sorry I wasn't clear, I wanted to use the value defined in a 
> field to dynamically generate a list of tiddlers containing that tag.
>
>
> On Thursday, 3 April 2014 14:57:31 UTC+2, Stephan Hradek wrote:
>>
>>
>>
>> Am Donnerstag, 3. April 2014 14:17:17 UTC+2 schrieb Ulrik Stervbo:
>>>
>>> Is there a way to do a similar thing with filters? tag[{{!!ATag}}] does 
>>> not work.
>>>
>>
>> tag{!!ATag}
>>
>>
>>

-- 
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: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread Ulrik Stervbo
Thanks - sorry I wasn't clear, I wanted to use the value defined in a field 
to dynamically generate a list of tiddlers containing that tag.


On Thursday, 3 April 2014 14:57:31 UTC+2, Stephan Hradek wrote:
>
>
>
> Am Donnerstag, 3. April 2014 14:17:17 UTC+2 schrieb Ulrik Stervbo:
>>
>> Is there a way to do a similar thing with filters? tag[{{!!ATag}}] does 
>> not work.
>>
>
> tag{!!ATag}
>
>
>

-- 
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: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-03 Thread Yakov
Hello Albert,

четверг, 3 апреля 2014 г., 12:03:22 UTC+4 пользователь Albert Riedinger 
написал:
>
> Hi Yakov,
>
> Thank you, I'm glad you like it.
> Initially this plugin was an experiment, but I also think that it has more 
> potential. I'm a novice in JavaScript and especially in RegExp so it's hard 
> for me to achieve progress. But it's fun and I'll try my best :)
>
> Unfortunately At.js doesn't support unicode (and won't in near future), so 
> now I try to work around this issue without using more dependencies like 
> XRegExp library. I'm german so support for diacritics (like äöü) is 
> critical for me. I already tested some solutions and it worked more or 
> less, but I had no time to implement it yet. Does it work for you using 
> kyrillic characters (if you use any at all)?
>
> Not sure what do you mean here by "doesn't support". I've tried to type 
tiddler names starting from cyrillics ([[До) and got the proper 
suggestions; I've even created a tiddler which name starts from ASCII 
letters and contain cyrillics (New Tiddler Ъ) and if I type [[Ъ or even [[ъ(not 
capital letter), I get the right suggestion listed. What exactly 
didn't work for you?

By the way, I've noticed that I have to click the "autosuggest off" button 
twice to make it switch to "on", this is a small bug, I'd say. Not sure 
what's the cause.
Also, I'd either omit the hideReadOnly param (to keep the code clean) or 
set it to true (no reason for a guest to get the suggestions for editing as 
he or she won't be any editing anyway). By the way, in TiddlySpace, the 
"view instead of edit" mode for guests doesn't allow to type any letters, 
so this doesn't work as demo. If you'd like to show some demo directly in 
the space, you have to manually create a tiddler with some ... 
containing a textarea where a guest can type and (s)he gets the suggestions.
 

> Implementing support for pretty links should be my next challenge. As I 
> said, I'm new to all of this and it's kind of complicated to write a RegExp 
> for such a case. Maybe you have some ideas[1]? Matching "[[..." is easy, 
> but I don't really know how to match simultaneously this: "[[some text|...".
>

Well, the easiest RegExp the matches [[some text| would probably be 
/\[\[[^\|\]]+?\|/, but I'm not sure how this should be passed to .. is it 
.atwho method that sets the autoSuggestions?

>
> Making space symbol after suffix ("]]") an option should be easy. I will 
> implement this right now and release it on tiddlyspace soon.
>
> I'll add a couple of ideas just see some perspectives. One this is 
replacing html-entities (special symbols) with actual symbols like this:
* let's imagine I'd like to add a left-to-right arrow (→)
* I start to type &r
* I get a "→" suggestion -- *not* "→"
* I chose it and get much clearer wiki-code, without that unreadable 
"→" stuff
Though, I don't know if there's an interface to get a list of all these 
"abbriviations" (rarr, larr, uarr, darr, harr, times, bull, 
...) and an interface to get there unicode equivalent.
Also, "--" -> &nash;/— could be processed in this manner.

A similar thing can be used with MathJax plugin to turn \rho to ρ etc. 
(though, just autoreplacing can be done instead of autosuggesting 
replacement, but autosuggesting seems to be more flexible)

Another possible application is to combine this with CodeMirror for 
TiddlyWiki (see [1] for the latest release and discussion). This can be 
another huge step in turning TW into a dev environment. Fortunately, Mario 
is here and probably can comment this somehow.

Finally, autoSuggestions can be used in the tags line which seems to be 
more beatiful and faster than Udo's interface [2] (although, Udo's solution 
implements some smart algorithm for ranging suggestions).
 

> Spasiba Yakov for your interest and your suggestions!
>
> You are welcome (it's acually "spasibo" ;)

Best regards,
Yakov.

[1] https://groups.google.com/forum/#!topic/tiddlywiki/KRnQvzazULE
[2] http://tiddlywiki.abego-software.de/#IntelliTaggerPlugin
 

> Albert
>
> [1] see matcher function of At.js > 
> https://github.com/ichord/At.js/blob/master/dist/js/jquery.atwho.js#L616
>
>
> 2014-04-02 17:39 GMT+02:00 Yakov >:
>
>> Wow, Albert,
>>
>> great stuff! Do you plan to implement suggestions for the [[some text|syntax 
>> (to complete it to [[some 
>> text|target tiddler]])? Also, it would be nice if adding the space 
>> symbol after ]] is optional.
>>
>> This approach surely have potential for different applications, thanks 
>> for that.
>>
>> Best regards,
>> Yakov.
>>
>> среда, 26 марта 2014 г., 20:52:02 UTC+4 пользователь Albert Riedinger 
>> написал:
>>
>>> Hi all,
>>>
>>> a few days ago Ramnath requested[1] a tiddler link suggestion feature in 
>>> edit mode, so I wrote a quick-and-dirty commands plugin[2] for the good old 
>>> TWC. It is just an implementation of At.js[3], which allows word 
>>> suggestions in textareas. After activating this feature with the toolbar 
>>> command, 

[tw] Re: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread Stephan Hradek


Am Donnerstag, 3. April 2014 14:17:17 UTC+2 schrieb Ulrik Stervbo:
>
> Is there a way to do a similar thing with filters? tag[{{!!ATag}}] does 
> not work.
>

tag{!!ATag}


-- 
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: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread Ulrik Stervbo
Is there a way to do a similar thing with filters? tag[{{!!ATag}}] does not 
work.

Cheers
Ulrik

On Thursday, 3 April 2014 09:45:49 UTC+2, Stephan Hradek wrote:
>
> I think I do not completely understand. Let's try anyway:
>
> If you want "param" to get the value from, for example, the description 
> field, use param={{!!description}}. If you need to add some static values, 
> you need to use macros and use something like param=< parameters>>.
>
> If you want your new tiddler to have prefilled data, check my newtiddler 
> widget on http://tiddlystuff.tiddlyspot.com
>
> If you want your button to not appear as a button, you need to specify 
> class="tw-button-invisible" (or something like that. I'm too lazy to look 
> up the actual value).
>

-- 
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: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread Ulrik Stervbo
The 'param={{!!description}}' was what I was looking for.

Thanks!

On Thursday, 3 April 2014 09:45:49 UTC+2, Stephan Hradek wrote:
>
> I think I do not completely understand. Let's try anyway:
>
> If you want "param" to get the value from, for example, the description 
> field, use param={{!!description}}. If you need to add some static values, 
> you need to use macros and use something like param=< parameters>>.
>
> If you want your new tiddler to have prefilled data, check my newtiddler 
> widget on http://tiddlystuff.tiddlyspot.com
>
> If you want your button to not appear as a button, you need to specify 
> class="tw-button-invisible" (or something like that. I'm too lazy to look 
> up the actual value).
>

-- 
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: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread Danielo Rodríguez
The class is "btn-invisible". 
Regards!

El jueves, 3 de abril de 2014 09:45:49 UTC+2, Stephan Hradek escribió:
>
> I think I do not completely understand. Let's try anyway:
>
> If you want "param" to get the value from, for example, the description 
> field, use param={{!!description}}. If you need to add some static values, 
> you need to use macros and use something like param=< parameters>>.
>
> If you want your new tiddler to have prefilled data, check my newtiddler 
> widget on http://tiddlystuff.tiddlyspot.com
>
> If you want your button to not appear as a button, you need to specify 
> class="tw-button-invisible" (or something like that. I'm too lazy to look 
> up the actual value).
>

-- 
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: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-03 Thread PMario
On Thursday, April 3, 2014 10:03:22 AM UTC+2, Albert Riedinger wrote:
>
> Initially this plugin was an experiment, but I also think that it has more 
> potential. I'm a novice in JavaScript and especially in RegExp so it's hard 
> for me to achieve progress. 
>

IMO you should not add 3rd party regExp libraries. I'm not sure, why you 
wanted to do that?
One of the best regexp related sites I know is: 
http://www.regular-expressions.info/
 

> Unfortunately At.js doesn't support unicode (and won't in near future), so 
> now I try to work around this issue without using more dependencies like 
> XRegExp library.
>

 

> I'm german so support for diacritics (like äöü) is critical for me.
>

The default built in regexp handler, works very well with öä. But may be 
the used libraries don't. 
 
-m

-- 
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: Anyway to improve the speed of TW5?

2014-04-03 Thread PMario
On Thursday, April 3, 2014 4:28:07 AM UTC+2, Jimmy Liew wrote:
>
> Does any scripts running behind it when we typing or creating a new 
> tiddler?
>

As BJ pointed out, if your right sidebar contains a "short" list, the 
update will be faster. ... TW5 refreshes the whole display with every 
keystroke. So the whole sidebar will be handled too. ... 

For the upcoming release, Jeremy added some performance measurement 
features. ... So I think he is already dealing with the issue. I also hope 
he finds something :)

have fun!
-mario

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


Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-03 Thread Albert Riedinger
Hi Yakov,

Thank you, I'm glad you like it.
Initially this plugin was an experiment, but I also think that it has more
potential. I'm a novice in JavaScript and especially in RegExp so it's hard
for me to achieve progress. But it's fun and I'll try my best :)

Unfortunately At.js doesn't support unicode (and won't in near future), so
now I try to work around this issue without using more dependencies like
XRegExp library. I'm german so support for diacritics (like äöü) is
critical for me. I already tested some solutions and it worked more or
less, but I had no time to implement it yet. Does it work for you using
kyrillic characters (if you use any at all)?

Implementing support for pretty links should be my next challenge. As I
said, I'm new to all of this and it's kind of complicated to write a RegExp
for such a case. Maybe you have some ideas[1]? Matching "[[..." is easy,
but I don't really know how to match simultaneously this: "[[some text|...".

Making space symbol after suffix ("]]") an option should be easy. I will
implement this right now and release it on tiddlyspace soon.

Spasiba Yakov for your interest and your suggestions!

Albert

[1] see matcher function of At.js >
https://github.com/ichord/At.js/blob/master/dist/js/jquery.atwho.js#L616


2014-04-02 17:39 GMT+02:00 Yakov :

> Wow, Albert,
>
> great stuff! Do you plan to implement suggestions for the [[some text|syntax 
> (to complete it to [[some
> text|target tiddler]])? Also, it would be nice if adding the space symbol
> after ]] is optional.
>
> This approach surely have potential for different applications, thanks for
> that.
>
> Best regards,
> Yakov.
>
> среда, 26 марта 2014 г., 20:52:02 UTC+4 пользователь Albert Riedinger
> написал:
>
>> Hi all,
>>
>> a few days ago Ramnath requested[1] a tiddler link suggestion feature in
>> edit mode, so I wrote a quick-and-dirty commands plugin[2] for the good old
>> TWC. It is just an implementation of At.js[3], which allows word
>> suggestions in textareas. After activating this feature with the toolbar
>> command, typing double square brackets "[[" in edit text field will suggest
>> tiddler names, while left-angle brackets(?) "<<" will suggest you installed
>> macros.
>> I'm not a programmer and it is my first public plugin, but I think that
>> your TW won't explode using this little hack :P
>>
>> Have fun and let me know if you find it useful!
>>
>> Cheers,
>> Albert
>>
>>
>> [1] https://groups.google.com/d/topic/tiddlywiki/b5xYteF6U9c/discussion
>> [2] http://autosuggest.tiddlyspace.com/#AutoSuggestPlugin
>> [3] https://github.com/ichord/At.js/ (see also:
>> https://github.com/ichord/Caret.js/)
>>
>  --
> 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.
>

-- 
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: Dynamically populate the 'param' parameter of $button

2014-04-03 Thread Stephan Hradek
I think I do not completely understand. Let's try anyway:

If you want "param" to get the value from, for example, the description 
field, use param={{!!description}}. If you need to add some static values, 
you need to use macros and use something like param=<>.

If you want your new tiddler to have prefilled data, check my newtiddler 
widget on http://tiddlystuff.tiddlyspot.com

If you want your button to not appear as a button, you need to specify 
class="tw-button-invisible" (or something like that. I'm too lazy to look 
up the actual value).

-- 
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] Changing background color for table cells

2014-04-03 Thread Carlos
Thank you.  will have a look at David's Mall.

On Thursday, 3 April 2014 00:20:45 UTC+1, David Gifford wrote:
>
> My mall does offer some tips, Carlos, for example hacking the th in your 
> stylesheet and using it to style an individual cell, but no, you can't 
> style individual cells freely in TW5 as you can in TWC.
>
> On Wednesday, April 2, 2014 8:45:08 AM UTC-4, Carlos wrote:
>>
>> Anybody knows how can this be achieve in TW5?  The old 
>> "bgcolor(#00):" doesn't seem to work anymore
>>
>> Thanks!
>> Carlos
>>
>

-- 
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: Anyway to improve the speed of TW5?

2014-04-03 Thread BJ
Hi Guys,
The problem with editing speed has yet to be addressed, if it really is too 
slow on your machines then you can try the 'editboost' plugin here:
http://bjhacks.tiddlyspot.com/ 
Its only a temporary hack which cannot be used when running tw5 from node 
(the bug causing this has been fix so may it will work with node in the 
near future).

cheers 

Jeff

-- 
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: Anyway to improve the speed of TW5?

2014-04-03 Thread BJ
Hi Guys,
The problem with editing speed has yet to be addressed, if it really is too 
slow on your machines then you can try the 'editboost' plugin here:
http://bjhacks.tiddlyspot.com/C
Its only a temporary hack which cannot be used when running tw5 from node 
(the bug causing this has been fix so may it will work with node in the 
near future).

cheers 

Jeff

-- 
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.