Re: [twdev] Re: Please share your plugin development folder structure

2016-09-07 Thread Felix Küppers
Hola Danielo, 1) "/src" – My tiddlymap gulpfile script reads the src files from this folder (maybe have a look at the script, you can simply reuse it for your purpose) 2) "/dist" – here are the minified dist files 3) "/bundle" – all distfiles are wrapped by the gulpfile script to produce a

Re: [twdev] Re: Github Workflow?

2016-01-30 Thread Felix Küppers
Nice! Glad it helped you. On 01/30/2016 03:00 PM, Matabele wrote: > Hi Felix > > Many thanks -- perfectly clear :-) > > regards > > On Saturday, 30 January 2016 14:12:28 UTC+2, Felix Küppers wrote: > > > A detailed example of a PR workflow > > -- >

Re: [twdev] Re: Github Workflow?

2016-01-30 Thread Felix Küppers
n 22. do a "push --force" to your repo to completely override "fixforproblem1" on your remote 23. Done, your PR will only contain one commit with the updated changes Hope it helps Felix > > regards > > On Saturday, 30 January 2016 00:55:58 UTC+2, Felix Küppers wrote: &

Re: [twdev] [TW5] How do I add/remove tags from a tiddler inside a JavaScript plugin?

2016-01-21 Thread Felix Küppers
Hi Devin, you need to create a new tiddler based on the old tiddler and also override the "tags" field, also you need to clone the array to work with it using slice. The $tw.Tiddler() constructor accepts tiddler objects as arguments and "hashmaps" so just do the following (off the top of my

[twdev] Are tw module closures redundant?

2016-01-12 Thread Felix Küppers
Continued discussion started by Devin from: https://groups.google.com/d/msgid/tiddlywiki/1a20b6b7-f7a3-40a0-8712-82a4c6fc86c6%40googlegroups.com?utm_medium=email_source=footer *Intro:* While a poll in the tw community reveiled "warm feelings" in connection to additional closures – and there

Re: [twdev] Re: [TW5] Link completion Editor

2015-12-28 Thread Felix Küppers
Hi Alain, > because, I guess, the global var *window* is only defined if using a > browser. > > What is the usual way of dealing with this within node.js ?? It is not good style that the lib assumes the window object exists while it is loaded. Not sure how you can solve this. I would suggest

Re: [twdev] Re: [TW5] Link completion Editor

2015-12-28 Thread Felix Küppers
; And now, the version 1.0 of the plugin is officially available to try > and download at > http://snowgoon88.github.io/TW5-extendedit > > And the source is at > https://github.com/snowgoon88/TW5-extendedit/ > > Enjoy, comment and critic :o) > Alain > > > On Mon, Dec 28, 20

Re: [twdev] Re: [TW5] Link completion Editor

2015-12-27 Thread Felix Küppers
Hi Alain, very glad you picked this up. Would be great if you could also add an autocompletion trigger. When I am inside a word that starts with `[[abc` and I hit a keycombo, then the list pops up with tiddler names matching "abc". In IDEs (Eclipse, Netbeans, Atom, Geany etc.) it is a

Re: [twdev] Re: Latest on a plugin dev structure?

2015-11-13 Thread Felix Küppers
Hi Tobias > I'm a bit struggling trying to understand this workflow / setup. > > Here's a setup I created today for a macro called *dict* that > I am trying to turn into and publish as my first actual plugin... Glad you make this step. Given your level of productivity, I expect 100 plugins by the

[twdev] Re: Latest on a plugin dev structure?

2015-11-03 Thread Felix Küppers
Hi Phil. For bigger projects, I highly recommend you develop plugins not in the browser. (although great browser based plugin boilerplates exist like Tinka by Andreas Hahn). Do I just leave out the author name from > `wiki\plugins\PhDyellow\pluginname` and just use `wiki\plugins\pluginname`?

Re: [twdev] [TW5] Wrote a new filter operator; please review and see what you think?

2015-10-13 Thread Felix Küppers
Hi Tobias. > Never seen or generated any performance test results myself however: > Jeremy claims it will be significantly more performant without the > extra conditional. IMO avoiding redundancy is worth more than the minimal speed increment that results from a single comparison step. On this

Re: [twdev] [TW5] Wrote a new filter operator; please review and see what you think?

2015-10-13 Thread Felix Küppers
Hi Jeremy > I think filter operators are one place that is absolutely worth the > effort to do some basic optimisatoin. Filter operators are > called repeatedly during filter processing; for users with 10,000 > tiddlers then even a modest improvement in filter performance is worth it. Thinking

Re: [twdev] Suggestions on how to store config data for plugin

2015-07-23 Thread Felix Küppers
One of the things I am trying to do during this process is to create documentation of the subclasses and their methods of $tw. This has been useful for me to get an idea of what's out there and what I can use. Does such a list already exist anywhere? If not, I'll try to make it publically

Re: [twdev] Re: How can a widget know whether it is inside a draft tiddler's preview?

2015-06-20 Thread Felix Küppers
Servus Mario, Walking up the dom-node tree and checking for a class is a nice idea. I initially wanted to extract the information from the widget tree but your idea is way easier. If there is no better solution, I'll go with your suggestion! Thanks! -Felix On 20.06.2015 00:56, PMario wrote:

[twdev] How can a widget know whether it is inside a draft tiddler's preview?

2015-06-19 Thread Felix Küppers
Hi @all I want to prevent that a widget is displayed in preview when a tiddler is edited. Instead I want to display a placeholder. Is there an easy way or predefined function that I can call from inside a widget to find out whether this widget is inside a draft? Otherwise I would be forced to

Re: [twdev] checkbox widget tag check/inversion

2015-06-09 Thread Felix Küppers
Hi, I once wanted to do a PR for this feature but then solved it in a different way... @James maybe have a look at: https://github.com/Jermolene/TiddlyWiki5/issues/1109 -Felix On 09.06.2015 19:39, Jeremy Ruston wrote: Hi James Adding an invert attribute to the checkbox widget is reasonable.

Re: [twdev] Programaticaly set active sidebar tab

2015-06-09 Thread Felix Küppers
Hi Devin. The problem here is that the tabs macro generates its state hash without giving the api user any chance to control this. There is no clean way to retrieve the state tiddler but you could use a prefix to retrieve a tiddler that starts with $:/state/tab/sidebar--

Re: [twdev] [TW5] Closing tid should set focus to previous tid - @Felix

2015-05-29 Thread Felix Küppers
God eftermiddag Mat To my satisfaction, Felix' proposals for user options on how to open a tiddler http://tiddlywiki.com/prerelease/#%24%3A%2Fcore%2Fui%2FControlPanel%2FSettings%2FLinkToBehaviour seem to make it to 5.1.9. Great! Thanks :) IMO we should have some equivalent option for

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-24 Thread Felix Küppers
/bugfixes in that period as well? -Felix On 24.05.2015 00:46, kixam wrote: Hi Felix, On Friday, May 22, 2015 at 1:31:17 PM UTC+2, Felix Küppers wrote: PS: FYI vis.js 3.12.0 is out Thanks, I updated the repo! The guys at vis.js are heavily working on 4.0 which will bring many

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-24 Thread Felix Küppers
Hi kixam, I adapted my plugin to 4.0.0 this morning... there are quite some changes indeed. But I sure can wait before I push to the repo - or at least before I update the demo website. That would be great I forked your vis.js plugin and posted a pull request, but this can wait too...

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-22 Thread Felix Küppers
Hi kixam, great stuff! Here goes... - new project repo: https://github.com/kixam/TW5-visjsTimeline - new detached plugin repo: https://github.com/kixam/TW5-moment.js - new demo/install page: http://kixam.github.io/TW5-visjsTimeline I hope I got everything right... please tell me

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-22 Thread Felix Küppers
On 22.05.2015 09:34, kixam wrote: I am thinking of using the nice nav buttons from felixhayashi's tiddlymap though, but first I would rather they would be included in the vis.js plugin instead, if possible. I may look into it but it seems not very easy. Anything vis.js ships with is included

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-22 Thread Felix Küppers
Hi kixam, Martin (Emkay) replied to my private message and kindly added a BSD license to his repo just a few minutes ago. So its all good now :) -Felix Hello, Thank you for informing me. Changes in my life mean I have been unable to carry the visjs timeline forward. I am happy with the

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-21 Thread Felix Küppers
Nicely done Kixam! Were you able to contact Emkay about the original code's license? I couldn't find any license information on his github repo. Also, if you take over his project (because it looks like he abandoned it and you are willing to deploy it), maybe you could inform him and rename the

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-21 Thread Felix Küppers
Hi kixam, Initially, I planned to do that, but I thought most of the work was made by emkay, and it would be easier for his fans to follow up if my updates were just that: updates. I strongly agree. But it seems that he is not reacting at all and it would be sad if such a great plugin gets

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-10 Thread Felix Küppers
Hi Ton, Hi kixam, just wanted to mention that any plugin-module using the TW5 visjs plugin from my repo (or from the tiddlymap demo site) needs to import the node module like this: varvis =require($:/plugins/felixhayashi/vis/vis.js); Also installing tiddlymap is not needed when you just want

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-08 Thread Felix Küppers
Hi Kixam, My mistake, I was missing uglifycss so your build.sh script could not process all it should have. Ah, so you are using the build script I wrote :) If you discover a problem, please report them at github. I got a hit that there is. From your own TiddlyMap plugin's plugin.info: |

