Home Download Buy Blog Forum Support

Dev Build 2176

Dev Build 2176

Postby jps on Thu Feb 09, 2012 3:09 am

Dev Build 2176 is out now. Some of the changes are:

Auto Complete: The popup will hide when it's likely to be unwanted, such as when you've just finished typing 'else' in C. This is controlled by the cancelCompletion regex, specificed in .tmPreferences files.

Auto Indent: The logic of when to indent has changed a fair bit, to work around some annoyances with the previous approach. This should benefit JavaScript especially. Please let me know if you see any regressions here. There are also two new settings for auto indent:

smart_indent: auto indent won't try to guess when to indent the next line.

indent_to_brackets: yields this indentation style:

Code: Select all
use_indent_to_brackets(if_you_indent,
                       like_this);
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2176

Postby tanepiper on Thu Feb 09, 2012 9:28 am

OSX: Open File and Open Folder have been combined into a single Open menu item


Nice little touch - ST2 just keeps getting better and better :)
tanepiper
 
Posts: 68
Joined: Sun Nov 06, 2011 6:40 am

Re: Dev Build 2176

Postby senzo on Thu Feb 09, 2012 9:40 am

indent_to_brackets


very welcome addition, thanks
senzo
 
Posts: 106
Joined: Tue May 24, 2011 9:17 am

Re: Dev Build 2176

Postby sublimator on Thu Feb 09, 2012 9:48 am

breaks Zen plugin
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Dev Build 2176

Postby gsusmonzon on Thu Feb 09, 2012 11:01 am

Hi,
there is an annoying effect with the new 'Untitled files have their name set automatically from the first line of the file'
Each seach creates a new 'tab' instead of reusing the old one (as used to be). After some searches, you end up having more 'search tabs' than real-info tabs.
I cannot see a way to disable this.

For the rest, thanks for improving on each build.

-j-

Im running the Linux64bits version.
gsusmonzon
 
Posts: 1
Joined: Thu Feb 09, 2012 10:57 am

Re: Dev Build 2176

Postby spadgos on Thu Feb 09, 2012 11:30 am

The 'untitled files' change I think has caused other issues too. For example, the Git plugin has stopped working now (committing a file does nothing).

I think it's actually a bit of a misfeature anyway - i like being able to see which buffers aren't saved to disk, and the updating of the tab title and window title as you type is annoying.
spadgos
 
Posts: 121
Joined: Thu Oct 06, 2011 12:49 am

Re: Dev Build 2176

Postby qqq on Thu Feb 09, 2012 12:20 pm

Got the message out of the blue:

A plugin (set_unsaved_view_name) may be making Sublime Text unresponsive by taking too long (0.029000s) in its on_modified callback.


Never got it before so I guess it's specific to this version.
ST2 Win7 64-bit
qqq
 
Posts: 57
Joined: Tue Mar 08, 2011 9:49 am

Re: Dev Build 2176

Postby qqq on Thu Feb 09, 2012 1:33 pm

And there is another issue. When typing PHP code, if I don't end the line with ";" the next line is indented on pressing Enter. I'm not sure this behaviour is desirable. There are situations when the line doesn't end with ";" and there is no need for indentation. Example:

Code: Select all
$myArray = array(
    'banana' => 'yellow',
    'orange' => 'orange',
    'apple' => 'red'
);


And that's how it looks when you type it in ST build 2176:
Code: Select all
$myArray = array(
    'banana' => 'yellow',
        'orange' => 'orange',
            'apple' => 'red'
);
ST2 Win7 64-bit
qqq
 
Posts: 57
Joined: Tue Mar 08, 2011 9:49 am

Re: Dev Build 2176

Postby wbond on Thu Feb 09, 2012 2:24 pm

I am also experiencing issues with the automatic naming of unsaved views. I am explicitly setting a view name, but Sublime is overriding it, breaking the functionality of the plugin. I think that changing the logic to only automatically rename a view with the name "Untitled" might go a long way in solving the problem.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Dev Build 2176

Postby jbrooksuk on Thu Feb 09, 2012 3:14 pm

[quote="qqq"]And there is another issue. When typing PHP code, if I don't end the line with ";" the next line is indented on pressing Enter. I'm not sure this behaviour is desirable. There are situations when the line doesn't end with ";" and there is no need for indentation/quote]
This is already driving me insane :(
jbrooksuk
 
Posts: 774
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Next

Return to General Discussion

Who is online

Users browsing this forum: pete340 and 13 guests