Live data from Hacker News

Sublime Text 2.0 Released

sublimetext.com

181–190 of 358 posts

Re: Sublime Text 2.0 Released

#181

Earlier quoted context omitted.

It's mainly to keep everything (where everything == files, REPL, docs, etc.) in a single window, which I can then throw full-screen and have absolutely nothing but my work in front of me. I'm sure one could use ST2 (or any other GUI app) on Linux with a tiling WM like xmonad and achieve a similar workflow, but there doesn't seem to be a way to achieve this on OSX that doesn't involve ugly/unstable hacks.

You know, in theory it'd be possible to do that within Sublime but I'm not sure if that's veering towards the emacs approach of ALL THE THINGS. I'd have to try it but I think you can probably use PyQt to grab WebKit and make a package to display HTML docs within Sublime

The "all the things" approach is a large part of what keeps me away from Emacs[1]. I'd much rather use a single-purpose editor (like ST2 or Vim) alongside other similarly-focused tools, or a well-done IDE that's focused on it's environment. Emacs tries too hard to be everything at once (why do I want an editor that's a file manager, IRC client, organizer, and Tetris?).

[1] The other is it's absolute refusal to "fit in" on whatever platform it's on. Fits with the kitchen-sink approach: why interop with [program X] when you can just build it in?

Re: Sublime Text 2.0 Released

#182
post #168

Hm, Am I the only one who spends hours in vim each day with ~15 lines in my .vimrc and almost zero plugins? At some point I think I realized that no matter how feature-rich my editor was, the main thing stopping me from writing good and fast code was _thinking_, not configuring my text editor.

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".

Re: Sublime Text 2.0 Released

#183
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".

Sometimes the simples things are hardest to implement. Visual voice mail - No brainer, but took a decade.

Re: Sublime Text 2.0 Released

#184

Hm, Am I the only one who spends hours in vim each day with ~15 lines in my .vimrc and almost zero plugins? At some point I think I realized that no matter how feature-rich my editor was, the main thing stopping me from writing good and fast code was _thinking_, not configuring my text editor.

Same here.

Editors are vastly more complex than necessary.

I want an editor like google.com. It's simple "sentence" model totally wins. Of course, creation instead of consumption requires additional abstractions.

Three dimensions build an entire universe. An editor built with three choice abstractions could outstrip every other editor conceived. Ever.

Somebody do it.

Re: Sublime Text 2.0 Released

#185

Earlier quoted context omitted.

I'm fairly sure he's made really quite a large chunk of dollar out of it already. Especially after he started forcing people to pay up if they wanted the very latest builds. That was a stroke of genius.

Really? I was using the dev builds without paying (bought my license yesterday).

Nightly would be the very latest, I think.

That is, it's not like, say, Chrome release where it's Dev -> Beta -> Stable. It is (was?) more like Nightly -> Dev -> Beta/Stable.

Re: Sublime Text 2.0 Released

#186
post #168

Hm, Am I the only one who spends hours in vim each day with ~15 lines in my .vimrc and almost zero plugins? At some point I think I realized that no matter how feature-rich my editor was, the main thing stopping me from writing good and fast code was _thinking_, not configuring my text editor.

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.

Dynamic languages are not ideal for huge code bases. But huge code bases are not ideal, period.

Dynamic languages grant huge power to small programs. Greater power through less code is surely the future.

Re: Sublime Text 2.0 Released

#187

Earlier quoted context omitted.

Everything is in text files. This is awesome if you want to move your config to a different machine (or gasp OS). Give it a try. It is not as bad as it looks on first sight. You'll get used to it and probably appreciate it a bit in no time.

I think I'd change editors before I changed to a different OS. These days, pretty much everything can be done from one machine. From where I sit, I can work with 6 different OS'es (yeah, it's a jungle) all from the comfort of OS X. I get that this is a programmer's editor and so maybe a certain amount of "roughness" in design is appropriate. But I'd rather spend my time customizing my own apps than trying to figure o…

Do what you must. But just in general, I would recommend you to try stuff. Especially if it seems foreign or strange to you but many people seem to like it.

I remember when I was argueing just the way you are now. Maybe you will follow my steps. Maybe you won't. Anyway, I wish you the best of luck in your own bubble of happiness.

Re: Sublime Text 2.0 Released

#188

Question: I'm an Emacs user, and haven't checked out ST or ST2. Is it comparable in terms of flexibility++?

It is great! It really is! Give it a shot just to see what we Emacsens are missing. But if you're like me... Well, Emacs is a way of life and it does a whole lot more than just editing text. I would love to have smooth scrolling and multiple cursors and slick animations and a cursor that can be off-screen. But at the end of the day, I prefer magit and org-mode and keyboard-only navigation and macros and so on. It sti…

I dont know about multiple cursors., but I use scrolling all the time

  (global-set-key "\M-n" "\C-u1\C-v") 
  (global-set-key "\M-p" "\C-u1\M-v")

Re: Sublime Text 2.0 Released

#189
post #98

Earlier quoted context omitted.

Regarding auto-complete, I find it is extremely rare that typing speed is what slows me down, nor that I end up having to chase code around. There are plenty of fast search solutions for terminal based editors, but I don't even use things like ctags because the times I've tried it the speedup was never compelling enough to justify yet another thing to install on all the machines I work on. Solving the problem at hand…

I find it is extremely rare that typing speed is what slows me down Auto-complete isn't about typing speed. It's about API exploration.

Exactly. I avoided IDEs for years thinking they were for lazy typists. Finally a friend convinced me to try one, and it totally changed the way I work. Just hit CTRL-space and see what you can do with it. Who needs to look up documentation when you can just hit CMD+B and jump into that library's source code? Oh the time I wasted...

Re: Sublime Text 2.0 Released

#190
post #174

Earlier quoted context omitted.

I think he's referring to the "column" visual mode, that allows you to make a rectangular selection and delete/insert/replace it.

Yes, in particular the "bulk edit actions" (not sure if they have a proper name) that you can do in Vim in either visual mode. E.g. make visual selection, shift-I = prepend text to all selected lines. This is the same functionality as sublime multi-line editing. The problem is that neither seems to work in vintage-mode (or I'm just too dense to figure out how). Edit: Nevermind, it works now after I started over with…

Last time I checked it worked.

Try selecting several lines in vintage mode, then hitting Ctrl+l?

Post reply on HN