irongit

Simple copy and replace for vscode.

made better name for commands

huncholanehuncholaneauthored
parent 73f1773commit 5e14bfe39b4b62b1c81da04b3a943886a4422897Browse files

3 files changed, +15 -4

+7-0LICENSE.md
@@ -0,0 +1,7 @@
1+MIT License
2+
3+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Copy Flow Extension"), to deal in the Copy Flow Extension without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Copy Flow Extension, and to permit persons to whom the Copy Flow Extension is furnished to do so, subject to the following conditions:
4+
5+1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Copy Flow Extension.
6+
7+2. THE COPY FLOW EXTENSION IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE COPY FLOW EXTENSION OR THE USE OR OTHER DEALINGS IN THE COPY FLOW EXTENSION.
+4-0package.json
@@ -21,6 +21,10 @@
2121 }
2222 ]
2323 },
24+ "repository": {
25+ "type": "git",
26+ "url": "https://github.com/huncholane/copy-flow"
27+ },
2428 "icon": "image/icon.png",
2529 "scripts": {
2630 "vscode:prepublish": "npm run package",
+4-4src/extension.ts
@@ -3,7 +3,7 @@ import * as clipboardy from "clipboardy";
33
44 export function activate(context: vscode.ExtensionContext) {
55 const copyDisposable = vscode.commands.registerCommand(
6- "extension.copy",
6+ "copy-flow.copy",
77 () => {
88 const editor = vscode.window.activeTextEditor;
99 if (!editor) {
@@ -21,7 +21,7 @@ export function activate(context: vscode.ExtensionContext) {
2121 );
2222
2323 const pasteDisposable = vscode.commands.registerCommand(
24- "extension.paste",
24+ "copy-flow.paste",
2525 async () => {
2626 const editor = vscode.window.activeTextEditor;
2727 if (!editor) {
@@ -52,7 +52,7 @@ export function activate(context: vscode.ExtensionContext) {
5252 vscode.StatusBarAlignment.Left
5353 );
5454 copyButton.text = "$(clippy) Copy";
55- copyButton.command = "extension.copy";
55+ copyButton.command = "copy-flow.copy";
5656 copyButton.tooltip = "Copy editor content";
5757 copyButton.show();
5858
@@ -60,7 +60,7 @@ export function activate(context: vscode.ExtensionContext) {
6060 vscode.StatusBarAlignment.Left
6161 );
6262 pasteButton.text = "$(diff-insert) Paste";
63- pasteButton.command = "extension.paste";
63+ pasteButton.command = "copy-flow.paste";
6464 pasteButton.tooltip = "Paste clipboard content";
6565 pasteButton.show();
6666 }