Coder Social home page Coder Social logo

github-browse-file's People

Contributors

alezost avatar cjauvin avatar dgtized avatar ozanmakes avatar tarsius avatar waymondo avatar wjlroe avatar yukihr 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

Watchers

 avatar  avatar  avatar  avatar  avatar

github-browse-file's Issues

Got the branch wrong; gave me a 404

I just did M-x github-browse-file for the first time, and it showed me a 404. It made me sad.

The URL it opened in the browser was https://github.com/Internetworkexpert/ine-rackcontrol/blob/rsfive-65/rackcontrol/load_whole_rack_config.py. The correct URL would have been https://github.com/Internetworkexpert/ine-rackcontrol/blob/RSFIVE-65/rackcontrol/load_whole_rack_config.py -- the difference is in the spelling of the branch name. I assume this happened because my local branch is indeed spelled differently than the remote branch:

(rack):) 11:06:38 [erichanchrow@Eric-Hanchrows-iMac ine-rackcontrol] (rsfive-65)$ git branch -vv
...
* rsfive-65                            ae31b72 [origin/RSFIVE-65] Merge branch 'prd-rackscr01' into rsfive-65

... so I assume that you are assuming that the remote branch's name is the same as the local branch's.

Evil Mode

Hi!

Running github-browse-file without a selection works great in evil mode; however, when I run with a selection '<,'>github-browse-file I get the following error:

Invalid function: decf

Any help would be appreciated.

Opening selected commit range

When invoking github-browse-file with a range of commits selected in e.g. magit-log, it'd be nice to open /compare/rev_a...rev_b instead, to take you to the compare view.

I'm not sure whether that's possible, though. I took a quick look at this and magit - and while I've not really written much lisp so far, I can't find anything like magit-commits-in-mark or so in magit. Am I missing something, or would magit first need something like that?

can we have a "just the link" version of the browse file command?

I'm often needing to show someone a piece of a file that I have locally.... I use my local emacs to find the part in the file and then I want to give them a github url.

Ideally I'd be able to:

C-u M-x github-browse-url

and it would insert the url into my kill-ring.

PS I LOVE THIS THING!

Be able to specify github domains

Just recently switched from Vim to Spacemacs, which includes this package for browsing Github. My company uses Github enterprise at work so it'd be nice if we could specify a Github domain like we can do for vim-fugitive. By setting a variable in the ~/.vimrc, you could tell Fugitive where to open Github links. Fugitive somehow figures out the right path (Github Enterprise vs. Github.com).

Usage in vim-fugitive:

  1. Set let g:fugitive_github_domains = ['github.com', 'git.musta.ch']
  2. :Gbrowse is now configured to properly look up from the list of Github domains.

https://github.com/tpope/vim-fugitive/blob/c00ebd75ac23f4080c0d0bf9453b16304a3fb316/plugin/fugitive.vim#L2351

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.