[tw5] How to start nodejs server from custom path?

2020-01-29 Thread LinOnetwo
I'd like to start server from %appData%/omnitiddly/tiddlywiki , but there seem being no param in cli to do so, it can only start relative to PWD. I'm going to start tiddlywiki from electron app, so I'm going to do something like this: const $tw = require('tiddlywiki/boot/boot.js').TiddlyWiki();

[tw5] Re: How to start nodejs server from custom path?

2020-01-29 Thread LinOnetwo
f("--") !== 0) { $tw.boot.wikiPath = $tw.boot.argv[0]; $tw.boot.argv = $tw.boot.argv.slice(1); } else { $tw.boot.wikiPath = process.cwd(); } 在 2020年1月29日星期三 UTC+8下午6:15:20,LinOnetwo写道: > > I'd like to start server from %appData%/omnitiddly/tiddlywiki , b

[tw5] Re: [tw] [TW5] converting standard Tiddlywiki to Node.js Tiddlywiki (and back)

2020-04-08 Thread LinOnetwo
Hi, Bob I think you can write a script to monitor local port, for example, a zazuapp.org/ plugin, then you can write a JS widget that fetch( local port ) 在 2016年6月18日星期六 UTC+8下午5:51:15,Bob Flandard写道: > > Hi Jeremy, > > Thank you for the saving suggestion. I think overall for my taste the > b

[tw5] Re: [tw] [TW5] converting standard Tiddlywiki to Node.js Tiddlywiki (and back)

2020-04-08 Thread LinOnetwo
I come here from Google search, I'd like to find a way to convert HTML to nodejs wiki programmitcally, so I can do it using a JS script. When I modified a wiki that is hosted in github pages ( via Github SyncAdaptor, which only support HTML wiki) , I want a Github Action to unpack HTML file and

[tw5] Re: Presenting: EditorMagic - the editor as an assistant

2020-04-09 Thread LinOnetwo
I really like this, it looks like Notion's early design: where you can see macros on the right. When will it be a stable relese? I'd like to use in my wiki! 在 2020年3月3日星期二 UTC+8下午5:19:17,Mat写道: > > [Update: Firefox has issues >

[tw5] Re: IdeaStew: Enabling the preview and quote button on the toolbar

2020-04-09 Thread LinOnetwo
Hi Alysha, you can goto $:/ControlPanel -> appearance ->toolbar -> editor toolbar to check the button you want. I'm also trying to make tiddlywiki to do what I can achieve in Roam, I'm using simply <> tagged with $:/tags/ViewTemplate to add by-directional link in every tiddler 在 2020年3月27日

[tw5] Re: Tagging with Transclusions?

2020-04-09 Thread LinOnetwo
I think you can use a macro to do such transclude, while transcluding, you also add some color or side note or a "edit me" button to the side. I'm now transcluding using <> with \define reuse-pane(content) $content$ \end \define get-tiddler-name(title) <$set name="tid" value="$title$"> <

[tw5] Re: Tagging with Transclusions?

2020-04-09 Thread LinOnetwo
I got this idea from https://wiki.hintsnet.com @pimgeek 在 2020年4月10日星期五 UTC+8下午12:22:59,LinOnetwo写道: > > I think you can use a macro to do such transclude, while transcluding, you > also add some color or side note or a "edit me" button to the side. > > I'm now

[tw5] Re: What is your "philosophy" when using tags and links?

2020-04-09 Thread LinOnetwo
Hi si, If you install the tw-locator plugin and follow the readme to create a "folder" tab, you can use tab to create folder-like structure. So tag can define the tiddler's location in that "file system" And for link, they are just quick button to open other file, when you are reading a file.

[tw5] Re: Tiddlywiki + Anki Cards?

2020-04-10 Thread LinOnetwo
I'm recently consider implement this, I will use nodeJS TiddlyWiki and Anki Connect to do so. As new feature "Add a "filter" parameter to the GET /recipes/default/tiddlers/tiddlers.json route to return a filtered subset of tiddlers" is added in 5.2.2 I think I can make a simple Anki Plugin that

[tw5] How to do Transclusion with JS macro

2019-05-06 Thread LinOnetwo
I've writed a macro: -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@goog

[tw5] How to write JS template for Transclusion?

2019-05-06 Thread LinOnetwo
(function() { exports.name = 'listtosentence'; exports.params = [{ name: 'text', defalue: '' }]; exports.run = function(text) { return text .split(/\s?\*\s/) .filter(it => it) .join('、'); }; })(); I've writen this macro -- You received this message because you a

[tw5] Re: How to write JS template for Transclusion?

2019-05-06 Thread LinOnetwo
I can't write wikitext or this forum will throw error on console...So: 在 2019年5月6日星期一 UTC+8下午6:29:37,LinOnetwo写道: > > (function() { > exports.name = 'listtosentence'; > > exports.params = [{ name: 'text', defalue: '' }]; > > exports

[tw5] Re: How to write JS template for Transclusion?

2019-05-07 Thread LinOnetwo
l $name=listtosentence text={{!!text}}/> > > Then call the transclusion like: > > {{SomeListTiddler||MyTemplate}} > > Notice that it uses {{!!text}} to pick up the text of the tiddler to which > the template is applied. > > Good luck! > > On Monday, May 6, 2019 at 3:3

[tw5] Re: Collaborative use of TW—possibility to merge?

2019-06-16 Thread LinOnetwo
I think a simple way to prevent conflict is letting people working on several different tiddlers, and transclude them together. To prevent people editing same file, maybe you can use webrtc or libp2p to indicate a tiddler is currently being editing, thus prevent people from change it. Just like