[twdev] Re: Migrating to GitHub discussions

2021-04-29 Thread LinOnetwo
Strongly agree, I use Github alot, and use tiddlywiki google group sometimes, and rarely come to tiddlywikidev for a time. 在2020年12月12日星期六 UTC+8 上午1:26:01<@TiddlyTweeter> 写道: > Ciao Jeremy > > Good idea. (1) GG is becoming a big pain to use. Especially if you need to > add code blocks or edit

[twdev] Re: Awesome Starred Tiddlywiki Tools

2021-04-29 Thread LinOnetwo
I discuss alot with bourgeoa about store tw content to solid last year, and I finally choose Github as my BaaS instead of choosing SoLiD. Glad to see bourgeoa is still carry this on. 在2021年4月15日星期四 UTC+8 下午3:36:47 写道: > Also see > >

[twdev] Re: How to delete tiddler without trigger fs.unlink? And how to sync change from server to browser?

2020-08-08 Thread LinOnetwo
Plugin is here https://github.com/Jermolene/TiddlyWiki5/issues/3060#issuecomment-670850286 I have to create a fake file for tiddlywiki to delete. 在2020年8月8日星期六 UTC+8 上午12:55:40 写道: > > Hi everyone, > > I'm trying to create a plugin that monitor disk change, and update wiki > state, discussion

[twdev] How to delete tiddler without trigger fs.unlink? And how to sync change from server to browser?

2020-08-07 Thread LinOnetwo
Hi everyone, I'm trying to create a plugin that monitor disk change, and update wiki state, discussion is here: https://github.com/Jermolene/TiddlyWiki5/issues/3060#issuecomment-670610762 Do you know which widdlywiki API can update the wiki in the browser from the nodejs server? And which

Re: [twdev] [service worker] I introducing service worker and webmanifest to the wiki, make my Wiki a PWA, now it can work offline!

2020-04-20 Thread LinOnetwo
Forget to say, I'm precaching things using workbox-cli https://github.com/linonetwo/Tiddlywiki-NodeJS-Github-Template/blob/cecfe6df1daff1ad5b21b3c85a261489284e67fb/package.json#L18 This requires running npm command to generate the final ./public/service-worker.js from the ./PublicWiki/public

[twdev] Re: [service worker] I introducing service worker and webmanifest to the wiki, make my Wiki a PWA, now it can work offline!

2020-04-20 Thread LinOnetwo
ne?. > > What other imitations do you see? > > I love your contributions to the Tiddlywiki community, very innovative. > > Regards > Tony > > On Wednesday, April 15, 2020 at 4:41:20 AM UTC+10, LinOnetwo wrote: >> >> I read the tutorial of PWA today, and created

Re: [twdev] [service worker] I introducing service worker and webmanifest to the wiki, make my Wiki a PWA, now it can work offline!

2020-04-15 Thread LinOnetwo
I think you can also use service-worker.js in gh-page, if you already using that, you can try doing it in gh-page first. Just like this example https://github.com/linonetwo/ipfs-browser-gateway/tree/gh-pages 在 2020年4月15日星期三 UTC+8下午4:04:37,Mohammad写道: > > Hi Lin, > Many thanks! This

Re: [twdev] [service worker] I introducing service worker and webmanifest to the wiki, make my Wiki a PWA, now it can work offline!

2020-04-15 Thread LinOnetwo
Hi, Mohammad, For now, I'm just using a RawMarkup tiddler, as in the attachment, to load the service-worker.js served in /service-worker.js So you may have to serve your HTML wiki along with service-worker.js I think it is very easy to use, if you are using a static server (for example

[twdev] Re: [service worker] I introducing service worker and webmanifest to the wiki, make my Wiki a PWA, now it can work offline!

2020-04-15 Thread LinOnetwo
Hi Mario, I read the doc again, I can assure that these ga related code are used to help page that already have ga to collect data even offline. If our wiki don't use ga already, and not explicitly use that