Re: [twdev] Re: [TW5] Getting the tw5visjs plugin to work again.

2015-05-07 Thread Felix Küppers
Hi Kixam, you don't need to install tiddlymap if you just want to use the visjs library with nodejs just go to https://github.com/felixhayashi/TW5-Vis.js and grab the stuff in the dist folder. to drag and drop the plugin, visit the tiddlymap demo site and just drag the visjs plugin into your

[twdev] Re: New Google Group Settings

2015-04-01 Thread Felix Küppers
Good stuff! -- 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 tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send email to

[twdev] Re: New Google Group Settings

2015-04-01 Thread Felix Küppers
I agree with Mat, editing is really useful. Especially adding results that emerged in the discussion to the OP. -Felix -- 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

[twdev] Multiline fields in raw *.tid file

2015-03-11 Thread Felix Küppers
Hi, anybody knows whether it is somehow possible to put a fields value as multiline into a *.tid file (not the text field) so linebreaks are considered spaces? e.g. field1: bla field2: blabla continued bla -! fieldx: blub hsdjkfh fdhjh gjkfdh gjkdfhg fdjkhg d f jgfdkh gjkfdg hfdjgh dfg

Re: [twdev] Re: [TW5] Action widgets vs. Messages

2015-03-07 Thread Felix Küppers
Hi For something I did recently, I used messages, which are cought and processed by widgets surrounding the UI that implements the functionality. Andreas advice is good. TW allows you to add event properties via widget attributes and then you can access them from within your handler code

