Live data from Hacker News

Sublime Text 2.0 Released

sublimetext.com

221–230 of 358 posts

Re: Sublime Text 2.0 Released

#221
post #21

Sublime Text is really awesome! It's remarkable work, especially since there is just one developer working on it: ST2 works very well on all 3 platforms, it's very fast and has a lot of cool features. :) I just hope that it keeps getting new features, the thing I'm really really missing is a terminal that runs in a ST2 tab.

Install the SublimeREPL plugin from Package Control. Works like a charm!

Re: Sublime Text 2.0 Released

#222
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.

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.

The work that http://www.vpri.org/ has been doing around OMeta, Nile etc is really exciting.

It is detailed in the later part of this Alan Kay presentation:

https://www.tele-task.de/archive/video/flash/14029/

( around minute 45 or so up, perhaps earlier for more background )

Re: Sublime Text 2.0 Released

#223
post #6

An absolutely joyful piece of software. I love it so much, I bought it right away. Plus, where else can you experience such a pleasant multiplatform situation? Great Job!

I like it too. The main problem I have with it—and Textmate—is the lack of an emacs-like Follow-mode: http://www.gnu.org/software/emacs/manual/html_node/emacs/Fol... . It's 2012, I'm using a 27" monitor, and yet I can't find this feature, or one like it, in anything other than emacs, which has a learning curve far too steep for my pretty simple needs. At one point, the Textmate website mentioned that a follow-mode-li…

> The main problem I have with it—and Textmate—is the lack of an emacs-like Follow-mode: http://www.gnu.org/software/emacs/manual/html_node/emacs/Fol.... .

I believe this plugin does what you want: https://github.com/atbell/SublimeSynchroScroll

Re: Sublime Text 2.0 Released

#224

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…

I'm also an IntelliJ user, and this really only works when you are coding in Java or other strongly typed languages. IntelliJ's ability to do this with JavaScript and Ruby is abysmal at best.

Re: Sublime Text 2.0 Released

#225
post #144

Earlier quoted context omitted.

Something like this: https://gist.github.com/2996793 (16 lines, but you get the point).

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.

Re: Sublime Text 2.0 Released

#226

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.

Acme is close:

1. all text is "alive" for the purposes of executing/finding

2. select/execute/find for left/middle/right mouse clicks

3. ed-like command language (sam) plus structural regexes with conditions and loops

The lack of syntax highlighting is a usability problem, but also the fact that there's no good way to integrate it into something like acme is evidence that we're still missing one of these dimensions. The general problem seems to be recovering structure from the text on-the-fly and doing something with it, like highlighting or special structured editing. Emacs gets its "power" by letting the programmer directly manage what's on the screen and what happens for any key press. Editors like SublimeText and TextMate just have keybindings and language grammars, and syntax highlighting is sort of built-in.

If we had a good general solution to this problem and could plug it into acme, acme would really be compelling. But I can't really use an editor that lacks syntax highlighting.

Re: Sublime Text 2.0 Released

#227

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.

In my experience, Sublime Text hits that exact niche you're describing. It does the things important to programmers, or people who work with lots of text, well enough that you don't have to worry about any plugins, etc. But it also offers a great plugin ecosystem for just about anything you want. Turning on "vintage" mode is a great plus, too, especially coming from vim.

Re: Sublime Text 2.0 Released

#228
post #178
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.

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 understands your code, because you can put your cursor on the class name and press a "go to definition" key instead of having to find it manually).

Another invaluable feature related to this is documentation as you type. I can never remember the order of the arguments to the fold function. Fortunately Visual Studio helps out: https://dl.dropbox.com/u/388822/intellisense.gif (somehow my mouse pointer shows up in white, which makes it hard to see, but if you hover over the variables you get type information & documentation).

Re: Sublime Text 2.0 Released

#229

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'll bet you don't spend any time editing multiple languages with conflicting notions of whitespace. I split my time between C and Python, and tabs in C (per Linux kernel coding style) and spaces for Python (per PEP-8), and having that be correct is important for my sanity (as well as for the other people I work with - especially those who aren't multi-linugual).

My .vimrc has the following two lines which expand tabs to spaces by default but make an exception for makefiles:

  set expandtab

  au FileType make setlocal noexpandtab

Re: Sublime Text 2.0 Released

#230

Earlier quoted context omitted.

Now I'm curious. What 15 lines do you use?

Something like this: https://gist.github.com/2996793 (16 lines, but you get the point).

I prefer to use

    set directory=~/tmp
instead of turning off swap files. All the fun for none of the junk.
Post reply on HN