Si,

I don't know if this is too limited of a solution for you but it is pretty 
simple. If you have your text data in a tiddler, you can just use 
tm-download-file message to create a text file using the browser download 
functionality (with all the limits that imposes).

I made a macro quite recently to do a similar thing and it works well.

\define downloadButton(tiddler:"")
<$button>Download $tiddler$
<$action-sendmessage $message="tm-download-file" $param="$tiddler$" 
filename="$tiddler$"/>
</$button>
\end

<<downloadButton "Text Tiddler Name">>

/Mike

On Tuesday, January 12, 2021 at 4:47:22 PM UTC-4 si wrote:

> Hi Tones,
>
> Sorry I did not see that you had replied until just now.
>
> I had seen that Larry Sanger had created a kind of spaced repetition tool 
> for practising programming tasks 
> <https://www.youtube.com/watch?v=Mgrdg1uwDeA>. In short it displays a 
> short programming puzzle, then will automatically create a file and open it 
> up in a text editor for you to complete the task. When you're done you can 
> run it and it will confirm that you go the correct output. It can then be 
> rescheduled so that you will see it again at some point in the future. It 
> saves a new file for every time that you complete a task, so you can look 
> at any of your previous answers.
>
> Anyway I was just wondering to myself how much of this could be recreated 
> in TiddlyWiki, and the first thing that you would need to be able to do is 
> create a file for whatever language you are using, and open it in your text 
> editor. It would also be good to be able to easily view the older versions 
> of a task from within TiddlyWiki.
>
> I'm not actually planning to make something like this right now, it's more 
> of a 'possible future project'. I was just curious as to whether or not it 
> would even be possible. I'm certainly interested in any thoughts, ideas, or 
> other solutions that you have.
>
> Si
> On Wednesday, 6 January 2021 at 05:55:11 UTC TW Tones wrote:
>
>> Si,
>>
>> As a new comer try the Bobexe implementation. 
>>
>> However TiddlyDesktop, hta and(limited) and TWExe solutions do have more 
>> access to the local system. However what do you actually want to do or use 
>> these  text files for?, creating, editing, reading, importing, generating 
>> etc...
>>
>> I have other ideas and solutions to share.
>>
>> Tones
>> On Monday, 4 January 2021 at 00:52:10 UTC+11 si wrote:
>>
>>> Great thanks Mark. I have seen people discuss Bob but never really knew 
>>> what it was. I will check it out.
>>>
>>> On Saturday, 2 January 2021 at 18:43:57 UTC Mark S. wrote:
>>>
>>>> You might check out Bob, a version of TW on node that allows you to run 
>>>> scripts on the local server.
>>>>
>>>> On Saturday, January 2, 2021 at 8:40:52 AM UTC-8 si wrote:
>>>>
>>>>> As I understand it, TW single file version cannot do anything with the 
>>>>> file system on your computer while running in a browser.
>>>>>
>>>>> Does this restriction disappear when using node.js? For example, could 
>>>>> I (theoretically) create a button in my wiki that creates a new text file 
>>>>> somewhere on my system, which is then opened automatically in a text 
>>>>> editor?
>>>>>
>>>>> It seems from my limited use that the node.js version of TW will 
>>>>> create individual tiddler files on your desktop as you create new 
>>>>> tiddlers 
>>>>> in the wiki, so presumably it is able to interact with the file system in 
>>>>> some way?
>>>>>
>>>>> I don't know anything about this topic so I am aware this is probably 
>>>>> a very nooby question!
>>>>>
>>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0f7f695f-68bd-409d-9f89-5f4b239af191n%40googlegroups.com.

Reply via email to