Giter Club home page Giter Club logo

ghlink's People

Contributors

deltaidea avatar dt avatar loilo avatar naholyr avatar zioroboco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

naholyr jyzwf

ghlink's Issues

Path must be a string

Hi @dt

I am debugging my extension and I can see this error message in the console.

Activating extension dt.ghlink failed: Path must be a string. Received undefined.

image

Add context awareness

Right now, the extension hasn't got any context awareness. It matches patterns regardless of where they occur and whether it makes sense.

incorrect link in import string

incorrect link with syntax error

It would be awesome if there were some settings which could restrict the links to specific contexts and languages. This file could help you if you decided to implement this feature and weren't familiar with contexts in VS Code extensions.

The settings file could look something like this:

{
  "ghLink.contexts": "*",
  
  "[javascript]": {
    "ghLinks.contexts": "comments"
  },
  
  "[ruby]": {
    "ghLinks.contexts": ["comments", "strings"]
  }
}

Show issues in panel

Idea for a feature request.

Show a panel (treeView) which lists info for the issues linked to in the current document. Or, show info on hover with a popup.

Avoid some false positives

The extension generally works quite well, but sometimes I encounter false positives that could be avoided by making the matching a bit stricter, for instance:

I don't think I've ever seen a leading zero in an issue link (though GitHub seem to be fine with it actually).

Not linking "#number" despite .git/config

Here is my .git/config:

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = [email protected]:NetdirectFR/vitrine.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

As you can see, the origin remote is properly configured and set to a valid repository (private, could this be an issue?). However simple "#issueNumber" texts are not linked:

image

Is it supposed to work? Is there an issue in my config?

Add syntax to link to repositories and issues in Markdown

Hey,

Since I'd imagine that this is often used in Markdown files (like README.md), I think it would be a dandy feature to be able to import the syntax to link to the GitHub repository/issue. i.e. if you write @dt/ghlink, you could set it to automatically (or manually) change it to [@dt/ghlink](https://github.com/dt/ghlink) in Markdown files.

Link to repositories

It'd be really cool if you could also use this to link to a repository by using @username/repository.
/CC @dt

Allow usage with github enterprise

Hi there,

great extension. Github Enterprise support basically would require another hostname instead of github.com.
Would it be possible to check for github.com and if configured another hostname or a list of hostnames?

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.