Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
reduckted committed Jan 28, 2021
1 parent 0d256ff commit 18140e6
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 2.2.0 (2021-01-28)

## New Features

- ⭐ The notification shown after copying a link contains a button to open the link in the browser (thanks @kvart714).
- ⭐ New commands to open links directly in the browser instead of copying to the clipboard (see the readme for the new settings).

# 2.1.1 (2021-01-26)

## Bug Fixes
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ For on-premise hosts (for example, GitLab CE, Bitbucket Server, etc), there is s

## Copy a Link to a File

To copy a link to the file, right-click on the file's tab and select _Copy Web Link to File_.
To copy a link to the file, right-click on the file's tab and select _Copy Link to File_.

![Copy Link to File](images/copy-file-tab.png)

You can also right-click on a file in Explorer panel and select _Copy Web Link to File_.
You can also right-click on a file in Explorer panel and select _Copy Link to File_.

![Copy Link to File](images/copy-file-explorer.png)

## Copy a Link to the Selection

To copy a link to a particular line in the file, right-click on the line in the editor and select _Copy Web Link to Selection_.
To copy a link to a particular line in the file, right-click on the line in the editor and select _Copy Link to Selection_.

If you want to copy a link to a range of lines, just select the lines first.

Expand All @@ -48,6 +48,12 @@ In addition to the commands mentioned above, there are three commands available

![Available Commands](images/command-palette.png)

## Open in Browser

You can choose to open the links directly in the browser instead of copying to the clipboard. The menu item is hidden by default. To show this menu item, set the `gitweblinks.showOpen` setting to true.

You can also hide the "Copy Link" menu items by setting the `gitweblinks.showCopy` to false.

## On-Premise Servers

If you use an on-premise server, you will need to specify the URLs of those servers in your settings file. You need to specify the base HTTP/HTTPS URL of the server, and if you use SSH, the base SSH URL.
Expand Down
Binary file modified images/command-palette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/copy-file-explorer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/copy-file-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/copy-selection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-gitweblinks",
"displayName": "Git Web Links for VS Code",
"description": "Copy links to files in their online Git repositories",
"version": "2.1.1",
"version": "2.2.0",
"publisher": "reduckted",
"homepage": "https://github.com/reduckted/vscode-gitweblinks",
"repository": {
Expand Down

0 comments on commit 18140e6

Please sign in to comment.