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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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? :)
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
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
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
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
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?
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
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
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
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
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 !
:-)
--
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.
- 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
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
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:
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 /
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
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
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
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
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
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
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
41 matches
Mail list logo