Octotree: the missing GitHub tree view (Chrome extension)
chrome.google.com
chrome.google.com
Also thanks for featuring my gittip page, I almost forgot I had one.
Frankly, right now I just have a hard time remembering what path I was going down with the current process of traversing the file structure.
- It's someone else's repo (eg, a gem I'm using), and I just want to see one line real quick, rather than cloning the whole project locally and finding it there.
- It's my repo, but I my local working copy is on a different branch or has uncommitted changes, so I don't want to bother stashing + changing branches just to look up one line
- I'm poking around several repos that I have no intention of using- eg, looking at an interview candidate's public repos
git show other-branch:path/to/file
or: git grep -e pattern other-branchContributions[1] are welcomed :)
[1] https://github.com/danielribeiro/github-diff-highlight-exten...
For this reason I detest the Windows 7 start menu for its anti-organization UI, for example.
Be sure to tweet it at some of the github engineers– Thy should bring this into their core product.
e.g. src->com->twitter->scalding->scala->test (in this example, these are all folders in hierarchy and they are the only one until the 'test' so expanding them automatically all the way through makes sense).
Press 't' when you go to a repository, it will activate the file finder. From there you can just start typing for the file/folder name you want to see and it will filter the repo instantly.
I wonder why this feature is not popular yet.
I guess this extension makes it easier to get an overview of the directory structure, but that's something I rarely need.
I'm sceptical of browser plugins in general. There are so many browser plugins that change under the hood and do malicious things. It would be easy for the author of this plugin to scrape all your source code and phone it home.
edit: looks like I'm insane. working as you described it. nice job!
A "search for files/folders named ..." feature would be a nice bonus, too, so that you can quickly get to the right spot in a big hierarchy.
To the author (https://twitter.com/buunguyen): please add a donation link somewhere so I can send you a thank-you (or you can just e-mail me with your PayPal/other address; my e-mail's in my profile).
Instead, why doesn't the plugin just link directly to the page which generates the token if it detects that the repo is private?
I suspect that our enterprise installation uses a different API version than the live Github site, as I am having a hard time figuring out what an error 406 (vs the ones you catch) means. (And, the tree that I get is undefined.)
I'm surely doing something wrong. (I had hacked up the github.js library to use `github.ourcompany.com` for its API domain, which is probably wrong.) I will have to look for more info on API access to enterprise instances, because this is a feature which would make reading our various codebases __much__ more convenient.
Thank you for such an inspiring plugin!
This extension is great for exploring but if you know what you're looking for, cmd+t will save you more time.
In the meantime that's a great solution. Thanks!
I bet Github have had this feature on their issue tracker for years - and I suspect it probably just got bumped a good few places up the list.
Depending on the answers, it could be very simple change, i.e. allow users to configure API subdomain. Unfortunately, I don't have any GitHub Enterprise deployment in handy at this moment to find out.
Yes, it does support tokens.
See https://gist.github.com/Spittie/93adf218040d470abd40 (http://81.4.126.121/i/1400019350.png), probably the hardest part is "fixing" the css if it's using some only webkit- feature. Also I'm not sure if it's possible to load local images withing the page-mod api, but embedding them as base64 images is easy enough.
EDIT: oh well, Enjoy: https://github.com/Spittie/octotree No pull-requests because I've moved pretty much everything to make it working. The right way would probably be to use some build system, but who has time for that? :)
Not that I did change a lot of stuff, but with everything in a different folder I can't just git pull from your repository.
And thanks for the great extension!
edit: i'm not willing to give extension access to private repos, that would defeat the point of being private