[twdev] How to transform HTML nodes to tiddler's tree?

2018-08-16 Thread bimlas
plugin should do the same, but there is no option for this in Asciidoctor.js. How can I achieve this? Is there a builtin method to transform HTML nodes to HTML tree or should I use JsonML? To try out: * Clone https://github.com/bimlas/tiddlyWiki5/ and check out `asciidoctor-plugin` branch

Re: [twdev] How to transform HTML nodes to tiddler's tree?

2018-08-18 Thread bimlas
/asciidoctor is right or should I move under my own "namespace" (plugins/bimlas/asciidoctor)? Should I keep on my own repo without sending a PR, will you merge by yourself if you like the plugin? -- You received this message because you are subscribed to the Google Groups "Tiddl

[twdev] Re: Plugin works only in the example wiki

2018-08-29 Thread bimlas
Found the root of the problem: Asciidoctor.js does not works without dependencies on Node. For details, see https://github.com/asciidoctor/asciidoctor.js/issues/539 -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this

[twdev] Re: Plugin works only in the example wiki

2018-08-29 Thread bimlas
Thanks for help! I just solved the problem, the plugin is working on both Node and single page versions: https://groups.google.com/d/msg/tiddlywiki/PvoDxAWgziE/A0Ys8vWHAwAJ -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from

[twdev] Plugin works only in the example wiki

2018-08-27 Thread bimlas
. It is recommended that you restart TiddlyWiki by refreshing your browser Uncaught TypeError: Cannot read property 'call' of undefined Screenshot: https://i.imgur.com/0EEC32l.png Somebody can help me to find the problem? The source code of the plugin can be found at https://gitlab.com/bimlas/tw5-asciidoctor

