Live data from Hacker News

Sublime Text 2 Beta released with Auto-complete and Improved UI

sublimetext.com

31–40 of 156 posts

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#31
post #9

I really wish Emacs had smooth scrolling, indent guides and that Minimap. Those are some killer features that you can't just implement in Emacs' scripting language. edit: minimap exists! (Obviously only in GUI Emacs) Animated sub-line scrolling probably requires hacking the Emacs source. Indent guides might be possible just in elisp, but I don't know how good they would look.

I'm not sure what "Animated sub-line scrolling" is but "smooth scrolling" returned a lot of hits:

http://stackoverflow.com/a/4160949

http://www.emacswiki.org/emacs/SmoothScrolling

http://zwell.net/content/emacs.html

https://emacs.wordpress.com/2007/09/10/smooth-scrolling/

Yes, trying to do fancy things in Elisp can be a bit kludgy.

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#32
post #25
post #13

Earlier quoted context omitted.

> Jump the the function/method definition for scripting languages, define a function as concatenated string in eval(), how could you find the function definition, without actually run the script for once? Even if you run the script once, what if there is a delete_file() function you accidently called? So do we need to implement a sandboxed VM in order to find definition, theoretical perfectly speaking?

That's such an edge case. I've never seen anybody defining functions in evals, especially as concatenated strings.

Maybe you should take a look at the Rails sourcecode.

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#34
post #8

What I really miss in all these fast small editors is the quick-jump features that actually analyze the code and let me do things like 1) Jump the the function/method definition (even if it's in a different file) when I press Ctrl and click on the function name. Eclipse does this. 2) Quick find of the function/method definition across the whole project. Eclipse does this as well (Ctrl + R). I don't use Eclipse that m…

AFAIK Komodo IDE (7.0 at least) has this feature and it is definitely faster than Eclipse, but it is infinitely more expensive.

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#35
> If you’re feeling adventurous, you may want to enable the auto_complete_commit_on_tab file setting: This will make tab accept the current completion, and enter operate as normal.

I've had this on for about a week now, and although it was initially very disorienting, it's very easy to get used to it. I'd certainly recommend it, since it allows you to add a new line even if a suggestion is there.

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#36
post #8

What I really miss in all these fast small editors is the quick-jump features that actually analyze the code and let me do things like 1) Jump the the function/method definition (even if it's in a different file) when I press Ctrl and click on the function name. Eclipse does this. 2) Quick find of the function/method definition across the whole project. Eclipse does this as well (Ctrl + R). I don't use Eclipse that m…

For Ruby, I highly recommend RubyMine.

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#37
Is this just me but no-one seem to talk about it. How can I get the Sidebar to have a similar color scheme with my main theme? I like the default Monokai but the Sidebar is light. The Soda theme & Color Scheme was nice but the new UI improvement in the IDE is so good to sacrifice it for Soda.

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#38
post #29
post #22

The great thing about ST2's autocompletion is that it is totally extensible, allowing you to hack your own completion routines. I wrote an indexer for Objective-J code last year, that scans a set of folders (which can include the Cappuccino frameworks if you like) and creates a completion index of all the class names, methods, functions, etc. It was trivial to make an ST2 plugin that completes using that data. The ab…

What would it take to get it to be as smart as, say, Intellisense?

https://github.com/Kronuz/SublimeCodeIntel

Re: Sublime Text 2 Beta released with Auto-complete and Improved UI

#40
post #8

What I really miss in all these fast small editors is the quick-jump features that actually analyze the code and let me do things like 1) Jump the the function/method definition (even if it's in a different file) when I press Ctrl and click on the function name. Eclipse does this. 2) Quick find of the function/method definition across the whole project. Eclipse does this as well (Ctrl + R). I don't use Eclipse that m…

I think you are looking for the CodeIntel plugin. It takes a few minutes to index large projects, but after that, it's really fast and Alt + Click will take you to the definition of things. I switched completely from TextMate.

Take a look: https://github.com/Kronuz/SublimeCodeIntel

Post reply on HN