Welcome to my Code Snippets

MyCodeSnippets.Space

vscode snippet for ReAdABLE index skeleton

ReAdABLE Source

http://mycodesnippets.space/vscode.markdown-index.red

vscode.markdown-index

Paste this snippet in red User.Snippets (don’t forget the “,” separator):


            "markdown-index": {
"prefix": "markdown-index",
"body": [
    "Red [\r",
    "    Title: \"${TM_DIRECTORY:default}\"\r",
    "]\r",
    "\r",
    "Source: [\r",
    "    .title: {ReAdABLE Source [(What is the ReAdABLE Human Format?)](http://readablehumanformat.com)}\r",
    "    .text: {[http://${1:domainname-wo-extension}.${2:domainname-extension}/${TM_FILENAME:default}](https://github.com/lepinekong/${1:domainname-wo-extension}/blob/master/${TM_FILENAME:default})\r",
    "    }\r",
    "    .Published-Url: http://${1:domainname-wo-extension}.${2:domainname-extension}/${TM_FILENAME_BASE:default}\r",
    "]\r",
    "\r",
    "Article: [\r",
    "\r",
    "    Title: {Index of ${TM_DIRECTORY:default}}\r",
    "\r",
    "    {2:caption}: [\r",
    "        .title: {${3:title}}\r",
    "        .text: {[${4:caption}](./${5:filenamewithoutextension})}   \r",
    "        ; remove /no-embed-youtube to embed youtube videos\r",
    "        .links/no-embed-youtube: [\r",
    "            Google http://google.com\r",
    "            {The amazing story of Modern Japan} https://www.youtube.com/watch?v=GHvnIm9UEoQ\r",
    "        ]    \r",
    "    ]\r",
    "\r",
    "]  "
],
"description": "markdown-index"
            }            
        

If you need to recreate it with Easy Snippet, start with this snippet (don’t forget to add $ in front of variables):


            Red [
Title: "{TM_DIRECTORY:default}"
            ]

            Source: [
.title: {ReAdABLE Source [(What is the ReAdABLE Human Format?)](http://readablehumanformat.com)}
.text: {[http://{1:domainname-wo-extension}.{2:domainname-extension}/{TM_FILENAME:default}](https://github.com/lepinekong/{1:domainname-wo-extension}/blob/master/{TM_FILENAME:default})
}
.Published-Url: http://{1:domainname-wo-extension}.{2:domainname-extension}/{TM_FILENAME_BASE:default}
            ]
            
            Article: [

Title: {Index of {TM_DIRECTORY:default}}

{2:caption}: [
    .title: 
    .text: {[{4:caption}](./{5:filenamewithoutextension})}   
    ; remove /no-embed-youtube to embed youtube videos
    .links/no-embed-youtube: [
        Google http://google.com
        {The amazing story of Modern Japan} https://www.youtube.com/watch?v=GHvnIm9UEoQ
    ]    
]

            ]