diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f29c62d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +out +dist +node_modules +.vscode-test/ +.vsix diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7d7c3e2 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +// A launch configuration that launches the extension inside a new window +// Use IntelliSense to learn about possible attributes. +// Hover to view descriptions of existing attributes. +// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Extension", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": ["--extensionDevelopmentPath=${workspaceFolder}", "${workspaceFolder}/test/test.md"] + } + ] +} diff --git a/.vscodeignore b/.vscodeignore new file mode 100644 index 0000000..f369b5e --- /dev/null +++ b/.vscodeignore @@ -0,0 +1,4 @@ +.vscode/** +.vscode-test/** +.gitignore +vsc-extension-quickstart.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ + diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ + diff --git a/language-configuration.json b/language-configuration.json new file mode 100644 index 0000000..aa25710 --- /dev/null +++ b/language-configuration.json @@ -0,0 +1,30 @@ +{ + "comments": { + // symbol used for single line comment. Remove this entry if your language does not support line comments + "lineComment": "//", + // symbols used for start and end a block comment. Remove this entry if your language does not support block comments + "blockComment": [ "/*", "*/" ] + }, + // symbols used as brackets + "brackets": [ + ["{", "}"], + ["[", "]"], + ["(", ")"] + ], + // symbols that are auto closed when typing + "autoClosingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["\"", "\""], + ["'", "'"] + ], + // symbols that that can be used to surround a selection + "surroundingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["\"", "\""], + ["'", "'"] + ] +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..ea98a7d --- /dev/null +++ b/package.json @@ -0,0 +1,44 @@ +{ + "name": "vscode-markdown-notes", + "displayName": "VS Code Markdown Notes", + "description": "______________ ________________", + "version": "0.0.1", + "publisher": "kortina", + "repository": { + "url": "https://github.com/kortina/vscode-markdown-notes.git", + "type": "git" + }, + "engines": { + "vscode": "^1.41.1" + }, + "keywords": [ + "markdown", + "notebook", + "notes", + "notetaking", + "wiki links" + ], + "categories": [ + "Programming Languages" + ], + "contributes": { + "languages": [ + { + "id": "markdown-notes", + "aliases": [], + "configuration": "./language-configuration.json" + } + ], + "grammars": [ + { + "language": "markdown-notes", + "scopeName": "text.markdown.notes", + "path": "./syntaxes/notes.tmLanguage.json", + "injectTo": [ + "text.html.markdown" + ] + } + ] + }, + "icon": "icon.png" +} diff --git a/syntaxes/notes.tmLanguage.json b/syntaxes/notes.tmLanguage.json new file mode 100644 index 0000000..a3ccb90 --- /dev/null +++ b/syntaxes/notes.tmLanguage.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", + "name": "markdown", + "injectionSelector": "L:text.html.markdown", + "patterns": [ + { + "match": "(\\[\\[)([^\\]]+)(\\]\\])", + "name": "text.markdown.notes.wiki-link", + "captures": { + "1": { + "name": "punctuation.definition.wiki-link" + }, + "2": { + "name": "support.function.text.markdown.notes.wiki-link.title" + }, + "3": { + "name": "punctuation.definition.wiki-link" + } + } + }, + { + "match": "\\bkortina\\b", + "name": "text.markdown.notes.kortina" + } + ], + "scopeName": "text.markdown.notes" +} diff --git a/test/test.md b/test/test.md new file mode 100644 index 0000000..b36f647 --- /dev/null +++ b/test/test.md @@ -0,0 +1,6 @@ +# Test + +[[test]] +[[test-file.md]] + +kortina