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…
> 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?
Sublime Text 2 Beta released with Auto-complete and Improved UI
21–30 of 156 posts
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#22I 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 abilitity to write your own autocompletion plugins for the freaky/obscure kinds of files you use really rocks. Even without heavy-duty semantic analysis of the code, you can get 90% of the way there and it is really useful.
The main problem right now is that the UI is still too narrow. Voting this issue up could help get that fixed:
http://sublimetext.userecho.com/topic/85632-need-the-complet...
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#23I 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.
> you can't just implement in Emacs' scripting language. you can't implement minimap in CLI. It's a GUI concept.
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#24What 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…
> 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?
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#25What 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…
> 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?
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#26http://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 plugins: http://wbond.net/sublime_packages/community, plus any others that you add via their github repo.
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#27I 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.
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#28I'm confused, doesn't it already have auto-complete? Mine's been doing that for a while now. What's new about this?
Re: Sublime Text 2 Beta released with Auto-complete and Improved UI
#29The 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…