Hi Jeremy,

Wonderful, thank you for the additional tips.

Cheers,
-- Xavier Cazin


On Tue, Apr 9, 2019 at 9:30 AM Jeremy Ruston <[email protected]>
wrote:

> Hi Xavier
>
> I think this saver will prove immensely useful, thank you!
>
>
> I’m just embarrassed that it took me so long to realise that this was
> possible, and immense gratitude to 38911BytesFree on GitHub who developed a
> version for TiddlyWiki Classic 4 years ago:
>
> https://github.com/38911BytesFree/TiddlyWiki/issues/2
>
> Since we'll certainly want to use it to *publish* wikis (with Github
> Pages), I'd suggest adding a setting *Filter* that allows to save only a
> subset of the tiddlers. For instance, a value "[!tag[Work In Progress]]"
> would sync all tiddlers but those not yet ready for public release.
>
>
> That can be done by creating a custom download button that references a
> custom template. The download button would look like this:
>
> <$button class="tc-btn-big-green">
> <$action-sendmessage $message="tm-download-file" $param="$:/_mytemplate"
> filename="output.html"/>
> Download Filtered {{$:/core/images/save-button}}
> </$button>
>
>
> And then $:/_mytemplate would look like this:
>
> \define saveTiddlerFilter()
> [is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]]
> -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]]
> -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[tag[Work In Progress]]
> +[sort[title]]
> \end
> {{$:/core/templates/tiddlywiki5.html}}
>
>
> If one wanted to arrange things so that clicking the usual “save changes”
> button invokes the default saver, but that the special “publish” button
> invokes the GitHub saver, then one would temporarily set the
> $:/GitHub/Username tiddler within the button action string.
>
> Best wishes
>
> Jeremy
>
>
> Cheers,
> -- Xavier Cazin
>
>
> On Mon, Apr 8, 2019 at 11:00 PM Jeremy Ruston <[email protected]>
> wrote:
>
>> I’ve made a first cut at a saver to save directly to GitHub:
>>
>>
>> https://github.com/Jermolene/TiddlyWiki5/commit/aa5eaa98fcb8658dbc2b93476c2e09c9207439d8
>>
>> It works similarly to the upload saver that is used with TiddlySpot: once
>> configured in control panel it takes over saving duties. It can save to an
>> arbitrary filename, path, branch and repository.
>>
>> We still need a beginners tutorial, but there’s some docs here:
>>
>> https://tiddlywiki.com/prerelease/#Saving%20to%20GitHub
>>
>> This is a single file saver, but there’s a lot of potential with this API
>> for other configurations, in particular supporting single file wikis.
>>
>> As ever, please reply here with any questions or comments,
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>> On 8 Apr 2019, at 17:43, Mohammad <[email protected]> wrote:
>>
>> Many Thanks Jeremy!
>> TW deserves to have that capability
>>
>> Best
>> Mohammad
>>
>> On Monday, April 8, 2019 at 3:14:18 PM UTC+4:30, Jeremy Ruston wrote:
>>>
>>> Hi Mohammad
>>>
>>> Referring to: https://github.com/Jermolene/TiddlyWiki5/issues/3890
>>>
>>> And the nice https://github.com/38911BytesFree/TiddlyWiki
>>>
>>>
>>> That is very interesting, I'm sorry I missed it when it was first
>>> released. More to the point, I missed the existence of the GitHub APIs that
>>> it uses for saving files. When I get a chance I shall try to spin up a
>>> GitHub Pages saver for TW5.
>>>
>>> Best wishes
>>>
>>> Jeremy.
>>>
>>>
>>> To save Tiddlywiki directly to GitHub Pages, is it possible to
>>>
>>>
>>>    1. Have GitHub Saver plugin? or
>>>    2. Update the current classic TW to TW5?
>>>
>>>
>>> --Mohammad
>>>
>>>
>>> --
>>> 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 post to this group, send email to [email protected].
>>> 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/d2c2a41a-f9bf-42e6-8fce-11534ebfaf48%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/d2c2a41a-f9bf-42e6-8fce-11534ebfaf48%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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/bd4a11d5-784d-4b72-a269-8ce8d19bc9be%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/bd4a11d5-784d-4b72-a269-8ce8d19bc9be%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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/3D46B891-4DCB-45F6-BAA0-CC9971E38E18%40gmail.com
>> <https://groups.google.com/d/msgid/tiddlywiki/3D46B891-4DCB-45F6-BAA0-CC9971E38E18%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/CADeSwYPKk-8W8Ug9%2BeL4QoWQaJa41Zw%2BE9RKxsravH%3DftfjaDQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/tiddlywiki/CADeSwYPKk-8W8Ug9%2BeL4QoWQaJa41Zw%2BE9RKxsravH%3DftfjaDQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/9A54A79D-773B-412D-AC2E-1AF3FB3868FE%40gmail.com
> <https://groups.google.com/d/msgid/tiddlywiki/9A54A79D-773B-412D-AC2E-1AF3FB3868FE%40gmail.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To post to this group, send email to [email protected].
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/CADeSwYN%3DX5oCLYMdVYd91iUQsgyAUh2ECotQn%2BCgZxrCVdfd2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to