Live data from Hacker News

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

sublimetext.com

51–60 of 156 posts

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

#51
post #17

My favorite feature (already added in an earlier development release, but now finally in the beta track): On OSX, if you are editing a file you don't have write access to and you want to save it, Sublime now asks for authentication than then saves the file. This is very convenient and not having this was the reason for still having TextMate around.

Is there any way to do the same in Vim?

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

#52
post #51
post #17

My favorite feature (already added in an earlier development release, but now finally in the beta track): On OSX, if you are editing a file you don't have write access to and you want to save it, Sublime now asks for authentication than then saves the file. This is very convenient and not having this was the reason for still having TextMate around.

Is there any way to do the same in Vim?

  :w !sudo tee %

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

#53
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…

As soon as they have the code required to analyze your code, they aren't small, and as soon as they run that code they aren't fast. OTOH if that's the functionality you want, use eclipse, intellij (or a variant like RubyMine), and buy a beefy computer with an SSD. Eclipse isn't slow on my machine.

EDIT: Now that I look at your two requirements, that's not at all hard for a language like C or java. I recall having this in 1993 on the OS/2 version of SlickEdit. vim or emacs will handle this no problem. If you want a GUI, Visual SlickEdit will do it, and for a whole bunch of languages on every OS.

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

#54
post #48
post #29

Earlier quoted context omitted.

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

Well, that would really take a lot of work, to make it good. There's some commented-out logic in the 'official' Cappuccino plugin for ST, that takes into account the scope and then works backwards to try to figure out what type of object you are messaging. https://github.com/aparajita/Cappuccino-Sublime But I think the reason that's commented out is that it is easy to get some parts working, but to do it right you ne…

BTW the SublimeCodeIntel project is really interesting in this regard.

https://github.com/Kronuz/SublimeCodeIntel

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

#55
post #26

Anyone using this editor should install this plugin first: http://wbond.net/sublime_packages/package_control It's fantastic and gives you a simple in-editor way to add/remove other plugins, direct from their github repos, without needing to leave or restart the editor. It also automatically keeps them all up to date. Once it's installed, you can just use the command palette (ctrl+shift+p) to install any of these plug…

Totally agree, Sublime really comes together when using some plugins and with this plugin it really makes the process of installing / trying or using / updating and removing very simple.

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

#56
post #48
post #29

Earlier quoted context omitted.

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

Well, that would really take a lot of work, to make it good. There's some commented-out logic in the 'official' Cappuccino plugin for ST, that takes into account the scope and then works backwards to try to figure out what type of object you are messaging. https://github.com/aparajita/Cappuccino-Sublime But I think the reason that's commented out is that it is easy to get some parts working, but to do it right you ne…

The reason that I ask is that I feel I am getting stuck with C# simply due to the comfort of Intellisense. I have to find some way of replicating that experience with other languages...

I know other languages of course, but it just feels like a hassle to code without Intellisense these days :p

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

#57
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…

Number 2) is included in Sublime Text (same shortcut, too). And it's fuzzy!

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

#59
New release looks great. One problem I have with ST2 is dragging tabs from one window to another window. The actual dragging of the tab works but if it's the last tab in the window and I remove it and put in another window, I'm left with a window with no tabs in it. Can this "empty" window automatically close please?
Post reply on HN