[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-06 Thread Shareda
Hello! (sorry for my English) 

I have made the converter scripts for html/fb2 books that slices a book to 
the atomic tiddlers and maps all the keywords as links to the keywords 
tiddlers wich are the summary of all occurrences. So I get something like 
tiddlybook or hyperbook. Then I can read the book "non-linear" :)  and make 
any notes, attatch favmarks and so on, getting my own research and 
extract of the source.

Recently I saw the Obsidian Graphs. That is beautiful for me. Not useful 
:^) And now I am making and testing some custom integrations between 
TiddlyWiki on Node.js and Obsidian Markdown vault.

Yesterday I noticed that TiddlyWiki has [[text|link]] syntax, but Obsidian 
has [[link|text]]. Not beautiful :)   

четверг, 5 августа 2021 г. в 17:57:42 UTC+6, PMario: 

> Hi Shereda, 
>
> I think we didn't have this usecase yet. ... As I understand it, you want 
> to keep the .md file extension but use the TW .tid fields section and be 
> able to load the .md files into TW as if they where .tid files. ... That's 
> new!
>
> I'm not sure if we can and if we should provide this functionality. ... 
> Markdown editors expect a common format if they read .md files. Using TW 
> fields at the top is not standard for markdown. 
>
> What is your reasoning behind that? What makes it impossible for you to 
> have a .md.meta file which contains the field info?
>
> -mario
>
>

-- 
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/fee4565e-6f97-4940-bcf9-5fec43b86319n%40googlegroups.com.


[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-05 Thread Saq Imtiaz
 

> I'm not sure if we can and if we should provide this functionality. ... 
> Markdown editors expect a common format if they read .md files. Using TW 
> fields at the top is not standard for markdown.
>

Agreed. If we do add support for meta data in markdown files it would then 
be prudent to consider the YAML frontmatter format which is becoming quite 
commonplace:
https://jekyllrb.com/docs/front-matter/ 
https://gohugo.io/content-management/front-matter/

Now I better duck before Jeremy throws something at me for mentioning YAML.

-- 
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/bb9faba8-d881-4770-b38e-99a0c0d7dd4cn%40googlegroups.com.


[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-05 Thread PMario
Hi Shereda, 

I think we didn't have this usecase yet. ... As I understand it, you want 
to keep the .md file extension but use the TW .tid fields section and be 
able to load the .md files into TW as if they where .tid files. ... That's 
new!

I'm not sure if we can and if we should provide this functionality. ... 
Markdown editors expect a common format if they read .md files. Using TW 
fields at the top is not standard for markdown. 

What is your reasoning behind that? What makes it impossible for you to 
have a .md.meta file which contains the field info?

-mario

-- 
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/334a9546-f584-42b7-baeb-add5ed77c2f5n%40googlegroups.com.


[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-05 Thread Shareda
Got it! 
But to do that you have to edit boot.js

After this lines

$tw.utils.registerFileType("text/vnd.tiddlywiki","utf8",".tid");

$tw.utils.registerFileType("application/x-tiddler","utf8",".tid");

Add this ones

$tw.utils.registerFileType("text/vnd.tiddlywiki","utf8",".md");

$tw.utils.registerFileType("application/x-tiddler","utf8",".md");
And change this lines 


$tw.utils.registerFileType("text/markdown","utf8",[".md",".markdown"],{deserializerType:"text/x-markdown"});

$tw.utils.registerFileType("text/x-markdown","utf8",[".md",".markdown"]);
to


$tw.utils.registerFileType("text/markdown","utf8",[".mdX",".markdown"],{deserializerType:"text/x-markdown"});

$tw.utils.registerFileType("text/x-markdown","utf8",[".mdX",".markdown"]);
среда, 4 августа 2021 г. в 17:14:22 UTC+6, Shareda: 

> Thank you for answering! I did so, but got unwanted .meta files
>
> среда, 4 августа 2021 г. в 17:10:51 UTC+6, saq.i...@gmail.com: 
>
>> Look at the section on "File System Extensions" at 
>> https://tiddlywiki.com/#Customising%20Tiddler%20File%20Naming
>>
>> On Wednesday, August 4, 2021 at 12:53:46 PM UTC+2 Shareda wrote:
>>
>>>
>>> Hello! I am setting up my workflow using TiddlyWiki 5.1.23 on Node.js. 
>>> I would like to store and edit all of my tiddlers within the *.md files 
>>> with all their fields.
>>>
>>> How can I switch off the generating of the separate *.meta files for MD 
>>> format and store the filds the same way as they are stored in .tid files ? 
>>>
>>> My own research is about to fail :^)
>>
>>

-- 
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/72003cd0-04fb-4b23-b006-ff79466a862en%40googlegroups.com.


[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-04 Thread Shareda
Thank you for answering! I did so, but got unwanted .meta files

среда, 4 августа 2021 г. в 17:10:51 UTC+6, saq.i...@gmail.com: 

> Look at the section on "File System Extensions" at 
> https://tiddlywiki.com/#Customising%20Tiddler%20File%20Naming
>
> On Wednesday, August 4, 2021 at 12:53:46 PM UTC+2 Shareda wrote:
>
>>
>> Hello! I am setting up my workflow using TiddlyWiki 5.1.23 on Node.js. 
>> I would like to store and edit all of my tiddlers within the *.md files 
>> with all their fields.
>>
>> How can I switch off the generating of the separate *.meta files for MD 
>> format and store the filds the same way as they are stored in .tid files ? 
>>
>> My own research is about to fail :^)
>
>

-- 
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/8ace33ba-fa75-42ba-a118-eed8ed714f3fn%40googlegroups.com.


[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-04 Thread Shareda
In another words I want to replace ".tid" by ".md" for the filesystem.

среда, 4 августа 2021 г. в 16:53:46 UTC+6, Shareda: 

>
> Hello! I am setting up my workflow using TiddlyWiki 5.1.23 on Node.js. 
> I would like to store and edit all of my tiddlers within the *.md files 
> with all their fields.
>
> How can I switch off the generating of the separate *.meta files for MD 
> format and store the filds the same way as they are stored in .tid files ? 
>
> My own research is about to fail :^)

-- 
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/92f4483c-39af-4dda-b0a7-cd7407daf241n%40googlegroups.com.


[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-04 Thread Saq Imtiaz
Look at the section on "File System Extensions" 
at https://tiddlywiki.com/#Customising%20Tiddler%20File%20Naming

On Wednesday, August 4, 2021 at 12:53:46 PM UTC+2 Shareda wrote:

>
> Hello! I am setting up my workflow using TiddlyWiki 5.1.23 on Node.js. 
> I would like to store and edit all of my tiddlers within the *.md files 
> with all their fields.
>
> How can I switch off the generating of the separate *.meta files for MD 
> format and store the filds the same way as they are stored in .tid files ? 
>
> My own research is about to fail :^)

-- 
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/0bc282f3-99ba-4efd-9d26-cab3a6d6148cn%40googlegroups.com.