I built this to scratch my own itch, as somebody who frequently reads GitHub code and feels annoyed having to click countless of links to navigate through a large project. Hope it is useful for other people too.
Mad props. Any chance of a Safari port? Its extension system is not very different from Chrome's. EDIT: and you shouldn't be shy to plug your gittip page: https://www.gittip.com/buunguyen/
OMG thank you! I have so many cloned repos somewhere on my disk, just to browse the code. Now it's time to implement super-fast-github-git-grep.js --- my productivity will explode.
To me, the lack a fast tree browser has been one of the biggest weakness of the Github interface. This plugin solves that problem exceeding well. Github should hire the author, and officially fund his efforts to make it a first class feature that does not require a plugin.
Honest question: What is this good for? I guess I don't use github (or any other visual vcs) enough.. but I really can't see any point in browsing file structure of the repo in a web browser.
Wow, giving it a quick try I can't believe how fast it is. This is one of those things that I've always desperately needed, and I never knew until now.
Be sure to tweet it at some of the github engineers– Thy should bring this into their core product.
Here's an idea: Automatically expand all the tree until there are more than 1 items in the level
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).
That's a good idea, those 'fake' Java directories can be displayed collapsed inline as a single node of the hierarchy, thus saving all their indent space.
Great work but i want to point out one small feature that Github has but not known to everyone.
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.
Find files is certainly useful for coding, not so much exploring. I would have no idea what to search for when exploring a new repo. Besides, even when coding with IDEs with find-files feature, I mostly navigate using the tree. Guess I like tree view :).
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.
The tree should already be collapsed by the default (or it's a bug). However, the extension remembers the selection state, so if you expand some folders, you will see them remained expanded the next time you visit the same repository. Is there any chance you talked about this scenario?
This is a fantastic extension! Browsing is fast and efficient, and creating the token for my private repos was painless.
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).
This is great. It would be even better if you could resize the tree. Some projects have really deep trees and at a certain point you can't seem the names of the files.
A couple of people have asked for this in comments (and someone reported it on GitHub as well). I don't have a deployment handy so it's hard to build out. I hope someone can submit a PR. (Or wait until I can get a deployment to build/test.)
I'd love to see something like this being on the site by default. Maybe just a button next to the repository title where you'd be able to toggle between the current view and the tree view. Both of these options have their advantages for different use cases.
I had the same idea a couple weeks ago but never finished it: https://github.com/Gowiem/GitHubTree. Crazy to see this. Glad somebody got around to it. Thanks man!
I don't really find the tree view useful. But I wish there was a way to see the code weight by individual files and whole repos: as KLOCS, size, anything. Is there such an extension?
[+] [-] yblu|12 years ago|reply
[+] [-] toyg|12 years ago|reply
[+] [-] ushi|12 years ago|reply
[+] [-] teh_klev|12 years ago|reply
[+] [-] Xeoncross|12 years ago|reply
[+] [-] ivanca|12 years ago|reply
[+] [-] wonjun|12 years ago|reply
[+] [-] jburwell|12 years ago|reply
[+] [-] DanielRibeiro|12 years ago|reply
Contributions[1] are welcomed :)
[1] https://github.com/danielribeiro/github-diff-highlight-exten...
[+] [-] rplnt|12 years ago|reply
[+] [-] mck-|12 years ago|reply
[+] [-] yclept|12 years ago|reply
[+] [-] bnj|12 years ago|reply
Be sure to tweet it at some of the github engineers– Thy should bring this into their core product.
[+] [-] ahmett|12 years ago|reply
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).
[+] [-] vdm|12 years ago|reply
[+] [-] Jonovono|12 years ago|reply
[+] [-] whizzkid|12 years ago|reply
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.
[+] [-] mateuszf|12 years ago|reply
[+] [-] granttimmerman|12 years ago|reply
[+] [-] yblu|12 years ago|reply
[+] [-] aslakhellesoy|12 years ago|reply
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.
[+] [-] manish_gill|12 years ago|reply
[+] [-] chillericed|12 years ago|reply
[+] [-] ubercow|12 years ago|reply
[+] [-] yblu|12 years ago|reply
[+] [-] jxf|12 years ago|reply
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).
[+] [-] tomblomfield|12 years ago|reply
Instead, why doesn't the plugin just link directly to the page which generates the token if it detects that the repo is private?
[+] [-] michaelmior|12 years ago|reply
[+] [-] glitchdout|12 years ago|reply
[+] [-] xwowsersx|12 years ago|reply
[+] [-] mateuszf|12 years ago|reply
[+] [-] Chris911|12 years ago|reply
[+] [-] gknoy|12 years ago|reply
[+] [-] yblu|12 years ago|reply
[+] [-] vdm|12 years ago|reply
[+] [-] mzahir|12 years ago|reply
This extension is great for exploring but if you know what you're looking for, cmd+t will save you more time.
[+] [-] mrdmnd|12 years ago|reply
[+] [-] dewey|12 years ago|reply
In the meantime that's a great solution. Thanks!
[+] [-] GowGuy47|12 years ago|reply
[+] [-] spullara|12 years ago|reply
[+] [-] mateuszf|12 years ago|reply
[+] [-] ntoshev|12 years ago|reply