ozanmakes / github-browse-file Goto Github PK
View Code? Open in Web Editor NEWView the file you're editing in Emacs on GitHub
View the file you're editing in Emacs on GitHub
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?
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!
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:
let g:fugitive_github_domains = ['github.com', 'git.musta.ch']
:Gbrowse
is now configured to properly look up from the list of Github domains.This will allow the project to be published on MELPA Stable.
GitHub has URL API parameters to jump to file specific position.
I think github-browse-file
support this will be very helpful when github jump to the location at initial.
I'm often looking at a file on a particular line and I want to use gh somehow to look at just that line.
It would be really useful, if when I did M-x github-browse-file, it just picked up my current line and added it to the url.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.