Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added menu item inside editor/context, changed the title #2

Merged
merged 1 commit into from
Feb 15, 2022
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
]
}
},
"extensionDependencies": [
"vscode.git"
Expand Down