From fec47c7321f175f193496c6aaf8266f1cdabcaea Mon Sep 17 00:00:00 2001 From: Son Tran Date: Mon, 17 Feb 2020 11:45:59 +0700 Subject: [PATCH 1/2] Change the suffix position Fix spelling mistake --- src/utils/prompt.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/prompt.ts b/src/utils/prompt.ts index 2ec98ba..77f2d05 100644 --- a/src/utils/prompt.ts +++ b/src/utils/prompt.ts @@ -1,14 +1,15 @@ import * as vscode from 'vscode'; export function name(filename: string): Promise { + const value = filename.replace(/(\.[^.]+)$/, '-copy.$1'); return vscode.window.showInputBox({ + value, placeHolder: 'Enter the new path for the duplicate.', - value: filename.split('.').map((el, i) => i === 0 ? `${el}-copy` : el).join('.') }) as Promise; } export function overwrite(filepath: string): Promise { - const message = `The path **${filepath}** alredy exists. Do you want to overwrite the existing path?`; + const message = `The path **${filepath}** already exists. Do you want to overwrite the existing path?`; const action = { title: 'OK', isCloseAffordance: false From 218460ffce6554d559bb0a8c8aad35ece7f079ab Mon Sep 17 00:00:00 2001 From: trandaison Date: Sun, 22 Oct 2023 10:26:09 +0700 Subject: [PATCH 2/2] Release v2.0.0 --- CHANGELOG.md | 2 +- CONTRIBUTING.md | 4 ++-- README.md | 10 ++-------- package.json | 13 +++++-------- 4 files changed, 10 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7173d2b..6263c56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ We use [GitHub's Releases feature](https://github.com/blog/1547-release-your-software) for changelogs. -See [the Releases section of our GitHub project](https://github.com/mrmlnc/vscode-duplicate/releases) for changelogs for each release version of this plugin. +See [the Releases section of our GitHub project](https://github.com/trandaison/vscode-duplicate/releases) for changelogs for each release version of this plugin. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cf1bf21..7377386 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ Please note that this project is released with a [Contributor Code of Conduct](C There are a couple of ways you can contribute to this repo: - * **Ideas, feature requests and bugs**: We are open to all ideas and we want to get rid of bugs! Use the [Issues section](https://github.com/mrmlnc/vscode-duplicate/issues) to either report a new issue, provide your ideas or contribute to existing threads. + * **Ideas, feature requests and bugs**: We are open to all ideas and we want to get rid of bugs! Use the [Issues section](https://github.com/trandaison/vscode-duplicate/issues) to either report a new issue, provide your ideas or contribute to existing threads. * **Documentation**: Found a typo or strangely worded sentences? Submit a PR! * **Code**: Contribute bug fixes, features or design changes. @@ -16,7 +16,7 @@ There are a couple of ways you can contribute to this repo: Before you create a new Issue: - * Check the [Issues](https://github.com/mrmlnc/vscode-duplicate/issues) on Github to ensure one doesn't already exist. + * Check the [Issues](https://github.com/trandaison/vscode-duplicate/issues) on Github to ensure one doesn't already exist. * Clearly describe the issue, including the steps to reproduce the issue. ### Making Changes diff --git a/README.md b/README.md index 58ab449..1150d00 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,9 @@ +> This extension was forked from [mrmlnc/vscode-duplicate](https://github.com/mrmlnc/vscode-duplicate), it's a alternative version since the [mrmlnc/vscode-duplicate](https://github.com/mrmlnc/vscode-duplicate) is no longer being maintained for years. + # vscode-duplicate > Ability to duplicate files and directories in VS Code. -## Donate - -If you want to thank me, or promote your Issue. - -[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/mrmlnc) - -> Sorry, but I have work and support for plugins and modules requires some time after work. I will be glad of your support or PR's. - ## Install * Press F1 and `select Extensions: Install Extensions`. diff --git a/package.json b/package.json index 3e3f40a..12059cb 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,18 @@ { - "name": "vscode-duplicate", + "name": "@trandaison/vscode-duplicate", "displayName": "Duplicate action", "description": "Ability to duplicate files in VS Code", - "version": "1.2.1", - "publisher": "mrmlnc", + "version": "2.0.0", + "publisher": "trandaison", "license": "MIT", "engines": { "vscode": "^1.13.0" }, "icon": "icon.png", - "homepage": "https://github.com/mrmlnc/vscode-duplicate/blob/master/README.md", + "homepage": "https://github.com/trandaison/vscode-duplicate/blob/master/README.md", "repository": { "type": "git", - "url": "https://github.com/mrmlnc/vscode-duplicate" + "url": "https://github.com/trandaison/vscode-duplicate" }, "keywords": [ "duplicate", @@ -23,9 +23,6 @@ "categories": [ "Other" ], - "activationEvents": [ - "onCommand:duplicate.execute" - ], "main": "./out/extension.js", "contributes": { "commands": [