Live data from Hacker News

Sublime Text 2.0 Released

sublimetext.com

231–240 of 358 posts

Re: Sublime Text 2.0 Released

#231

As an Intellij user (and Emacs way before that) I'm trying to give this a chance, but I see no way to click-navigate through source code. Am I missing something? I tried installing SublimeCodeIntel, and that lets me (occasionally) navigate to symbols in the current file. But I don't seem to be able to click through to symbols defined in other files/classes. Am I missing something fundamental, or is this strictly the…

Why do you want to use your mouse while coding?

Because when browsing code it's faster to click on a method name than to navigate to it with the keyboard.

Re: Sublime Text 2.0 Released

#232
post #51

Earlier quoted context omitted.

And why would I want to spend years crafting the perfect .vimrc for myself when tools exist that already do 80% of that better and without any configuration? I say this with a carefully crafted and organized .vim folder.

Because that last 20% is 80% of the power/speed/productivity.

citation needed

Re: Sublime Text 2.0 Released

#233
post #218

Earlier quoted context omitted.

I've even bought it, then went back to Vim. It looked so promising and I still think it's second best editor around. EDIT: There can be only one!

Do you use the external program to emulate Cmd-T? I don't like that solution :) and it doesn't work in Windows IIRC...

Command-T vim plugin works on windows too. Yes its a little harder to compile on windows but doable.

Re: Sublime Text 2.0 Released

#234
post #207

Earlier quoted context omitted.

It doesn't seem like the main issue is age as much as that most people will be coming to VIM from either IDEs or editors that had built-in code-navigation features, so moving to something like vim involves the extra overhead of learning things like tags or rope even.

There's definitely an age-gap here. People who grew up coding C had to learn to use ctags, whereas, people who start out in interpreted languages are much less likely to encounter such. >involves the extra overhead of learning things like tags or rope even. Rope has no learning overhead. It works the same as any IDE. You use the functionality it provides like "go-to definition" or refactoring. Tags are just a file yo…

Jeeze, I don't know why this got acrimonious all of a sudden. That seems unnecessary. If I've insulted you in some way, then I apologize.

Re: Sublime Text 2.0 Released

#235
post #228
post #178

Earlier quoted context omitted.

It all depends on your average typing / coding speed. Autocompletion doesn't offer a lot to someone who knows the language framework really well and type 90+ wpm. You may even find it's annoying more than helpful most of the time. I'm not that fast and to be honest I really don't miss code completion at all.

It's not so much about typing less as it is about interactively learning to use an API or codebase. Suppose you have a comment object and you want to get the body text of that comment. With autocompletion you can just type `comment.` and you'll immediately see whether it's called "body" or "text" or something else, instead of having to browse around the codebase (which incidentally is also easier in an IDE that under…

To me what you're describing are imagined problems. They aren't real problems for someone who eschews autocompletion tools. No offence intended.

I would argue that the autocompletion training wheels for learning a new API are really only useful if you're rarely going to use that API again. If you're going to be using it a lot, there's actual value in spending the extra effort to learn it's functions. It'll stick more. Unless you have a photographic memory your brain will tend to discard information it had to expend no effort on, and autocompletion basically becomes background noise. I theorize that a fast typist will gain the edge after using the API 10+ times, even if they have to look it up the first couple of times, because the additional effort and focus they had to give to the task will commit it to memory (and they will potentially learn more about what the API is doing).

The focus is often on typing the fewest characters, but I think that's the wrong thing to focus on most of the time when choosing an editor.

Re: Sublime Text 2.0 Released

#236

For me, for "serious" programming, I use a full-fledged IDE which has stuff like code linking, quick project search (with ST2 I have to switch to the terminal), built-in documentation, refactoring support... So paying $60 for a text editor, when there are many good free options out there (even outside of Linux) is too much.

I don't know how to use ST2, but the people I know who use it do project search from within the editor. It looks pretty snappy, about on par with the analogous feature in IntelliJ.

Re: Sublime Text 2.0 Released

#237
post #168

Earlier quoted context omitted.

I think, in these days, it is not too much to ask for the intelligent completion, e.g. when you type dot or arrow, to get corresponding members of class/struct - the information is just there and the editor has enough power to parse it... Same goes for a very simple word completion - when the editor already encountered the word in the previous line. These are just _very_ basic things.

But it's not. In fact intelligent completion is incredibly hard for dynamically typed languages. Those IDE that do perform intellisense or autocomplete with dynamic languages do it with very basic ability. In a real world dynamically written code file the editor simply has no way of knowing the members of a class. Or if it is even a "class".

Unless that dynamic language is Google Dart. The Dart Editor's intellisense works just fine.

Re: Sublime Text 2.0 Released

#238
post #234

Earlier quoted context omitted.

There's definitely an age-gap here. People who grew up coding C had to learn to use ctags, whereas, people who start out in interpreted languages are much less likely to encounter such. >involves the extra overhead of learning things like tags or rope even. Rope has no learning overhead. It works the same as any IDE. You use the functionality it provides like "go-to definition" or refactoring. Tags are just a file yo…

Jeeze, I don't know why this got acrimonious all of a sudden. That seems unnecessary. If I've insulted you in some way, then I apologize.

No insult intended or perceived.

Edited my comment to better reflect the content and mood I wanted to convey.

Thanks for the feedback.

Re: Sublime Text 2.0 Released

#239
post #144

Earlier quoted context omitted.

Can I ask why you disable the swap file? As someone with a computer that is horribly unstable (in the process of replacing it over the course of next month), the swap file has saved my ass on a few occasions.

my experience was that once you get used to keeping everything important in either svn or in a backup snapshot, you simply become annoyed by all of the tilde files lying around.

You can change where the swap files are saved too with `set directory=path`

Re: Sublime Text 2.0 Released

#240
post #191

Serendipitous, as I'm planning on doing a lightning talk on ST2 tonight. Editors seem to raise a lot of religious issues, and not to totally discount the distinctions that can be made between them, but I think it's more important to know your editor well than to worry about "the best editor." (If such a thing exists.) As Hunt & Thomas say in The Pragmatic Programmer : "use a single editor well."[1] You'll be most pro…

What prevents me from using cmd-P is that I usually just open my entire project folder in Sublime. When I do cmd-P to open for example "foo.py", it doesn't understand that I mean the foo.py which is in the same directory with the file I have currently open. Instead it lists all the foo.pys I have in any project I have ever created.

This can be mitigated a bit by the fact that you can type any portion of the path to shrink the result set. So if you have

  abc/def/ghi/foo.py
  jkl/mno/pqr/foo.py
  stu/vwx/yzz/foo.py
...you can type command-P, then "kfo", and you'd get the second foo.py, as it's the only one of the set with "k" in its path.
Post reply on HN