Code Monkey home page Code Monkey logo

vscode-copy-github-url's People

Contributors

cmalard avatar dependabot[bot] avatar differentmatt avatar gfoltz avatar leonarddrs avatar m-zuber avatar mlewand avatar negibokken avatar orhantoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vscode-copy-github-url's Issues

Feature request: inverse operation, start with a GitHub URL which contains hash line number(s), and open the file in VSCode at the designated line / code selection

Hello, great extension, thank you!
Very useful for code peer reviews over Slack / instant messaging, to exchange URLs whilst working locally from VSCode.
However the inverse functionality would be very useful too.

For example I would like to be able to copy such URL: https://github.com/differentmatt/vscode-copy-github-url/blob/ad85a468eb8f1b05979591335ba391c58abeb5a7/src/main.js#L6-L8

const parseConfig = require('parse-git-config')
const path = require('path')
module.exports = {

...and to show src/main.js in VSCode with the code selection line 6-8 (extracted from the URL #L6-L8).

Any thoughts?

Make fallback default branch configurable

If unable to determine the default branch, main is used. The default branch for private repositories cannot be determined at the moment.

We should make this fallback value configurable to support private repos with master. See rootGitFolder in this extension for example of configuration setting.

Feature Request: Find reference among modified code

When you have added additional lines to the code base, the lines numbers get thrown off. It would be an awesome feature if the application tried to identify the desired line within the last committed version of the file from the repo. If this isn't already a feature, I'd be happy to put a bounty on it.

Thanks,
Justin

support opening a folder not in the same directory as the .git folder

we have a monorepo that is not using submodules
In order to get other extensions to work, I open each subfolder in a different instance of vs code, but this then causes this extension to not be able to pick up the url.

If possible it would be nice to have a setting where I could set the path to the .git folder

extension doesn't appear to work in Windows 10 WSL

Hi Matt! I just found your extension and am looking forward to using it. It's a great idea!

I installed VSCode in Windows, however I run it in the Ubuntu Windows Subsystem for Linux (WSL) environment which lets me develop using Linux.

When I install your extension and try to use it in VSCode, I get the following error:

(Copy GitHub URL) Error: spawnSync /home/chris/.vscode-server/extensions/mattlott.copy-github-url-0.10.0/fallbacks/windows/clipboard_x86_64.exe ENOENT

image

Presumably, this is because the extension installs in the WSL Linux environment, but the exe you are using to copy to the clipboard cannot run in that environment. Any ideas on how to work around this?

VSCode Remote is not supported

It seems in the remote machine, although this plugin is installed, it will still try to copy url to remote xsel rather than the local machine.

Ctrl+Shift+L keybinding conflicts

Hi there, there is a default for Ctrl+Shift+L to select all highlighted instances.

May you please change it to Ctrl+Alt+L. Otherwise I have to put two extra keybindings in custom. One to Restore Ctrl+Shift+L to { "key": "ctrl+shift+l", "command": "editor.action.selectHighlights", "when": "editorFocus" } and another to make this extension work: { "key": "ctrl+alt+l c", "command": "extension.gitHubUrlPerma", "when": "editorTextFocus" }

Doesn't seem to work on Mac

Just installed the extension. ^ + L C (macOS's version of ctrl + L C) doesn't seem to do anything. I've checked the keybindings in VScode and ^ + L C is indeed bound to this extension. If I try and paste, then it pastes what was previously in my clipboard; not the GitHub url.

Support full git hash when copying permanent url

For example if we use partial hash like https://github.com/differentmatt/vscode-copy-github-url/blob/ad85a468eb8f/extension.js#L12-L19 in Github issue, it won't be converted to the code block automatically:

https://github.com/differentmatt/vscode-copy-github-url/blob/ad85a468eb8f/extension.js#L12-L19

If we use a full git hash like this https://github.com/differentmatt/vscode-copy-github-url/blob/ad85a468eb8f1b05979591335ba391c58abeb5a7/extension.js#L12-L19

It will be converted like this:

return () => { // The code you place here will be executed every time your command is executed
try {
const url = main.getGithubUrl(vscode, config)
if (url) {
clipboardy.writeSync(url)
}
} catch (e) {

Shortcut to Open URLs

Dear contributors, thanks for this awesome plugin, I'm gonna stick to it because it supports Git worktrees and master URLs, unlike the one VSCode folks mention on their website.

Is there a chance you could add shortcuts to actually open those URLs in the browser?

I could contribute myself if you don't have time for this, but decided to ask you first.

Slashes are flipped

When copying an url I got something like https://github.com/M-Zuber/octokit.net/blob/master\Octokit\Clients\Enterprise\EnterpriseClient.cs#L9 instead of https://github.com/M-Zuber/octokit.net/blob/master/Octokit/Clients/Enterprise/EnterpriseClient.cs#L9

This is on Windows 10 if that makes a difference

Add LICENSE

Warning when publishing via vsce: WARNING LICENSE.md, LICENSE.txt or LICENSE not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.