Simple copy and replace for vscode.
made better name for commands
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 @@ | ||
| 21 | 21 | } |
| 22 | 22 | ] |
| 23 | 23 | }, |
| 24 | + "repository": { | |
| 25 | + "type": "git", | |
| 26 | + "url": "https://github.com/huncholane/copy-flow" | |
| 27 | + }, | |
| 24 | 28 | "icon": "image/icon.png", |
| 25 | 29 | "scripts": { |
| 26 | 30 | "vscode:prepublish": "npm run package", |
+4-4src/extension.ts
| @@ -3,7 +3,7 @@ import * as clipboardy from "clipboardy"; | ||
| 3 | 3 | |
| 4 | 4 | export function activate(context: vscode.ExtensionContext) { |
| 5 | 5 | const copyDisposable = vscode.commands.registerCommand( |
| 6 | - "extension.copy", | |
| 6 | + "copy-flow.copy", | |
| 7 | 7 | () => { |
| 8 | 8 | const editor = vscode.window.activeTextEditor; |
| 9 | 9 | if (!editor) { |
| @@ -21,7 +21,7 @@ export function activate(context: vscode.ExtensionContext) { | ||
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | const pasteDisposable = vscode.commands.registerCommand( |
| 24 | - "extension.paste", | |
| 24 | + "copy-flow.paste", | |
| 25 | 25 | async () => { |
| 26 | 26 | const editor = vscode.window.activeTextEditor; |
| 27 | 27 | if (!editor) { |
| @@ -52,7 +52,7 @@ export function activate(context: vscode.ExtensionContext) { | ||
| 52 | 52 | vscode.StatusBarAlignment.Left |
| 53 | 53 | ); |
| 54 | 54 | copyButton.text = "$(clippy) Copy"; |
| 55 | - copyButton.command = "extension.copy"; | |
| 55 | + copyButton.command = "copy-flow.copy"; | |
| 56 | 56 | copyButton.tooltip = "Copy editor content"; |
| 57 | 57 | copyButton.show(); |
| 58 | 58 | |
| @@ -60,7 +60,7 @@ export function activate(context: vscode.ExtensionContext) { | ||
| 60 | 60 | vscode.StatusBarAlignment.Left |
| 61 | 61 | ); |
| 62 | 62 | pasteButton.text = "$(diff-insert) Paste"; |
| 63 | - pasteButton.command = "extension.paste"; | |
| 63 | + pasteButton.command = "copy-flow.paste"; | |
| 64 | 64 | pasteButton.tooltip = "Paste clipboard content"; |
| 65 | 65 | pasteButton.show(); |
| 66 | 66 | } |