[twdev] Re: TiddlyMap enhancement suggestion : WikiText edges definition

2015-02-28 Thread Felix Küppers
Hi Yoann, TiddlyMap is really a great plugin ! awesome. Many thanks :) Still undergoing heavy development. I though it would be interresting, and easier, to add a syntax to allow creating edges inside tiddlers. Generally speaking, for any ideas you have in mind concerning tiddlymap it

[twdev] Re: TiddlyMap enhancement suggestion : WikiText edges definition

2015-02-28 Thread Felix Küppers
Sure ! I perfectly understand that edges are metadata. I was only suggesting to auto-generate part of that metadata from WikiText ;-) Ah ok. Well I think this would also create an overhead for me as already store edges separately from the tiddler data to allow fast iteration over edges

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread Felix Küppers
: $:/status/UserName, text: Joel})); }; })();| On Tuesday, February 17, 2015 at 4:59:10 PM UTC-6, Felix Küppers wrote: Hi, I think you need to add some more instructions like exports.name http://exports.name = blabla; exports.platforms

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread Felix Küppers
True On 18.02.2015 19:07, Tobias Beer wrote: Actually in TW5 you don't need to add a tiddler field module-type, it is automatically recognized when module-type is added as a field in the comments and the plugin's shadow tiddlers are loaded. But if it works for you I guess

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread Felix Küppers
Hi Yun, Actually in TW5 you don't need to add a tiddler field module-type, it is automatically recognized when module-type is added as a field in the comments and the plugin's shadow tiddlers are loaded. But if it works for you I guess it is fine then :) -Felix On 18.02.2015 15:17,

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-17 Thread Felix Küppers
Hi, I think you need to add some more instructions like exports.name = blabla; exports.platforms = [browser]; exports.after = [startup]; exports.before = [rootwidget]; exports.synchronous = true; -felix On 17.02.2015 23:38, yun.zho...@gmail.com wrote: Hello all, I am still very new to TW5

