From 263ff2c339789ab212289b9eb42807bf832b85c7 Mon Sep 17 00:00:00 2001 From: Patrick Reynolds Date: Wed, 9 Feb 2022 15:39:38 -0800 Subject: [PATCH] added menu item inside editor/context, changed the title --- README.md | 2 +- package.json | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c65c645..e6a3f43 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Copies GitHub permalink of active file (name and line) to clipboard on VSCode. ## Features - Open command pallete (with Cmd-Shift-P or so) -- Input to search `copy-github-permalink: Copy GitHub permalink to clipboard` and select it +- Input to search `Copy GitHub Permalink` and select it - Then your clipboard has a GitHub permalink generated by your workspace's git info and active file (name / line number) - Like this: `https://github.com/hogashi/sketch-20200411-vscode-ext-git/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/extension.ts#L4` - Multiple-lined permalink will be copied if multiple lines are selected: `https://github.com/hogashi/sketch-20200411-vscode-ext-git/blob/47b96dd6cc7c521d9ab017ce7760d62536cbb4cc/src/extension.ts#L4-L6` diff --git a/package.json b/package.json index f3a53c0..cf3a7a8 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,17 @@ "commands": [ { "command": "copy-github-permalink.activate", - "title": "copy-github-permalink: Copy GitHub permalink to clipboard" + "title": "Copy GitHub Permalink" } - ] + ], + "menus": { + "editor/context": [ + { + "command": "copy-github-permalink.activate", + "group": "9_cutcopypaste@3" + } + ] + } }, "extensionDependencies": [ "vscode.git"