Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

fixes description for reverse; removes extra spaces #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ function processSelection(e: TextEditor, d: TextDocument, sel: Selection[], form

// Main menu /////////////////////////////////////
function textFunctions() {

if (!vscode.window.activeTextEditor) {
vscode.window.showInformationMessage('Open a file first to manipulate text selections');
return;
}
}

var opts: QuickPickOptions = { matchOnDescription: true, placeHolder: "What do you want to do to the selection(s)?" };
var items: QuickPickItem[] = [];

Expand All @@ -85,7 +85,7 @@ function textFunctions() {
items.push({ label: "Titleize", description: "Convert [hello MD tools] to [Hello MD Tools]" });
items.push({ label: "Camelize", description: "Convert [hello MD-tools] to [HelloMDTools]" });
items.push({ label: "Clean String", description: "Convert [hello......world] to [hello world]" });
items.push({ label: "Reverse", description: "Convert [hello world] to [world hello]" });
items.push({ label: "Reverse", description: "Convert [hello world] to [dlrow olleh]" });
items.push({ label: "Escape HTML", description: "Convert [<div>hello] to [&lt;div&gt;hello]" });
items.push({ label: "UnEscape HTML", description: "Convert [&lt;div&gt;hello] to [<div>hello]" });
items.push({ label: "Slugify", description: "Convert [txt for an URL] to [txt-for-an-url]" });
Expand Down Expand Up @@ -126,10 +126,10 @@ function textFunctions() {
break;
case "Camelize":
processSelection(e, d, sel, us.camelize, []);
break;
break;
case "Slugify":
processSelection(e, d, sel, us.slugify, []);
break;
break;
case "ASCII Art":
// build a full list of the fonts for the drop down
items = [];
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"description": "Text replacement functions e.g. change case, reverse and ASCII Art for all file types.",
"version": "1.0.1",
"publisher": "seanmcbreen",
"categories":[
"categories": [
"Other"
],
"license":"SEE LICENSE IN LICENSE.txt",
"license": "SEE LICENSE IN LICENSE.txt",
"icon": "images/MDToolsIcon.svg",
"bugs": {
"url": "https://github.com/Microsoft/vscode-MDTools/issues"
Expand All @@ -16,9 +16,9 @@
"type": "git",
"url": "https://github.com/Microsoft/vscode-MDTools.git"
},
"galleryBanner" : {
"galleryBanner": {
"color": "#5c2d91",
"theme" : "dark"
"theme": "dark"
},
"activationEvents": [
"onCommand:extension.textFunctions"
Expand All @@ -44,8 +44,8 @@
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"dependencies": {
"underscore.string": "^3.2.2",
Expand Down