News for hackers. Stuff that matters.
Re:Octotree: the missing GitHub tree view (Chrome extension) by jburwell on Tuesday May 13, 2014 @05:36PM (#7740832)
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.
Re:Octotree: the missing GitHub tree view (Chrome extension) by DanielRibeiro on Tuesday May 13, 2014 @07:24PM (#7741234)
For me, the biggest issue was lack of syntax highlight on pull requests. I've created this Chrome extension to fix it: https://chrome.google.com/webstore/detail/gh-diff-highlight/...

Contributions[1] are welcomed :)

[1] https://github.com/danielribeiro/github-diff-highlight-exten...

Re:Octotree: the missing GitHub tree view (Chrome extension) by cbabraham on Tuesday May 13, 2014 @09:52PM (#7741784)
Hey cool, my friend made the same extension only it uses github's server highlighted html instead of a javascript highlighter.

https://github.com/msolomon/github-diff-syntax-highlighter

Re:Octotree: the missing GitHub tree view (Chrome extension) by Inversechi on Wednesday May 14, 2014 @04:47AM (#7742785)
This is excellent - congratulate your friend!
Re:Octotree: the missing GitHub tree view (Chrome extension) by rplnt on Tuesday May 13, 2014 @05:43PM (#7740864)
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.
Re:Octotree: the missing GitHub tree view (Chrome extension) by fishtoaster on Tuesday May 13, 2014 @05:56PM (#7740922)
I browse repos on github pretty frequently. Some use cases:

- 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

Re:Octotree: the missing GitHub tree view (Chrome extension) by staticshock on Tuesday May 13, 2014 @07:10PM (#7741183)
For the "my repo, wrong branch" use case, you have some options:

  git show other-branch:path/to/file
or:

  git grep -e pattern other-branch
Re:Octotree: the missing GitHub tree view (Chrome extension) by skyebook on Wednesday May 14, 2014 @12:18AM (#7742175)
git-grep is indescribably awesome. To be fair though, I search github pretty frequently because it means I can search issues also. If issues were git repos themselves it would be a different ballgame.
Re:Octotree: the missing GitHub tree view (Chrome extension) by lhnz on Tuesday May 13, 2014 @05:47PM (#7740883)
It's good for when you want to browse a code base written in Java due to the deep folder hierarchies. And the reason somebody might do that is that they might be choosing between several different libraries, and want to evaluate the quality of their code a little before downloading them.
Re:Octotree: the missing GitHub tree view (Chrome extension) by yeukhon on Tuesday May 13, 2014 @06:08PM (#7740968)
I am not a Java hater, but any Java or Scala repo has a very deep tree. Clicking down and refresh page is not fun. Also consider when you want to open multiple files which are on different levels of the tree. Without the tree ready you would go back and forth between pages or having multiple new tabs opened to open each file.
Re:Octotree: the missing GitHub tree view (Chrome extension) by math0ne on Tuesday May 13, 2014 @05:46PM (#7740872)
It seems like you are getting down-voted but I'm very curios about this as well. It has always seemed to me that the tree browser was very inefficient way of browsing a file structure especially if you get into the realm of deep directories and long file names.
Re:Octotree: the missing GitHub tree view (Chrome extension) by oblique63 on Tuesday May 13, 2014 @11:34PM (#7742045)
A directory tree may not be the most optimal solution, but it's easier to browse than the default github view...
Re:Octotree: the missing GitHub tree view (Chrome extension) by smokinjoe on Tuesday May 13, 2014 @05:47PM (#7740882)
Personally I use it when trying to view past changes and understand what the state of the repo was at that particular moment.

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.

Re:Octotree: the missing GitHub tree view (Chrome extension) by mck- on Tuesday May 13, 2014 @08:45PM (#7741550)
protip: you can press 't' when you're in the repo for Sublime-like search for files -- which I find more useful than a tree browser
Re:Octotree: the missing GitHub tree view (Chrome extension) by jburwell on Tuesday May 13, 2014 @10:03PM (#7741821)
I find that feature useful when I am already familiar with a code base. However, when I am spelunking unfamiliar code bases, a good tree browser would make the effort quicker (e.g. speeding conventions directory hierarchies to get to the meat of the implementation). Since I find myself performing such discovery fairly often, I see this extension being a real time saver.
Re:Octotree: the missing GitHub tree view (Chrome extension) by yclept on Wednesday May 14, 2014 @01:14AM (#7742313)
do you know that you can press T on a repo page and get a nice fuzzy search? i find it much more efficient than clicking through a tree.
Re:Octotree: the missing GitHub tree view (Chrome extension) by nitrogen on Wednesday May 14, 2014 @10:47AM (#7744044)
Search will never be a substitute for hierarchical organization of information in all cases. Imagine if the taxonomic tree of life was abandoned in favor of a fuzzy search on organism attributes. Sometimes the relationships between conceptual elements, whether files or organism, are more important than a fuzzy key word.

For this reason I detest the Windows 7 start menu for its anti-organization UI, for example.