diff --git a/.gitignore b/.gitignore index 8e5962e..dcd8530 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ out -node_modules \ No newline at end of file +node_modules +*.vsix \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..15fbc2d --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,2 @@ +this is a test +MIT \ No newline at end of file diff --git a/extension.ts b/extension.ts index 1c0b88d..e614b43 100644 --- a/extension.ts +++ b/extension.ts @@ -116,17 +116,11 @@ function textFunctions() { break; case "ASCII Art": items = []; - items.push({ label: "Standard", description: "User the Standard font" }); - items.push({ label: "Graffiti", description: "User the Graffiti font" }); - items.push({ label: "Banner", description: "User the Banner font" }); - items.push({ label: "Basic", description: "User the Basic font" }); - items.push({ label: "Cybermedium", description: "User the Cybermedium font" }); - items.push({ label: "Larry 3D", description: "User the Larry 3D font" }); - items.push({ label: "Nancyj", description: "User the Nancyj font" }); - items.push({ label: "Poison", description: "User the Poison font" }); - items.push({ label: "Star Wars", description: "User the Star Wars font" }); - - Window.showQuickPick(items).then((selection) => { + figlet.fontsSync().forEach(function (font) { + items.push({ label: font, description: "User the "+ font + " font" }); + }, this); + + Window.showQuickPick(items).then(function (selection) { processSelection(e, d, sel, figlet.textSync, [selection.label]); }); break; diff --git a/images/icon.jpg b/images/icon.jpg new file mode 100644 index 0000000..0bef48a Binary files /dev/null and b/images/icon.jpg differ diff --git a/package.json b/package.json index abfdced..2e6ad36 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,17 @@ { "name": "MDTools", "description": "Text replacement for Markdown", - "version": "0.1.0", + "version": "0.1.2", "publisher": "seanmcbreen", + "displayName": "Markdown Tools", "keywords": [ + "$featured", "_Markdown", "ASCII Art", "Text" ], + "license":"SEE LICENSE IN LICENSE.md", + "icon": "images/icon.jpg", "activationEvents": [ "onLanguage:markdown" ], @@ -35,7 +39,8 @@ "compile": "node ./node_modules/vscode/bin/compile -watch -p ./" }, "dependencies": { - "underscore.string": "^3.2.2" + "underscore.string": "^3.2.2", + "figlet": "^1.1.1" }, "devDependencies": { "vscode": "*"