[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
Just tried out to install Markdown plugin, it shows the same warning message on terminal: For $:/plugins/tiddlywiki/markdown, type is application/json hasMetaFile is false filepath is /home/nyolcas/src/tiddly-test/tiddlers/ $__plugins_tiddlywiki_markdown.tid -- You received this message

[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
/src/tiddly-test/tiddlers/$__StoryList.tid # THIS IS WHERE I DROPPED THE PLUGIN IN TO THE WIKI syncer-server-filesystem: Dispatching 'save' task: $:/plugins/bimlas/asciidoctor For $:/plugins/bimlas/asciidoctor, type is application/json hasMetaFile is false filepath is /home/nyolcas/src

[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
This is how I bundling the plugin (if this helps): https://gitlab.com/bimlas/tw5-asciidoctor/blob/6c74c727e26b5211d3cfc4c0fd720c99d119212f/.gitlab-ci.yml The tiddlers of the wiki (eg. Example) are on `gl-pages` branch, this is why I checking out it. -- You received this message because you

[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
Sorry, just realized that the project was private... (-_-') Now it's available to view. -- 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: Plugin works only in the example wiki

2018-08-27 Thread bimlas
No, it's not finished - the problem still exists, but the source code was private. -- 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] Custom filter operator overriding the results

2018-10-18 Thread bimlas
ttps://groups.google.com/d/msg/tiddlywiki/VeRlS9Qti8I/UmcavFe_BwAJ The current version of the code itself (which works only on prerelease version, needs restart after importing) is on https://github.com/bimlas/TiddlyWiki5/blob/f5790f0973d8c46156cd6ad995491732cbc16b2f/core/modules/filters/kindred.js

[twdev] Re: Custom filter operator overriding the results

2018-10-19 Thread bimlas
I just fixed the issue, see https://groups.google.com/d/msg/tiddlywiki/VeRlS9Qti8I/IJOM5p4TCAAJ for a working demo and https://github.com/bimlas/TiddlyWiki5/blob/5890ea92cea5252003c5d122e7f408c6ce1c69de/core/modules/filters/kindred.js for the code. -- You received this message because you

[twdev] Re: Custom filter operator overriding the results

2018-10-19 Thread bimlas
is the input to the second (+ signed) filter. So my filter operator not works, because +[[Features]kindred[]] is overwriting the "input" and replacing it with "Features" tiddler. I just made some small modifications on the code, see https://github.com/bimlas/TiddlyWiki5/tree/kind

[twdev] Re: Big list of TWs

2018-10-02 Thread bimlas
Here's an already exist "big list": https://www.reddit.com/r/TiddlyWiki5/wiki/index Check Plugins/Resources and Other User generated TiddlyWikis -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop

[twdev] Re: Programmatic generation of macros

2018-11-20 Thread bimlas
Just played with nested macro definitions: https://bimlas.gitlab.io/demo/tw5/nested-macro-definition.html If I could use variables in transclusion, I could modify https://bimlas.gitlab.io/demo/tw5/generate-macros-by-tags.html

[twdev] Re: Programmatic generation of macros

2018-11-20 Thread bimlas
It's not an answer, but maybe helps: https://tobibeer.github.io/tb5/#Ad-Hoc%20Macro -- 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: Simple script to sync TW to Git Repo

2018-09-18 Thread bimlas
It seems to work, but storing the password in the remote URL seems to be a bad idea for me: `git remote show origin` prints the password as is. BTW here's a .gitlab-ci.yml to generate HTML for GitLab Pages: https://gitlab.com/bimlas/bimlas.gitlab.io/blob

Re: [twdev] Re: First call for planned release of v5.1.20

2019-06-18 Thread bimlas
I'm very sorry, but it was a false alarm, see https://github.com/Jermolene/TiddlyWiki5/issues/3998#issuecomment-503312664 -- 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

[twdev] Re: First call for planned release of v5.1.20

2019-06-18 Thread bimlas
Maybe it's just the plugin's fault, but it seems that for some reason the Kin filter is slower on prerelease (heavily using cache mechanism). I don't know if it's a new indexing system or a performance log issue. The code of the filter: https://github.com/bimlas/tw5-kin-filter/blob

Re: [twdev] Re: First call for planned release of v5.1.20

2019-06-18 Thread bimlas
ntents]]"; invocations 15; avgTime 376.94; totalTime 5654; percentTime 81.83528730641193 2019. június 18., kedd 10:59:26 UTC+2 időpontban Jeremy Ruston a következőt írta: > > Hi Bimlas > > Thanks for the report, that’s very helpful. &g

[twdev] Re: Progressive Web Apps

2019-05-09 Thread bimlas
Hi TonyM! I've heard the PWA phrase, but I didn't know what it was. Seems to be very useful area. Whether Tiddly can be PWA, I'm not sure. According to https://developers.google.com/web/progressive-web-apps/checklist - First load fast even on 3G: ...verify time to interactive <10s for

[twdev] How to use Node modules in browser?

2019-07-11 Thread bimlas
Dear all, In a Node.js Javascript project, I want to use TiddlyWiki to display data. To run Node methods, I need to create modules with "module-type: utils-node" (if I understand it well), thus I can reach them through $tw.utils. These will only be loaded by TiddlyWiki if $:/info/node is "yes"

Re: [twdev] Re: How to use Node modules in browser?

2019-07-11 Thread bimlas
Maybe it's basically a bad way of thinking, so I am reformatting the question: how can I use NPM modules in a widget? -- 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

Re: [twdev] Re: How to use Node modules in browser?

2019-07-11 Thread bimlas
The sync mechanism seems to be usable, I go around the topic, thank you for the idea! PS.: According to your comment , if you would like GitLab saver to 5.1.20, please merge the request

[twdev] Re: How to use Node modules in browser?

2019-07-11 Thread bimlas
To be clear: I need Node because I want to use NPM modules. 2019. július 11., csütörtök 11:34:31 UTC+2 időpontban bimlas a következőt írta: > > Dear all, > > In a Node.js Javascript project, I want to use TiddlyWiki to display data. > > To run Node methods, I need to create mo

Re: [twdev] Re: How to use Node modules in browser?

2019-07-11 Thread bimlas
Jeremy, Thank you for your reply, but I still don't understand that although it can recognize Node in the code, $:/info/node is always "no" in the browser, so it does not load utils-node modules. How do I use them, for example, in widgets? For example, if I want to use the

[twdev] Re: Hey plugin authors! Where do you serve your plugins?

2019-07-12 Thread bimlas
I think the first point covers most of the cases, but I can still imagine that you are storing JSON tiddlers in a shared Dropbox. Otherwise, it would be best to have community plugins listed directly in the TW.com plugin library. If it had any categorization, it could completely replace the

Re: [twdev] Re: How to use Node modules in browser?

2019-08-27 Thread bimlas
I think I found the solution: I have to use this (after the tiddler is modified) in the browser (by an ActionWidget for example): $tw.utils.nextTick(function() { $tw.syncer.enqueueSyncTask({type: "load", title: "$:/communicate-with-server"}) }); -- You received this message because

Re: [twdev] Re: How to use Node modules in browser?

2019-08-27 Thread bimlas
Jeremy, ... have the browser create a tiddler with some flags that gets synced to > the server. The serverside code picks up the tiddler (by searching for the > same flags), and then performs some operation, putting the results back in > the same tiddler. > So far it works so that the server

Re: [twdev] Re: How to use Node modules in browser?

2019-08-28 Thread bimlas
I also tried Node 12.9.1 installed through NVM, which is the result. Need to create a skinny tiddler and it will be synced? As far as I know it doesn't work with text files: $ mkdir files $ echo "Some text" > ./files/foo.txt $ tiddlywiki --listen - Check that

Re: [twdev] Re: How to use Node modules in browser?

2019-08-28 Thread bimlas
Jeremy, To make the browser to pick up changes from the server then you can trigger > polling with the tm-server-refresh message. In my own experiments I often > just change the default polling interval from 60s down to 3-5s > (via $:/config/SyncPollingInterval). > I'm afraid something is

Re: [twdev] Re: How to use Node modules in browser?

2019-08-29 Thread bimlas
Jeremy I found why my files didn't load: the code above (https://groups.google.com/d/msg/tiddlywikidev/wKqzwaMfBJw/YwJVbBjGBAAJ) works, but only if I am not using a system tiddler, as they are not loaded by Syncadapter. The description of Syncadaptor is ambiguous

Re: [twdev] Re: How to use Node modules in browser?

2019-08-29 Thread bimlas
Opened https://github.com/Jermolene/TiddlyWiki5/pull/4211 and https://github.com/Jermolene/TiddlyWiki5/pull/4212 -- 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

Re: [twdev] Re: How to use Node modules in browser?

2019-08-29 Thread bimlas
> Yes, it should be documented there. > Opened https://github.com/Jermolene/TiddlyWiki5/pull/4213 -- 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] How to use WebServer without Node.js?

2020-03-05 Thread bimlas
Mohammad, Not sure if this Python Script can do the Job > > https://kookma.github.io/TW-Scripts/#Easy%20local%20saving%20with%20Python > Unfortunately this only works with the single HTML wiki, so I can't query individual tiddlers. Nonetheless, it may be helpful, thank you for the tip. --

[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread bimlas
Jed, I didn't even think about Bob, because it's a binary file that I can't run on a web host's server. The server is not my own, only accessed through the cPanel interface. Do you know how to get started? -- You received this message because you are subscribed to the Google Groups

[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread bimlas
I remember there was a web page that used Tiddly just like this: the look was maybe PHP and Tiddly was the database. A dark red color dominated the site. Does anyone remember which side it was? -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.

[twdev] Re: How to use WebServer without Node.js?

2020-03-05 Thread bimlas
TonyM, I want to get Tiddly to keep and edit notes that I can display on a web page independently of Tiddly. So Tiddly would be the "editor", but the display would be eg. In PHP. On the other hand, I also want to make the wiki completely online, so that I can access it anywhere and the changes

Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
Jeremy, The "th-renaming-tiddler" hook is invoked by "$:/core/modules/wiki-bulkops.js" -> "renameTiddler()" . This function is called by the "

Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
I tried importing the above example into the Text-Slicer edition and after slicing the example text when I turned on the toolbar (which sends the "tm-rename-tiddler" message) in the left sidebar and renamed the tiddler there, in the console "RENAME" appeared, so the hook is executed here, but

[twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
t didn't happen either. What could be the problem? /*\ title: $:/plugins/bimlas/my-plugin/startup/relink-or-rename.js type: application/javascript module-type: startup Hook on rename \*/ (function() { /*jslint node: true, browser: false */ /*global $tw: true */ "use strict"; // E

[twdev] Re: Hook defined in startup module not working

2020-01-31 Thread bimlas
I've found the problem: the tiddler I wanted to rename was not listed in othe tiddler's fields (neither in the "tags" nor in the "list" field), so the hook didn't executed and therefore the messages didn't appear. Can I create hooks that will be executed anyway when renaming, even if they have

Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
For readers of this thread, I've opened the pull request: https://github.com/Jermolene/TiddlyWiki5/pull/4434 -- 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