Hi Tony > How can I add another such as
Currently, file types can only be registered in boot.js. The problem is that the file types are needed early in the boot process in order to be able to read the files in the wiki folder. It might be possible to engineer a way to add optional file extensions after bootup, but in the meantime I think it's reasonable to keep adding them to boot.js, as long as they are fairly general purpose. > So I can export with the cmd extension? That should be possible without extending the core file extensions table. In exporter modules like $:/core/templates/exporters/CsvFile you'll see that the file extension is stored in a field; you can create an exporter for .cmd files that sets the correct file extension. Best wishes Jeremy -- Jeremy Ruston [email protected] https://jermolene.com > On 3 Dec 2017, at 03:01, TonyM <[email protected]> wrote: > > Eric, > > If you have no time to investigated this you self could you give some > guidance? > > It may only be a matter of being able to append to the existing table of > registered file type after the tiddlywiki file has being opened. > > Thanks either way > > Tony > >>> On Sunday, 3 December 2017 13:16:24 UTC+11, Eric Shulman wrote: >>> On Saturday, December 2, 2017 at 5:43:06 PM UTC-8, PMario wrote: >>> You can't, because there is no mime-type: text/cmd >>> see: https://en.wikipedia.org/wiki/Media_type >>> and: https://www.iana.org/assignments/media-types/media-types.xhtml#text >> >> Although it is not recommended, you can specify ANY string you like as a >> mime type, even if it is not included in any of the defined standards. >> Thus, you can enter "text/cmd" into the "Type" field of a tiddler. However, >> since that is not a standard type, it won't be recognized by any of the >> usual mechanisms. Nonetheless, if you extend TiddlyWiki's >> registeredFileType definitions, you SHOULD be able to export tiddlers with >> "type/cmd" to files with a ".cmd" extension. Note that I have NOT tried >> this myself, so there may be more involved in making it work. >> >> -e > > -- > 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/1b7dc0f6-2282-4f89-bdcc-3d7dffc5d6d9%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 [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/21214493-646A-426A-8383-0CD003AE91F0%40gmail.com. For more options, visit https://groups.google.com/d/optout.

