[twdev] [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
Hi, would be great if anybody could provide a hint why this is not working as expected (it should only return $:/Control/Panel instead it returns all system tiddlers in the system). Just copypaste the code in firebug (or console) after opening tiddlywiki.com var filter = (function() { var

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Tobias Beer
Hi Felix, This is probably best discussed at... https://groups.google.com/forum/#!forum/tiddlywikidev ...so as to not overload people who wish to focus on using tw. Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Tobias Beer
Does... $tw.wiki.compileFilter(filter) ...return a function? If not then tell me what this is supposed to do... iterator(tObj, tRefs[i]); Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
Does... $tw.wiki.compileFilter(filter) ...return a function? If not then tell me what this is supposed to do... iterator(tObj, tRefs[i]); Best wishes, Tobias. Hi Tobias, compileFilter returns a compiled filter function. see code at github or topics:

[twdev] Re: [TW5] Bug in reveal widget?

2014-11-24 Thread Stephan Hradek
Jeremy merged my pull request. So reveal can soon be used with variables too. -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop receiving emails from it, send an email to

[twdev] Re: [TW5] Bug in reveal widget?

2014-11-24 Thread Tobias Beer
Jeremy merged my pull request. So reveal can soon be used with variables too. Which pull request was that? Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop receiving emails

[twdev] [TW5] raise tm-import-tiddlers from a non-widget

2014-11-24 Thread Danielo Rodríguez
Hello, Currently I have a utils module which holds a event handler. It has the ability to import a bunch of tiddlers. I would like to give the user the option to directly save those tiddlers or import them via the traditional import mechanism. Is there any way I can do this from a JavaScript

[twdev] Re: [TW5] Bug in reveal widget?

2014-11-24 Thread Stephan Hradek
Am Montag, 24. November 2014 16:16:50 UTC+1 schrieb Tobias Beer: Jeremy merged my pull request. So reveal can soon be used with variables too. Which pull request was that? #1131... Mentioned somewhere here in the thread. -- You received this message because you are subscribed to the

Re: [twdev] [TW5] raise tm-import-tiddlers from a non-widget

2014-11-24 Thread Jeremy Ruston
Hi Danielo Currently I have a utils module which holds a event handler. It has the ability to import a bunch of tiddlers. I would like to give the user the option to directly save those tiddlers or import them via the traditional import mechanism. Is there any way I can do this from a JavaScript

[twdev] Re: [TW5] How to correctly use compiled filters not on $tw.wiki but on a given list of titles?

2014-11-24 Thread Tobias Beer
Hi Felix, well who cares? :) Users care, so — being aware of it — don't implement something that knowingly breaks in a major browser, desipite its shortcommings ...unless we're talking ie6, then please do, break it, deliberately, brute force. ^^ Best wishes, Tobias. -- You received this

Re: [twdev] [TW5] raise tm-import-tiddlers from a non-widget

2014-11-24 Thread Danielo Rodríguez
Annoyingly, no there isn't. The import mechanism needs knowledge of the current story and so it is largely implemented as part of the navigator widget in navigator.js. It would take some refactoring to make it possible to reuse the import mechanism outside of a widget tree. Sad. Is it

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
Ok, I think it is a misunderstanding on my side. Using all[tiddlers+shadows] prevents source() from being executed. Simply ommiting the all[tiddlers+shadows] part makes tw inject the iterator into the provided source. Hope my explanation is correct. Regards Felix -- You received this message

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Tobias Beer
Hi Felix, I thought we are at tiddlywikidev :) Early in the mrning ^^ I already looked at https://github.com/Jermolene/TiddlyWiki5/core/modules/filters/prefix.js https://github.com/Jermolene/TiddlyWiki5/blob/112a9a95d95e9f62f110c97a4faaf537c5c100b1/core/modules/filters/prefix.js

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Tobias Beer
Yes, I just figured the same. Any pointers as to all this iterator magic and why it would be executed for some but not for all filters? Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and

Re: [twdev] [TW5] raise tm-import-tiddlers from a non-widget

2014-11-24 Thread Danielo Rodríguez
Sounds tricky. Is there any example within the core? Or maybe in any other plugin? The closes approach that I found is on tiddlyclip plugin ( https://github.com/buggyj/tiddlyclip-plugin/blob/1629f87f9ebbd522d9b1bb524b726fec3c83b99c/tw5/multitid.js) but I can't understand what kind of

Re: [twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Jeremy Ruston
Hi Felix What's going on is that the all filter operator acts as a selector, rather than a filter. It ignores the incoming list of tiddlers, and creates a new list from the store. If you want to filter incoming tiddlers then try the is filter operator. Best wishes Jeremy. On Mon, Nov 24,

Re: [twdev] [TW5] raise tm-import-tiddlers from a non-widget

2014-11-24 Thread Jeremy Ruston
Hi Danielo Sad. Is it planned? Just to know. It's not something I'd considered before but I think it makes sense. But the workaround is reasonably robust. Sounds tricky. Is there any example within the core? You can copy the way that the main widget tree is constructed in

Re: [twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Tobias Beer
Hi Jeremy, What's going on is that the all filter operator acts as a selector, rather than a filter. It ignores the incoming list of tiddlers, and creates a new list from the store. Ok, selector vs. filter... - What are the precise processing implications? - What does it have to

Re: [twdev] Re: [TW5] How to correctly use compiled filters not on $tw.wiki but on a given list of titles?

2014-11-24 Thread Jeremy Ruston
Users care, so — being aware of it — TiddlyWiki 5 itself only works in IE10 and above. The experience in IE8 is likely to be poor; I haven't checked for a while. Best wishes Jeremy. On Mon, Nov 24, 2014 at 4:30 PM, Tobias Beer beertob...@gmail.com wrote: Hi Felix, well who cares? :)

Re: [twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Jeremy Ruston
Hi Tobias Ok, selector vs. filter... What are the precise processing implications? What do you mean? What does it have to do with iterator? What is iterator used for? The iterator function is the way that the source list of tiddlers is passed to the compiled filter function. Perhaps

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
Moin Moin, I thought we are at tiddlywikidev :) Early in the mrning ^^ I feel you man :) [$:/library/sjcl.js] What's that telling me? I really don't know. Haha nice. this is the first result picked from the result set of all tiddlers. -- You received this message because

Re: [twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
Hi Jeremy, What's going on is that the all filter operator acts as a selector, rather than a filter. It ignores the incoming list of tiddlers, and creates a new list from the store. thanks for that explanation! This is also how I understood it in the end: Ok, I think it is a

Re: [twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
Hi Tobias, this is not so easy you need to read the files at github to get the picture. It has nothing to do with daily filter usage and is only relevant if you want to use a filter on a set of tiddlers - What are the precise processing implications? Selectors decide what tiddlers to

Re: [twdev] Re: [TW5] How to correctly use compiled filters not on $tw.wiki but on a given list of titles?

2014-11-24 Thread Tobias Beer
TiddlyWiki 5 itself only works in IE10 and above. The experience in IE8 is likely to be poor; I haven't checked for a while. Oh, good to know, that is quite a constraint. I wasn't aware of it as it's not mentioned in GettingStarted. Are these rather visual constraints or even code-wise?

[twdev] Re: [TW5] How to correctly use compiled filters not on $tw.wiki but on a given list of titles?

2014-11-24 Thread PMario
On Monday, November 24, 2014 5:30:02 PM UTC+1, Tobias Beer wrote: Users care, so — being aware of it — don't implement something that knowingly breaks in a major browser, desipite its shortcommings ...unless we're talking ie6, then please do, break it, deliberately, brute force. ^^ IE8 is

Re: [twdev] Re: [TW5] How to correctly use compiled filters not on $tw.wiki but on a given list of titles?

2014-11-24 Thread Jeremy Ruston
Hi Tobias Oh, good to know, that is quite a constraint. I wasn't aware of it as it's not mentioned in GettingStarted. Are these rather visual constraints or even code-wise? TiddlyWiki5 targets HTML5 compatible browsers. IE8 and IE9 lack many of the required features in the DOM, CSS and

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Tobias Beer
Hi Jeremy and Felix, Please ignore my ignorance... [$:/library/sjcl.js] this is the first result picked from the result set of all tiddlers. That I sure figured, but what I still fail to understand is... - What iterator is or does ...and for what purpose I would call it in my

Re: [twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Jeremy Ruston
Hi Tobias The iterator is a JavaScript function that takes a callback as its parameter. It invokes the callback once for each tiddler that is in the source set. Your source function is an iterator; you wouldn't be calling it from your source function. and which is fired in one case but not in

Re: [twdev] Re: [TW5] Controlpanel layout suggestions

2014-11-24 Thread Jeremy Ruston
Apologies for getting to this late - Mat, I think it would be useful if you could file a ticket for these ControlPanel improvements, Many thanks, Jeremy. On Fri, Nov 14, 2014 at 1:04 PM, Mat matiasg...@gmail.com wrote: Oh - and thank you for good feedback Mario and also Tobias ! :-) --

Re: [twdev] [TW5] selectively suppressing sets of fields in edit template

2014-11-24 Thread Jeremy Ruston
Hi TheDiveO Apologies for the delayed response. I've been behind a backlog for a few weeks now. I understand what you're asking for here, and I can see the motivation. I don't think it's doable with the current primitives though. I'd also be a bit worried about performance and comprehensibility.

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
- and which is fired in one case but not in the other = Why? It is ignored because the selector all[...] already defines a set of tiddlers and thus does not look at the set of tiddlers by the source function -- You received this message because you are subscribed to the Google

[twdev] [TW5] how to create a library

2014-11-24 Thread Danielo Rodríguez
Hello, I'm going crazy trying to create a library for one of my plugins. I'm doing it like this: /*\ type: application/javascript, title: $:/plugins/danielo515/GASuploader/lib/tiddlerImporter.js, module-type: library @tiddlers an array of tiddler fields \*/ (function(){ exports.GAS_importer

[twdev] Re: [TW5] how to create a library

2014-11-24 Thread Danielo Rodríguez
Ok, I made two big errors: One was to include quotes around the properties. I don't know if the order matters, but I put the title on top. The other error was not specifying which part of the library I wanted. Since my library only sets one export, the logical thing is to use that export:

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Tobias Beer
Hi Jeremy, Felix, I'd like to understand filtering better which is why I am still asking noob-like questions. So, I'm afraid this might take a bit. I can understand if it's a bit much to ask you to drill a little deeper in the underlying paradigms... taking a closer look at the procedural /

[twdev] Re: [TW5] how to create a library

2014-11-24 Thread Danielo Rodríguez
Hello Felix, Thank you for your explanation. I'll check again your vis library (your plugin was one of the ones I consulted ). I can't remember if cloning was the root cause. I don't think so because the id issue was on my mind while I cloned a couple of tiddlers. Does the id generator always

Re: [twdev] Re: [TW5] How to correctly use compiled filters not on $tw.wiki but on a given list of titles?

2014-11-24 Thread Tobias Beer
TiddlyWiki5 targets HTML5 compatible browsers. IE8 and IE9 lack many of the required features in the DOM, CSS and JavaScript. So, no, it's not just visual problems in IE8 and IE9. javascript: Ok, thank you. Good to know and maybe worth a mention on tidlywiki.com, or some colored browser

[twdev] Re: [TW5] selectively suppressing sets of fields in edit template

2014-11-24 Thread Tobias Beer
I would propose the ability for either of a message / tooltip to be displayed or a css class that indicates whatever needs to be respected for a given field. There could be a dedicated namespace which the template would look up so as to fetch that tooltip or class from a plugin-defined shadow

[twdev] Re: [TW5] selectively suppressing sets of fields in edit template

2014-11-24 Thread Tobias Beer
I would propose the ability for either of a message / tooltip to be displayed or a css class that indicates whatever needs to be respected for a given field. There could be a dedicated namespace which the template would look up so as to fetch that tooltip or class from a plugin-defined

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
How come *[all[]* is a selector defining a set and *[all[shadows]]* or *[all[shadows+tiddlers]]* are not? all[] seems to be just a dummy placeholder which serves no function but to return the source, when you provide a source, you can just ommit it. Is it that, sometimes, source is

[twdev] Re: [TW5] Filter on array doesn't work with prefix filter?

2014-11-24 Thread Felix Küppers
So many talented developers talking about pre-compiled filters raises my curiosity. Is there any place to read about them? I'm familiar with callbacks and some JavaScript design patterns such as the module pattern. Is that enough to understand this ? Danielo, you understand everything

Re: [twdev] Is there a function to set a field's value?

2014-11-24 Thread 'Mark S.' via TiddlyWikiDev
Thanks Jeremy. I ended up using the corresponding formulation with addTiddler I found inside of the button widget code. The new TW routine seemed to want at least a title and maybe a bunch of other fields -- not sure which were essential since I just grabbed the whole code line. No matter how