[twdev] Re: A couple plugin questions

2015-02-06 Thread Felix Küppers
Hi Stephan - I understand that the tiddlers inside a plugin are considered shadow tiddlers regardless of the name but I don't understand the why. Is it simply the fact they are in a plugin that makes them shadow tiddlers? It is to keep all tiddlers of a plugin bundled so when

[twdev] Re: Autogenerating Tiddlywiki API documentation...

2015-02-05 Thread Felix Küppers
Hi Tobi, I find it difficult to agree. Perhaps that is owed to my not being a hardcore developer but I would think that there factually is no such hardcore documentation standard. There are project guidelines, styles and implementations ...adopting this or that method, maybe jsdoc. JSDOC

[twdev] Re: Autogenerating Tiddlywiki API documentation...

2015-02-05 Thread Felix Küppers
Hi, I am thinking this is actually an area where we *definitely* should eat our own dogfood. When it comes to API docs, we should stick to standards like JSDOC. Code needs to be documented in a most comprehensible and standard compliant way to ensure other developers can pick it up and

Re: [twdev] Re: Very Basic Filter Question

2015-01-24 Thread Felix Küppers
Wow, I am really impressed. Great work. On 23.01.2015 21:53, Astrid Elocson wrote: Hi Felix, I agree entirely! In fact, I added that very point to the Filter Syntax tiddler a few days ago in my local copy of the repository (which I haven't pushed yet). Here's the text: The output of a

[twdev] [TW5] Navigation bar problem: Tiddler cut of after scroll... scrollTo Offset option needed!

2014-12-24 Thread Felix Küppers
Hi, I am trying to get a topnavigation bar working and I experience the following problem: Any tiddler navigation results in a scroll of the storyriver to focus a tiddler. The focussing sets the storyriver to a certain position I cannot influence by any config so if I have a navigation bar, I

Re: [twdev] [TW5] Navigation bar problem: Tiddler cut of after scroll... scrollTo Offset option needed!

2014-12-24 Thread Felix Küppers
Hi Ton, For 2) (see also e.g. http://tw5toolbar.tiddlyspot.com) you can shift the story-river and the Sidebar downwards (Top Sidebar and Top story-river in Settings; see $:/_stylesheet/settings). Yes at the beginning this works, but stylsheets do not have an effect once tw starts scrolling

[twdev] [TW5] Plugin Versioning

2014-12-19 Thread Felix Küppers
Hi @all, I am a little confused. I want to version my plugin the following way: MAJOR.MINOR.PATCH+BUILD I am used to the BUILD version appendix to indicate a build that does not necessarily correspond to a version change. It's used when building debian packages. However, this is blocked by

[twdev] Re: [TW5] Plugin Versioning

2014-12-19 Thread Felix Küppers
Hmm, turns out $tw.utils.checkVersions is responsible for this but does not compare the build version even though $tw.utils.parseVersion returns a* build* property. ... -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from

[twdev] Re: [TW5] Plugin Versioning

2014-12-19 Thread Felix Küppers
See https://github.com/Jermolene/TiddlyWiki5/pull/1249 Maybe it would be a good idea to offer a force import button when using import? For example when I want to do a downgrade? Just an idea... -Felix -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev

[twdev] Re: What type of module should I use? and a little question about code organization.

2014-12-09 Thread Felix Küppers
Hi Danielo, It should listen and track changes to tiddlers, This means your module is active from the beginning on. Sounds like a startup module to me. not a library and not a widget. be responsible of telling what should be uploaded, what can be refreshed and to start the process of

Re: [twdev] [TW5] Getting the tw5visjs plugin to work again.

2014-12-08 Thread Felix Küppers
Hi Jörg, I'm pretty new to TW, but I find Taskgraph not working with 5.1.5? Well, this is embarrassing :) Especially since 5.1.5 is the only version it should work with (5.1.4 is not supported) :) Maybe try the demo with another browser? I am doing a rework of taskgraph at the moment which

Re: [twdev] [TW5] Getting the tw5visjs plugin to work again.

2014-12-08 Thread Felix Küppers
Hi Jörg, what you did is absolutely correct. I looked at the debug (just open firebug and restart your wiki) and it is clearly my fault. The demo is set to a view called component per default. however, the view doesn't exist anymore when you copy the plugin from the demo site. You can fix this

[twdev] Re: [TW5] how to detect tiddler closes ?

2014-12-07 Thread Felix Küppers
Hi Lebrun, Is there a mean to detect that a tiddler is about to close (in widget's code) ? In my widget, there is an animation with a periodic function launched every xx ms with setTimeout or with requestAnimationFrame(). I would like to stop that function when tiddler closes, to free

[twdev] Re: [TW5] how to detect tiddler closes ?

2014-12-07 Thread Felix Küppers
Sorry, Jeremy already suggested it. I completely forgot to read his comment. Felix -- 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

Re: [twdev] [TW5] Getting the tw5visjs plugin to work again.

2014-12-05 Thread Felix Küppers
Hi Jeremy, thanks for mentioning the plugin :) Just wanted to say, I have been very busy with working on it the last days and I will release a new version next week with a lot of (internal) changes. So I hope nobody uses taskgraph already in production (except danielo :) as some things may

[twdev] Re: TW5 Can I add tiddlers from a startup module?

2014-12-01 Thread Felix Küppers
Hello Danielo, When I started with tiddlyDrive project it was very clear on my mind that I did not want to create a syncAdaptor. The main reason is because the syncadaptors are focused on server side, so unless the server is running on your own machine you end up with nothing. I wanted to

[twdev] Re: TW5 Can I add tiddlers from a startup module?

2014-11-30 Thread Felix Küppers
hola The problem with a hidden widget is that it cannot retrieve the current tiddlers title. Why? Most of the widgets does this. Hmm, I don't think so. You can only do this by passing currentTiddler as an argument to the widget and reading that argument later with getAttribute(). But

[twdev] Re: TW5 Can I add tiddlers from a startup module?

2014-11-29 Thread Felix Küppers
Hola As part of tiddlydrive I want the plugin to query the server for available tiddlers on startup. The idea is to give the server a list of the already available tiddlers on the wiki and the server will reply back with a list of those tiddlers that are on the server but not on the wiki.

[twdev] Re: TW5 Can I add tiddlers from a startup module?

2014-11-29 Thread Felix Küppers
Hi Danielo Thank you also for the example you provided me. Nice, you're welcome. If you have any other idea or suggestions I'm sure it will be very helpful. Regards. Indeed I have some ideas (no need to implement them but maybe worth a thought) * maybe you could save the

[twdev] Re: TW5 Can I add tiddlers from a startup module?

2014-11-29 Thread Felix Küppers
* maybe you could save the timestamp when the wiki was loaded and have a global upload button that saves all tiddlers that have changed since that time. Or you could also listen to tiddler changes and create list of tiddler which have changed and not been uploaded yet.. -- You

[twdev] Re: TW5 Can I add tiddlers from a startup module?

2014-11-29 Thread Felix Küppers
Hi Danielo, I also though about starting the ajax automatically when the tiddler is displayed, but I was not sure on how to implement it. A hidden widget maybe can be a solution. I don't understand why do you consider better getting via DOM selection. The problem with a hidden widget is

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

2014-11-25 Thread Felix Küppers
By the way here is an updated version of the utils function which does not redecide on every operation whether to deal with an object or an array, also you may leave out the source to run the filter on the whole wiki. /** * This function facilitates to check whether a list (tRefs) of tiddlers

[twdev] Moving to github as discussion board?

2014-11-25 Thread Felix Küppers
Hi, I think Jeremy mentioned it and it makes a lot of sense. * Sharing code * marking topics * editing posts and topic titles Putting the google board in the github readme as read-only legacy reference. Just wanted to say, I support the idea. This board sometimes makes it hard to be

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

2014-11-25 Thread Felix Küppers
Hi Danielo, $tw.wiki.getFilterTiddes() is just a wrapper to compile the filter string for you. take a look at this biiig function that is executed everytime you execute a filter

[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 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] 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 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

[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] 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

[twdev] Re: [TW5] Need some help with creating a plugin to include the vis.js library

2014-11-17 Thread Felix Küppers
Hi Mario, I looked at codemirror/files/tiddlywiki.files https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FJermolene%2FTiddlyWiki5%2Fblob%2Fmaster%2Fplugins%2Ftiddlywiki%2Fcodemirror%2Ffiles%2Ftiddlywiki.filessa=Dsntz=1usg=AFQjCNEKLSPVHQhJsSv2gD0HDbZuxlHL7g but could you please be more

[twdev] Re: [TW5] Need some help with creating a plugin to include the vis.js library

2014-11-17 Thread Felix Küppers
Just a remark: For the taskgraph plugin I use a node.js taskrunner called gulp to compile the plugin (using a gulpfile.js). Here it makes absolute sense to use an os independent approach. -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To

[twdev] Re: [TW5] Need some help with creating a plugin to include the vis.js library

2014-11-17 Thread Felix Küppers
Hi Danielo, Thank you for your help! This was also my first thought. Then I saw that the vis.js designers have a switch-case implemented that decides how to export the object based on different scenarios. function webpackUniversalModuleDefinition(root, factory) { if(typeof exports ===

[twdev] Re: [TW5] Need some help with creating a plugin to include the vis.js library

2014-11-17 Thread Felix Küppers
Hi Tobias, exports are used in a modular javascript-system to make pieces of code publicly usable by other js-modules. Otherwise they are not visible. Javascript itself does not know this concept as everything is stored in one file. but with node.js it is possible and tw also uses this to

[twdev] Re: [TW5] Need some help with creating a plugin to include the vis.js library

2014-11-17 Thread Felix Küppers
However. I already solved the problem (see a post above) -- 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 tiddlywikidev+unsubscr...@googlegroups.com. To post to

[twdev] [TW5] How to render widgets programmatically?

2014-11-17 Thread Felix Küppers
Hi, Say I have a tiddler T1 with a widget A that uses the transcluded content of a tiddler T2 as its body. T1 looks like $A{T2}/$A T2 looks e.g. like this blabla $list filter=[tag[hi]]/$list $button message=somemessage param=helloclickbutton/$button bla Widget A is now the parent of the

[twdev] [TW5] Need some help with creating a plugin to include the vis.js library

2014-11-16 Thread Felix Küppers
Hi everybody, I have spent much to time trying to figure out how to get the vis.js library integrated. I created a bash script that translates the css that urls comply to the internal tw-paths. The script also builds the tiddlywiki.files file. The plugin is correctly displayed as plugin in a

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

2014-11-14 Thread Felix Küppers
Hi, because I had this issue a while ago and I am currently refactoring my code and creating helper functions I just wanted to publish one of my util functions that easily lets you filter on a given subset. Doesn't work with IE8 because of isArray() ...well who cares? :) /** * This

Re: [twdev] [TW5] new Revision Plugin: give me your opinions.

2014-11-13 Thread Felix Küppers
Not to confuse with what this guy does with a hook :) http://imageprocessor.websimages.com/width/282/crop/0,0,282x340/www.onceuponafans.com/Dustin%20Hoffman%20as%20Hook.jpg -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from

[twdev] [TW5] compiled filter with titles doesn't work? but with tags it does... Help please

2014-11-07 Thread Felix Küppers
Hi, I have worked a lot with compiled filters now but this one here... I just don't get it. If you open tiddlywiki.com and a firebug (or similar) browser-console and enter var filter = [title[Get the Ring]] [title[Kill the Dragon]]; var compiledFilter = $tw.wiki.compileFilter(filter); var

Re: [twdev] [TW5] compiled filter with titles doesn't work? but with tags it does... Help please

2014-11-07 Thread Felix Küppers
Hi Jeremy, I had never guessed that. After two hours of testing I was about to reboot my pc because I thought its a problem with the cache or something. Thank you! Felix -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from

Re: [twdev] Re: [TW5] Is there a designated place for TW plugins to store stuff in the dom?

2014-11-05 Thread Felix Küppers
Hi Jeremy, sorry, I have only now read your comment. If you can, though, I'd recommend using a global variable created in $tw. Thanks. I followed your recommendation! Also I created a namespace property in $tw for my plugin. Felix -- You received this message because you are subscribed to

Re: [twdev] Re: [TW5] Is there a destructor for widgets?

2014-11-03 Thread Felix Küppers
Hi Jeremy, It's a bad idea for a widget to add event listeners to the DOM (other than to the dom elements that it creates). You'd be better off attaching your event listener inside a startup module within the same plugin. You can use closures or globals to communicate with your widget

Re: [twdev] Re: [TW5] Is there a destructor for widgets?

2014-11-03 Thread Felix Küppers
Hello Jeremy, great to discover that everything is already taken care of :) I did not know that. Thank you Felix -- 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

[twdev] [TW5] Is there a destructor for widgets?

2014-11-01 Thread Felix Küppers
Hi, I have another question :) I need to register to window resize events to calculate the size of my canvas as it's not possible with css without changing too much of TW. However, once my widget is destroyed, I cannot remove the eventlisteners and next time the widget is created again, it

[twdev] Re: [TW5] Is there a destructor for widgets?

2014-11-01 Thread Felix Küppers
... I would prefer a destructor call over a mutation observer (https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver). -- 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,

[twdev] Re: [TW5] Is there a destructor for widgets?

2014-11-01 Thread Felix Küppers
very creative! but I also doubt that resize events get propagated as iframes have their own dom. But I appreciate your idea BJ. Thanks Felix -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop receiving

[twdev] Re: [TW5] Is there a designated place for TW plugins to store stuff in the dom?

2014-11-01 Thread Felix Küppers
Cool, then I will do it this way 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 tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send

[twdev] Re: [TW5] Idea for hard line breaks

2014-10-31 Thread Felix Küppers
Hi, why not: \\ ?. latex also uses them. Stephan is right, unix commands with .. at the end are quite common as they refer to the directory above. Am Freitag, 31. Oktober 2014 08:01:28 UTC+1 schrieb Stephan Hradek: Am Freitag, 31. Oktober 2014 07:49:22 UTC+1 schrieb Danielo Rodríguez:

[twdev] [TW5] Problem with TextReferences and Buttons

2014-10-31 Thread Felix Küppers
Hi @all, Is it possible to create a button that reads its set-destination from a current tiddler's field and once pressed echo some text to another tiddlers field? The problem is, setting set to the field by TextReference prohibits specifying the field of the destination that shall be changed

[twdev] Re: [TW5] Problem with TextReferences and Buttons

2014-10-31 Thread Felix Küppers
Thanks, I will try that later Am Freitag, 31. Oktober 2014 13:50:23 UTC+1 schrieb Stephan Hradek: I think it should work when you define a macro for the button and pass your values in the $macrocall. -- You received this message because you are subscribed to the Google Groups

[twdev] Re: [TW5] Problem with TextReferences and Buttons

2014-10-31 Thread Felix Küppers
Sweet! I didn't know that the TextReference would actually be evaluated if it is constructed in the macro. Thank you for your example Danielo! I think this the same what Stephan proposed, so thank you as well. regards Felix Am Freitag, 31. Oktober 2014 18:48:03 UTC+1 schrieb Danielo

[twdev] Re: [TW5] Problem with TextReferences and Buttons

2014-10-31 Thread Felix Küppers
I didn't know either until I tried. To be honest I didn't even thing about if it was possible, it just came to me. Danielo, you are the chosen one :) -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop

Re: [twdev] Re: [TW5] Giving plugins a chance to visualize search results

2014-10-28 Thread Felix Küppers
wishes Jeremy. On Mon, Oct 27, 2014 at 9:44 PM, Felix Küppers felixk...@hotmail.de javascript: wrote: Hi Jeremy, Great, thank you very much! I didn't know you could specify code in emptyMessage to react to empty lists :) Only one remark. I just noticed, its not possible to specify

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-27 Thread Felix Küppers
Hi Danielo, Glad that you ask :) Yes, it's related to my proposal at https://groups.google.com/forum/?hl=de#!topic/tiddlywikidev/UafAzk5Bt7k. It's a two level project: *First Step:* I will introduce a mechanism to explicitly link tiddlers and visualize them as nodes on a canvas. Motivation:

[twdev] Re: [TW5] Plugin does not listen to changes

2014-10-27 Thread Felix Küppers
Hi Danielo Glad you like my plugins. I was in a similar situation that you are currently when I develop them: I use TW a lot and I missed those kind of features. I know, I read some of your old discussions :) Very helpful In one you said: I discovered that the navigator widget is

Re: [twdev] Re: [TW5] Giving plugins a chance to visualize search results

2014-10-27 Thread Felix Küppers
Jeremy. On Sat, Oct 25, 2014 at 6:46 PM, Felix Küppers felixk...@hotmail.de javascript: wrote: I'm sorry, I just realized the code I posted above is not quite correct. However, I think the idea becomes is clear and it's easy to implement. -- You received this message because you

[twdev] [TW5] Giving plugins a chance to visualize search results

2014-10-25 Thread Felix Küppers
Hi, I really like the search mechanism of TW. It's very fast and simple. When I begin to search, the reveal mechanism of TW hides the tabs and only displays the search results. !-- Excerpt from https://github.com/Jermolene/TiddlyWiki5/blob/master/core/ui/SideBarLists.tid -- $reveal

[twdev] Re: [TW5] Giving plugins a chance to visualize search results

2014-10-25 Thread Felix Küppers
I'm sorry, I just realized the code I posted above is not quite correct. However, I think the idea becomes is clear and it's easy to implement. -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop receiving

  1   2   >