GithubHelp home page GithubHelp logo

vim-github-comment's People

Contributors

lencioni avatar littleq0903 avatar mmozuras avatar spajus avatar swistak35 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

vim-github-comment's Issues

Everything works but the comment

Install went fine, set my username and it generated a token with correct permissions.

I go into a file, add a comment, and it opens the browser with the link. But no comment appears!

Yes, "show notes" is ticked (and can be ticked), but nothing appears :/

Cannot create comments: "E15: Invalid expression: split_line[0] - 6"

The plugin is failing to comment due to a failure in the GetDiffLineNumber function.

Error detected while processing function GHComment..<SNR>93_GetDiffLineNumber:
line    5:
E684: list index out of range: 0
E15: Invalid expression: split_line[0] - 6
Could not create comment. You may not have the rights. 

I am using git 2.2.2 and vim 7.4.488.

look for `github.user` in .gitconfig

https://github.com/mattn/gist-vim looks for the github user name in one's .gitconfig in the custom [github] section.

[github]
  user = justinmk

The code for this isn't too bad:

if !exists('g:github_user')
  let g:github_user = substitute(s:system('git config --get github.user'), "\n", '', '')
endif

Perhaps vim-github-comment can look for this as an alternative to g:github_user, since vim-github-comment is in the "family" of plugins that use @mattn's webapi. It would be nice to see some convergence of configuration conventions in the various Vim "github plugins".

"auth failed"

Tried on windows, installed via vim-plug:

Plug 'mattn/webapi-vim'
Plug 'mmozuras/vim-github-comment'

Seems to download and install fine, but on trying to execute the GHComment command, asks for password, I enter the password, and it gives:

Not Found
github-comment auth failed

Any suggestions? Thanks!

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.