[twdev] [service worker] I introducing service worker and webmanifest to the wiki, make my Wiki a PWA, now it can work offline!

2020-04-14 Thread LinOnetwo
I read the tutorial of PWA today, and created a manifest.webmanifest : https://github.com/linonetwo/Tiddlywiki-NodeJS-Github-Template/blob/master/PublicWiki/public/manifest.webmanifest to test if it can turn my wiki into an APP that can be installed in my mobile phone, and I succeed! Then I

[twdev] Re: How to generate JSON for a plugin for a Library

2020-04-12 Thread LinOnetwo
I see TodlIist plugin https://kookma.github.io/TW-Todolist/ from KooKma is using JSON in $__todolist_data_base_tasks.json Maybe you can take a look 在 2020年4月13日星期一 UTC+8上午5:00:09,Andrew写道: > > Hey everyone, it has been awhile since I worked on anything. Trying to > pick up were I left off but

[twdev] How to hook in SyncAdaptor to execute code before saveTiddler() and after loadTiddler() ?

2020-04-12 Thread LinOnetwo
Hi, I'd like to push TW5-EncryptTiddlerPlugin a step forward. I want my wiki to work like Notion, so I can mix Public and Private content in one wiki, and tag some content to be Public. So I need to encrypt tiddler with for example "EncryptThis" tag just before any SyncAdaptor, e.g., NodeJS

[twdev] Re: Comments in code - this is how we can do it.

2020-04-12 Thread LinOnetwo
This gives me a feeling of literal programming, that you can weave document and code together. I think this kind of rich text comment is even more interesting. I think I will add lots of this kind of rich text comment to my code, even Javascript code. 在 2020年4月7日星期二 UTC+8下午7:33:33,Mat写道: > >

[twdev] Re: [Visual Studio Code][Beta] TwiddlyWiki5 Syntax Highlighting for VSCode!

2020-04-09 Thread LinOnetwo
Wow, that is very useful, when developing plugin. Looking forward to your release to marketplace! 在 2020年3月29日星期日 UTC+8上午3:52:08,Joshua Fontany写道: > > Hi! > > I've thrown together a quick extension for Visual Studio Code to enable > syntax highlighting. I have not yet added it to the MS

[twdev] Re: Example using webpack to integrate npm module into a plugin

2020-01-29 Thread LinOnetwo
I'm also using webpack to bundle files in https://github.com/linonetwo/solid-tiddlywiki-syncadaptor 在 2017年6月24日星期六 UTC+8上午10:05:52,Brian Theado写道: > > On the main TW list, I announced a plugin integrating the Eve language > with TW > https://groups.google.com/d/msg/tiddlywiki

Re: [twdev] How can I push data to tw in SyncAdapter

2020-01-22 Thread LinOnetwo
Thank you! That really works, speed up the content loading. I guess I can do same thing to `getSkinnyTiddlers()`, so skinny tiddlers can be loaded in the async way. 在 2020年1月23日星期四 UTC+8上午12:54:18,Jeremy Ruston写道: > > Hi LinOneTwo > > To load a tiddler, your syncadap

[twdev] How can I push data to tw in SyncAdapter

2020-01-22 Thread LinOnetwo
I'm continuing on my solid-syncadaptor, I'm considering only load skinnytiddlers on the first `getSkinnyTiddlers()` trigger. And in the second trigger of `getSkinnyTiddlers()`, I load all the content of tiddlers at once, and put response into Cache API

[twdev] How to send message from outside of tiddlywiki?

2019-12-27 Thread LinOnetwo
I' trying to build a new tiddlywiki desktop, I'm concerning whether I can send message likes "tm-save-wiki " from a button in the app, outside of wiki's webpage. Or thinking another case, If there is a tiddlywiki android

[twdev] How to start node tiddlywiki server programmitcally?

