[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 can query all tiddler in a 
NodeJS wiki that are tagged with some tag, or match the provided filter.

Then I use tiddlywiki as single source of truth, update the anki database, 
sync all matched tiddler into a designated card desk, add missing ones, 
delete card that is deleted in TW, and retain previous card learning 
metadata untouched.

I will start doing so after 5.2.2 is released.

在 2017年12月13日星期三 UTC+8下午3:54:06,Amit Ahire写道:
>
> Hello!
>
>
> Any way of creating anki flash cards (.apkg) from tiddlywiki so as to make 
> it easily importable into anki app? 
>
> This thought just passed my head and as I am a bit busy at the moment 
> hence haven't had the time to delve too deep into it. So apologize for the 
> half baked notion.
>
> If not, I will update this thread later, if I come across some way about 
> it.
>
> Thanks
>
>
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/11dd7523-7185-4df3-82e4-0e550b15859b%40googlegroups.com.


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

在 2020年4月8日星期三 UTC+8下午8:12:56,si写道:
>
> I have a feeling that I am not utilizing links as well as I could be so 
> I'm wondering how others approach using tags and links.
>
> Currently I pretty much exclusively use tags to structure my wiki. If you 
> have ever used "TheBrain" this is basically how I think about my wiki. I 
> think of every tiddler as a concept that has other higher-level or 
> lower-level concepts associated with it. Tags simply represent "parent" 
> tiddlers, just like with the TOC macros.
>
> From any tiddler I can jump to parent or sibling tiddlers by clicking on 
> the tags, and child tiddlers through a list filtered with the tagging 
> operator.
>
> I have found that although I add links to other tiddlers if I happen to 
> use the title in the text, if I want to explicitly relate two tiddlers I 
> always do this with tags.
>
> As a result I feel that I am not using links as effectively as I can, so I 
> wondered how other people think about the way that they use these 
> fundamental features of TW?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9f250b5e-3ee7-44d2-a2b5-ded5bab5d944%40googlegroups.com.


[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 transcluding using <>
>
> with
>
> \define reuse-pane(content)
> 
>style="display:inline-block;background-color:lavender;border-left:3px solid 
> slateblue;padding-left:5px;">$content$
> 
> \end
>
> \define get-tiddler-name(title)
> <$set name="tid" value="$title$">
>   <$list filter="[all[current]title]">
> <$link to=<>>
>   <$view field="name"><$view field="title"/>
> 
>   
> 
> \end
>
> \define get-tiddler-source(title)
> <$text text={{$title$}} />
> \end
>
> \define get-tiddler-field(title field)
> <$set name="fid" value="$field$">
>   <$list variable="fid-val" 
> filter="[[$title$]get]"><>
> 
> \end
>
> \define reuse-tiddler(title)
> <$macrocall $name="reuse-pane" content="""
> Edit Source:<>
> """ />
>
> {{$title$}}
>
> \end
>
> 在 2020年4月10日星期五 UTC+8上午5:15:41,Alex Olsen写道:
>>
>> I've thought of a workaround. Sometimes all a seemingly complex problem 
>> needs is a break and fresh eyes to realize it's not as complex as you're 
>> making it!
>>  
>>
>>> How does the system know it is an unfinished tiddler (so the 
>>> transclusion can be applied)? What is the difference between an unfinished 
>>> and finished tiddler?
>>>
>>
>> Ideally with a tag. I plan on using 'incomplete' for any tiddler left 
>> unfinished. I also wanted an array of in-line messages that were easy to 
>> see, all of which would tag anything that transcludes them they same way. 
>> These messages would describe the nature of incompleteness. I have no idea 
>> what these would include. That's the first sign I'm on the wrong track.
>>
>> Fundamentally my issue is that I want to have an easy way to organize 
>> what I need to finish. That's made difficult by the way I'd like to do it: 
>> a very visible manner which automatically updates a list of tiddlers that 
>> have the same need for completion.
>>
>> Moving forward, I'll be applying an incomplete tag to anything as I begin 
>> it and remove that tag afterwards. Simple problems require the simplest 
>> solutions!
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4f15b1e0-869c-4f05-b0ae-e017d0e0c479%40googlegroups.com.


[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$">
  <$list filter="[all[current]title]">
<$link to=<>>
  <$view field="name"><$view field="title"/>

  

\end

\define get-tiddler-source(title)
<$text text={{$title$}} />
\end

\define get-tiddler-field(title field)
<$set name="fid" value="$field$">
  <$list variable="fid-val" filter="[[$title$]get]"><>

\end

\define reuse-tiddler(title)
<$macrocall $name="reuse-pane" content="""
Edit Source:<>
""" />

{{$title$}}

\end

在 2020年4月10日星期五 UTC+8上午5:15:41,Alex Olsen写道:
>
> I've thought of a workaround. Sometimes all a seemingly complex problem 
> needs is a break and fresh eyes to realize it's not as complex as you're 
> making it!
>  
>
>> How does the system know it is an unfinished tiddler (so the transclusion 
>> can be applied)? What is the difference between an unfinished and finished 
>> tiddler?
>>
>
> Ideally with a tag. I plan on using 'incomplete' for any tiddler left 
> unfinished. I also wanted an array of in-line messages that were easy to 
> see, all of which would tag anything that transcludes them they same way. 
> These messages would describe the nature of incompleteness. I have no idea 
> what these would include. That's the first sign I'm on the wrong track.
>
> Fundamentally my issue is that I want to have an easy way to organize what 
> I need to finish. That's made difficult by the way I'd like to do it: a 
> very visible manner which automatically updates a list of tiddlers that 
> have the same need for completion.
>
> Moving forward, I'll be applying an incomplete tag to anything as I begin 
> it and remove that tag afterwards. Simple problems require the simplest 
> solutions!
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3e423a2d-cffe-40e7-9700-148a9f1d3888%40googlegroups.com.


[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日星期五 UTC+8上午5:43:09,Alysha Chua写道:
>
> Hey David! 
>
> Been using Tiddlyblink for a while now, but was very intrigued with 
> IdeaStew as well. But for the life of me, I can't figure out how to enable 
> the preview and quote button on the editor toolbar. I can't find the 
> options to re-enable them on the $:/ControlPanel option.  The standard 
> shortcuts to use them (alp+P) and (ctl+q) don't appear to be working as 
> well. 
>
> Any tips on how to get around this? I'm a new user to Tiddlywiki, so I'm 
> trying to find my way around it. I've started as a Roam user but found your 
> adaptation to Tiddlyblinks handy, and I've been down the rabbit hole ever 
> since 
>
> Cheers,
> Alysha
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ea7e620b-8a2e-4639-99f5-c2e7dbe59eab%40googlegroups.com.


[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 
>  with this that are 
> resolved in 5.1.22]
>
> TWaddle Corona Labs proudly unleash
> the solution to the pollution
> the vaccine to the wolverine
> the tiddler for the quibbler:
>
> EditorMagic 
>
> - make your editor into an assistant!
>
>
> Occasionally I feel I'm onto something that should really make a big 
> impact. I'm usually wrong. This time I had better be right or *you* are 
> wrong ;-) ;-)
>
> Unfortunately it is still *half-baked* but I'm releasing it hoping people 
> will see its potential so it can be collectively improved upon.
>
> <:-)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6306167c-0133-4817-90d0-dc6be5fb972a%40googlegroups.com.


[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 update the nodejs wiki in 
the matster branch, so I need a way to do so in JS instead of do it by hand.

Is that possible?

在 2016年6月17日星期五 UTC+8下午11:46:11,Jeremy Ruston写道:
>
> Hi Bob
>
> Sorry if this question is naive. I followed the instructions to install a 
> Node.js version of TW (Windows) and all went smoothly. How do I convert my 
> existing standard single file TW into a Node.js version, and then convert 
> it back if I need to? My standard TW has some non-standard templates and 
> possibly other non-core "system" tiddlers.
>
>
> The easiest way to convert a TiddlyWIki standalone HTML file into the 
> Node.js layout is to run the Node.js wiki in client-server mode, and then 
> import the HTML file by drag and drop in the browser. (You can also use the 
> --load command; see /bin/ginsu.sh in the TW5 repo).
>
> To convert the other way, either click the “save changes” button in the 
> browser to save a snapshot of the wiki as a standalone HTML file, or use 
> the --rendertiddler command:
>
> --rendertiddler $:/plugins/tiddlywiki/tiddlyweb/save/offline index.html 
> text/plain
>
> Best wishes
>
> Jeremy.
>
>
>
> Thanks, Bob
>
> -- 
> 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 tiddl...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/aefe42de-b556-4767-b37d-26581dc6feda%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a32b92d6-c8d9-499d-bfdb-4c387c54bd32%40googlegroups.com.


[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 
> benefits of that option wouldn't outweigh the effort of switching browser 
> and having to clear-out the multiple back-ups it would dump on the 
> hard-drive.
>
> I think I need make a Windows batch file to do the back-up. Is it possible 
> to execute a Windows batch file from a button in TW5? It does sound like a 
> dangerous thing to do, so I'm guessing not.
>
> Regards, Bob
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cfa952d3-d18d-4b9e-95ce-54fee6ecae34%40googlegroups.com.


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

2020-01-29 Thread LinOnetwo
Oh I know the answer, just add path to first argument:

// If the first command line argument doesn't start with `--` then we
   // interpret it as the path to the wiki folder, which will otherwise 
default
   // to the current folder
   if($tw.boot.argv[0] && $tw.boot.argv[0].indexOf("--") !== 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 , 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();
>
> // Pass the command line arguments to the boot kernel
> $tw.boot.argv = ['listen', '-path %appData%/omnitiddly/tiddlywiki'];
>
> // Boot the TW5 app
> $tw.boot.boot();
> Can I do so?
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c1084d4f-c1b4-4ab5-ae6b-f021b3e0b3d6%40googlegroups.com.


[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();

// Pass the command line arguments to the boot kernel
$tw.boot.argv = ['listen', '-path %appData%/omnitiddly/tiddlywiki'];

// Boot the TW5 app
$tw.boot.boot();
Can I do so?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c8d71527-7011-461c-a034-2b947392f6ca%40googlegroups.com.


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

2019-06-17 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 how Quip lock a line.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0b02b490-2e40-4ff4-a94c-11d83b5657a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-05-07 Thread LinOnetwo
Oh, this actually makes an infinite loop, and my page blocks

在 2019年5月7日星期二 UTC+8下午12:39:22,Mark S.写道:
>
> You would need to wrap it in a tiddler, and then use that tiddler for 
> transclusion.
>
> So maybe (untested)
>
> Tiddler: MyTemplate
> Text: <$macrocall $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:31:30 AM UTC-7, LinOnetwo wrote:
>>
>> 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.run = function(text) {
>>> return text
>>>   .split(/\s?\*\s/)
>>>   .filter(it => it)
>>>   .join('、');
>>>   };
>>> })();
>>>
>>> I've writen this 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@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e3886908-854c-4c69-a7d8-c02d2185419b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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.run = function(text) {
> return text
>   .split(/\s?\*\s/)
>   .filter(it => it)
>   .join('、');
>   };
> })();
>
> I've writen this 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@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/72d52d53-f1fe-4a0d-8c1c-084a99146db3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ddfd7c31-dad4-48f9-b1ca-1e10819f062a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6cdad089-ec4d-48a0-b34d-93709b7d29b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.