News for hackers. Stuff that matters.
Re:Sublime Text by yan on Thursday September 17, 2009 @12:23PM (#828262)
Without looking any deeper into it, the zoomed out view on the left ('MiniMap') looks amazing and I'd love my editor (MacVim) to incorporate it.

Is this for Windows only?

I tend to love features that need no explanations, no marketing, just a small screenshot for you to instantly see that it's a) amazing, b) useful, and c) should have been existent for a while now. Mark of a fantastic feature if you ask me.

Re:Sublime Text by bouncingsoul on Thursday September 17, 2009 @12:36PM (#828305)
DrScheme has the zoomed out view sidebar: View › Show Program Contour.

Screenshot: http://imgur.com/6mkPT.png

Re:Sublime Text by simonista on Thursday September 17, 2009 @01:18PM (#828412)
Cool! I'm just getting into scheme with a class this semester and this is awesome. Thanks!
Re:Sublime Text by URSpider94 on Thursday September 17, 2009 @12:34PM (#828296)
The site states: "Sublime Text requires Windows Vista, Windows XP, or Windows 2000 (with DirectX 9 installed)."

Something this pretty looks like it belongs on a Mac.

Re:Sublime Text by dazmax on Friday September 18, 2009 @02:15AM (#829767)
Here's hoping TextMate 2 will be this good.
Re:Sublime Text by andreyf on Thursday September 17, 2009 @01:02PM (#828374)
with DirectX 9 installed

Oooh! I, for one, have been looking forward to when editors will begin to experiment with code representation other than text and text folding.

Re:Sublime Text by utku_karatas2 on Thursday September 17, 2009 @01:13PM (#828400)
Ok, now as being someone right in the middle of implementing yet another ide/editor, I gotta ask, how's such a feature useful to you at all? What would it provide? Except just looking cool at a glance.
Re:Sublime Text by thaumaturgy on Thursday September 17, 2009 @01:31PM (#828449)
I tend to rely on my spatial reasoning a lot, even when programming -- as I suspect many other programmers do.

When working on large project files, I find that I have to spend a lot of time scrolling up and down trying to find a particular function, especially if a project file contains lots of similar-looking wrapper functions. OTOH, in my brain, I know exactly where, spatially, the function resides relative to the document. I just have to find it.

So for me, the mini-map is a huge win, on the level of, "oh wow, how have I been programming all this time without it?"

And I loathe pop-up and drop-down menus with all of my function names. They only resolve one tiny aspect of my hunting; I don't have to scroll, but I still have to find the function I'm looking for.

With mini-map, I should be able to zero in on any part of the code that I'm looking for with a single click. I really want that.

Re:Sublime Text by utku_karatas2 on Thursday September 17, 2009 @01:47PM (#828489)
Reasonable explanation, thanks.
Re:Sublime Text by icefox on Thursday September 17, 2009 @01:32PM (#828451)
Must be able to check my email ;) Or really provide a extension system so I could do that.
Re:Sublime Text by utku_karatas2 on Thursday September 17, 2009 @01:51PM (#828502)
I was only referring to the mini map feature. While you, my friend, are definitely rooting for an emacs discussion :)
Re:Sublime Text by njharman on Thursday September 17, 2009 @01:13PM (#828402)
What is the appeal of the mini-map? [honest question]

I see negatives (takes up screen space, is distraction) and the positives (quick nav?) I already have without mini-map.

Re:Sublime Text by cschneid on Thursday September 17, 2009 @01:19PM (#828421)
I'd like to have more of a spacial sense of code. If only to help organize things. I work with huge fonts when coding (so I can lean back, instead of in), but in exchange I give up a lot of surrounding context. A sidebar like that would make organization a little easier. Not sure how it'd compare to a quick-jump list though.
Re:Sublime Text by icefox on Thursday September 17, 2009 @01:31PM (#828447)
Taking c++ as an example: It would be nice if when my cursor is in function Foo::bar() it highlights all functions in Foo which depend on variables modified by bar() and highlight all functions which modify variable bar() relies upon. Pretty trivial to do, but might be useful.
Re:Sublime Text by ableal on Thursday September 17, 2009 @01:28PM (#828442)
The comments from 2007 (http://www.sublimetext.com/blog/articles/anatomy-of-a-next-g...) have a pointer to this:

http://bigasterisk.com/projects/skim

which may give someone a starting point.

Re:Sublime Text by mmc on Thursday September 17, 2009 @02:04PM (#828533)
I built a prototype of something like this for the Mac OS X Cocoa text system several years ago - I called it "TextShapeView", and I was intending to make it into a Cocoa text system plugin (InputManager) so you could pop up this view next to any TextView in any program. I might have gotten further with that, but I can't remember.

Here's a blog post with details, links, and a screenshot:

http://michael-mccracken.net/2009/09/textshapeview/

The code is hosted at http://leverage.sourceforge.net/ , where there are a few other text system hacks that I did a few years ago - one of my favorites showed a hierarchical outline view next to any text view that would show the nesting of any kind of simple syntax, and let you move the selection around by selecting in the outline. It is unfinished but still pretty useful.

Re:Sublime Text by yan on Thursday September 17, 2009 @02:22PM (#828589)
This is great! Thanks! I spent some time trying to learn how Cocoa's text system works and this should help quite a bit. Also, I'll try to include something like this in MacVim.
Re:Sublime Text by baxter on Friday September 18, 2009 @03:44AM (#829850)
Perhaps with this feature we can finally use ASCII art to navigate through our code!
Re:Sublime Text by Kaizyn on Thursday September 17, 2009 @01:38PM (#828468)
The author of Sublime Text is using DirectX so it's Windows only for now. Most everything in the app is written in Python so in theory he could move things over to OpenGL.
Re:Sublime Text by dk on Friday September 18, 2009 @12:43AM (#829670)
Pretty sure that would be the case regardless of language.
Re:Sublime Text by tdavis on Friday September 18, 2009 @12:39AM (#829663)
taglist.vim gets you most of the way there, unless you have ridiculously long functions or something.