2019-12-25 Thread LinOnetwo
I'd like to create a desktop version, and store all tiddlers on fs or SoLiD POD, instead of a HTML file, so I can do search from outside of tiddlywiki (for example, spotlight or Alfred). But I haven’t seen any instruction on how to start https://www.npmjs.com/package/tiddlywiki

[twdev] Re: Ipfs with TiddlyWiki

2019-12-25 Thread LinOnetwo
Hi, I'm curious why you use saver than syncadaptor. I'm working on https://github.com/linonetwo/solid-tiddlywiki-syncadaptor and I choose to use syncadaptor, what is the difference between them? And, are you save each tiddlers saparately? When tiddlywiki needs to load skinnytiddlers, how

[twdev] Re: Update on the syncer rewrite

2019-12-25 Thread LinOnetwo
Cool, hope this can be merge and release soon. I'm working on https://github.com/linonetwo/solid-tiddlywiki-syncadaptor , which will save each tiddlers saparately instead of a whole HTML file. I hope I can use this syncadaptor to make tiddlywiki a mobile app that can use offline and sync when

[twdev] Re: How to send message using checkbox widget?

2019-12-24 Thread LinOnetwo
;tm-solid-not-use-server-story-list" /> \end <$checkbox field="use-server-story-list" checked="yes" unchecked="no" default="yes" checkactions=<> uncheckactions=<> > <> 在 2019年12月25日星期三 UTC+8上午12:36:37,Eric Shulman写道: >

[twdev] How to send message using checkbox widget?

2019-12-24 Thread LinOnetwo
I try to use following checkbox, I want the state be sync to my plugin. <$checkbox checkactions="checkUseServerStoryList" uncheckactions="unCheckUseServerStoryList" > <$action-sendmessage $name="checkUseServerStoryList" $message="tm-solid-useServerStoryList" /> <$action-sendmessage

[twdev] Re: [TW5] Should I load all TiddlerFields (only without text field) of all tiddlers for getSkinnyTiddlers() in sync adaptor?

2019-05-10 Thread LinOnetwo
st. > > I did not further explore and decided that skinnytiddlers needed all > tiddlerfields except the *text* field. > As I do not load all tiddlers at startup but only on demand, I keep an > index file for performance. > 在 2019年5月4日星期六 UTC+8下午8:09:38,LinOnetwo写道: > Sorry I

[twdev] Re: Want to translate your plugins or documentation? Try the i18n macro

2019-05-09 Thread LinOnetwo
I will definitely use this, thank you for creating this. 在 2019年5月7日星期二 UTC+8下午8:22:01,SylvainComte写道: > > HelloThere, > > I wished i was able to translate some documentation of my plugins, so I > made this i18n macro, lightweight, easy to deploy within the plugins. Some > would rather call it

[twdev] Re: Progressive Web Apps

2019-05-09 Thread LinOnetwo
We are thinking about adding SW to TW https://github.com/linonetwo/solid-tiddlywiki-syncadaptor/issues/3 this is the first step towards PWA. When user if offline, sync adaptor can save to cache and load cached tiddler after refresh, so TW can be used offline. I don't know whether TW core needs

[twdev] Re: Pros and cons with TW5, as discussed in another group

2019-05-04 Thread LinOnetwo
Hi Mat Nowadays, most famous to-C Web Apps are Single Page App, likes Notion and Evernote, they both supports "export as single zip" and "sync to backend". And TW also supports "export as single HTML" and "sync to backend", so about saving, TW don't have much downside, It's even being superior

[twdev] Re: [TW5] Should I load all TiddlerFields (only without text field) of all tiddlers for getSkinnyTiddlers() in sync adaptor?

2019-05-04 Thread LinOnetwo
LinOneTwo -- 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 tiddlywikidev@google

[twdev] [TW5] Should I load all TiddlerFields (only without text field) of all tiddlers for getSkinnyTiddlers() in sync adaptor?

2019-05-04 Thread LinOnetwo
Sorry I've just found that this forum is based on email, so I update it here: --- We are quite not sure about this https://github.com/bourgeoa/tiddlywiki-node-solid-server/issues/5#issuecomment-489087397 Guessed from the doc: If an adaptor does implement it, then every 60s (this function

