Re: [tw] Create tiddlers from an external program?

2017-07-17 Thread TJ Hoeft
Thank you so much for the ideas! Much appreciated. Ideally, I was hoping 
that the stand alone wiki file would have an API to do what Josiah is doing 
with regex. I love TW's rolling history, search and tags. It would be 
really great to use in small adhoc programming projects to index things. An 
example is working with someone else's code base and making edits.  You 
need to index the source and isolate a working set to patch in changes. 
 It's easy to get lost and waste a lot of time trying to remember where you 
were.  Using TW, one could index, search, annotate and even check in their 
notes into a version control system.

Andreas, I will have a look at the code. Josiah, I will see if I can do 
custom injection as you described.
TJ

On Monday, July 17, 2017 at 2:23:29 AM UTC-7, @TiddlyTweeter wrote:
>
> Ciao Andreas & TJ Hoeft
>
> About the only area of computing I would say I am any good at is regular 
> expressions. 
>
> FWIW, I directly create and inject Tiddlers using advanced Grep software 
> that can run regex over a normal text, html, spreadsheet, or most anything 
> you want, re-make the result in Tiddlers and directly automatically insert 
> them into a TW. 
>
> The actual mechanics are hard to explain as I'm using proprietary software 
> to do it. But its worth bearing in mind---Tiddlers are simply text as far 
> as regex engines are concerned and trivially easy to create that way. This 
> is more an approach suited to bigger TW--for instance for quickly porting 
> over whole novels to TW format.
>
> Best wishes
> Josiah
>
>  
>
>> Andreas Hahn wrote ...
>>
> If you want to write tiddlers into a single-file TW, I don't know of 
>> any direct way, so I imagine the easiest thing to do is to choose one of 
>> the options above and then let the nodejs instance render the 
>> single-file 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 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/39136d23-9224-4956-9db1-11527fff7831%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Create tiddlers from an external program?

2017-07-17 Thread @TiddlyTweeter
Ciao Andreas & TJ Hoeft

About the only area of computing I would say I am any good at is regular 
expressions. 

FWIW, I directly create and inject Tiddlers using advanced Grep software 
that can run regex over a normal text, html, spreadsheet, or most anything 
you want, re-make the result in Tiddlers and directly automatically insert 
them into a TW. 

The actual mechanics are hard to explain as I'm using proprietary software 
to do it. But its worth bearing in mind---Tiddlers are simply text as far 
as regex engines are concerned and trivially easy to create that way. This 
is more an approach suited to bigger TW--for instance for quickly porting 
over whole novels to TW format.

Best wishes
Josiah

 

> Andreas Hahn wrote ...
>
If you want to write tiddlers into a single-file TW, I don't know of 
> any direct way, so I imagine the easiest thing to do is to choose one of 
> the options above and then let the nodejs instance render the 
> single-file 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 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/dee46e73-56d5-4903-b3e7-1e47977a4c13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Create tiddlers from an external program?

2017-07-17 Thread 'Andreas Hahn' via TiddlyWiki

Hi TJ,

yes, there is several ways to do this:

1. A few years back I wrote a minimalist example class in python to 
save/load tiddlers into an *active* nodejs TW instance, I've attached it 
to this email.


2. If you don't need/want a nodejs instance to run you could always 
write out '.tid' or '.json' files into the tiddler directory of a nodejs 
TW directly, those are very simple file formats. You could also 
interface with tiddlyweb[1] (written in python) directly if you need 
more advanced features.


3. If you want to write tiddlers into a single-file TW, I don't know of 
any direct way, so I imagine the easiest thing to do is to choose one of 
the options above and then let the nodejs instance render the 
single-file TW.




[1] https://github.com/tiddlyweb/tiddlyweb (API's here: 
https://tank.peermore.com/tanks/tiddlyweb/API)


--
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/38bf0c73-f711-a31c-2d31-017ca569452e%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.


twstorage.tar
Description: Binary data


[tw] Create tiddlers from an external program?

2017-07-16 Thread TJ Hoeft
Hello,
Has anyone done any work creating tiddlers from external programs such as 
Python?  Would like to experiment with creating searchable log files as 
well as indexing source code trees.
Thank you ahead of time,
TJ

-- 
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/ff4d4ba3-3a2e-4c34-83c8-b1033702ab0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.