[twdev] Re: Should I load all tiddlers' all tiddlerfields (only without text field) for getSkinnyTiddlers() ?

2019-05-03 Thread LinOnetwo
Update... --- We are quite not sure about this https://github.com/bourgeoa/tiddlywiki-node-solid-server/issues/5#issuecomment-489087397 Guessed from the doc: If an adaptor does implement it, then every 60s (this function get called, by default) if there are any changes from other devices to

[twdev] Should I load all tiddlers' all tiddlerfields (only without text field) for getSkinnyTiddlers() ?

2019-05-03 Thread LinOnetwo
We are quite not sure about this https://github.com/bourgeoa/tiddlywiki-node-solid-server/issues/5#issuecomment-489087397 If so, I where will these fields used? I guess, allow searching without search text? I'll need to keep an index file storing a list of all tiddler's tiddlerfields (only

[twdev] What does bag actuall means

2019-05-02 Thread LinOnetwo
tiddlyweb use bag for the location path it stores a tiddler. https://github.com/Jermolene/TiddlyWiki5/blob/c05c0d3df66e587f35c5cd3eedcac432b1eed012/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js#L229 What does it actually means? -- You received this message because you are subscribed to the

[twdev] Re: What is that browser-messaging in the console?

2019-05-02 Thread LinOnetwo
Hi, I'm running tiddlywiki demo-wiki --listen host=localhost Maybe it's from some filesystem syncadaptor? I'm overwhelmed by the message generated, my own debug console.log are washed away by those logs... 在 2019年5月2日星期四 UTC+8下午5:54:14,PMario写道: > > Hi, > > There is no

[twdev] How to support multiple languages in my plugin?

2019-05-02 Thread LinOnetwo
How can \define lingo-base() $:/language/ControlPanel/Saving/SoLiD/Config automatically change based on current language selected by user? -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving

[twdev] Re: How to deal with window is not defined

2019-05-02 Thread LinOnetwo
I finally use this webpack config: const path = require('path'); require('dotenv').config(); module.exports = { devtool: process.env.NODE_ENV === 'development' ? 'inline-source-map' : false, entry: './src/index.js', output: { filename: 'SyncAdaptor.js', path:

[twdev] What is that browser-messaging in the console?

2019-05-02 Thread LinOnetwo
It's quite much browser-messaging: http://127.0.0.1:8080/ $:/core/modules/browser-messaging.js:148:3 browser-messaging: Received message from https://solid.community $:/core/modules/browser-messaging.js:149:3 browser-messaging: Message content Object { "solid-auth-client": {…} }

[twdev] Re: How to deal with window is not defined

2019-05-01 Thread LinOnetwo
This is a typical SSR issue, use following webpack config solves it: output: { globalObject: 'this', }, 在 2019年5月2日星期四 UTC+8上午12:36:07,LinOnetwo写道: > > if ($tw && $tw.browser) exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor > > But when starting tiddlywiki from command l

[twdev] Re: How to deal with window is not defined

2019-05-01 Thread LinOnetwo
How can I prevent tiddlywiki run this plugin on nodejs? 在 2019年5月2日星期四 UTC+8上午12:36:07,LinOnetwo写道: > > if ($tw && $tw.browser) exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor > > But when starting tiddlywiki from command line, it still throws > > ReferenceEr

[twdev] How to deal with window is not defined

2019-05-01 Thread LinOnetwo
if ($tw && $tw.browser) exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor But when starting tiddlywiki from command line, it still throws ReferenceError: window is not defined -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe

[twdev] Will state likes tab-1749438307 change in the future?

2019-05-01 Thread LinOnetwo
In this page https://tiddlywiki.com/static/ActionSetFieldWidget.html How do you know state is inside $:/state/tab-1749438307? Will this value change in the future? -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group