Home Download Buy Blog Forum Support

Dev Build 2106

Dev Build 2106

Postby jps on Fri Aug 26, 2011 10:52 am

Dev Build 2106 is out now.

Indent guide rendering has changed a bit:
- Lines are drawn stippled
- Empty lines are drawn with the indentation of the following non-empty line
- Guides are drawn in the first column
- guideWidth theme key has been removed
- Added setting indent_guide_options, giving a bit more control over how they're drawn

The FILES (now OPEN FILES) section of the side bar can now be removed via the view menu. There may be some things that don't work if they're hidden, but I haven't found any yet. This setting is remembered.

Finally, delete word (ctrl+backspace on Windows and Linux, alt+delete on OS X) has been changed to behave in a more typical way, and so has pressing up/down with a selection.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2106

Postby jbrooksuk on Fri Aug 26, 2011 10:59 am

How come guideWidth was removed?
jbrooksuk
 
Posts: 782
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2106

Postby jps on Fri Aug 26, 2011 11:11 am

jbrooksuk wrote:How come guideWidth was removed?

It wasn't useful for what I originally intended it for. If there's a desire for, say, 2px wide guides, it'd be better to implement that via indent_guide_options.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2106

Postby bizoo on Fri Aug 26, 2011 11:44 am

The winner is "indent_guide_options": ["draw_active", "stippled"] for me... or completely disabled, doesn't make up my mind now.

jps wrote:Dev Build 2106 is out now.
- Empty lines are drawn with the indentation of the following non-empty line

Isn't it better if it's the preceding non-empty line ?
Code: Select all
try:
    try:
        print "begin"|
    finally:
        print "end"
finally:
    print "goodbye"

If you put the cursor on the |, press enter and type something, the active indent guide change for nothing after you press enter.
bizoo
 
Posts: 889
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2106

Postby jps on Fri Aug 26, 2011 11:58 am

bizoo: that change isn't related to active indent guides, just where the indent guides are drawn at all. The 2105 behavior was to use the previous lines indentation, which is almost always wrong. e.g.,

Code: Select all
if (x):
    return foo()

return bar()


2105 would display the blank line has having the same indentation as the "return foo()" line, which IMO isn't correct.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2106

Postby jbrooksuk on Fri Aug 26, 2011 12:05 pm

jps wrote:2105 would display the blank line has having the same indentation as the "return foo()" line, which IMO isn't correct.

Agreed. It was really annoying me, since I only have one line breaks between code, it just became a continuous line.
jbrooksuk
 
Posts: 782
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2106

Postby que on Fri Aug 26, 2011 1:03 pm

jps wrote:- Guides are drawn in the first column

Is there a chance to have this optional?
que
 
Posts: 18
Joined: Sat Jan 30, 2010 9:24 pm

Re: Dev Build 2106

Postby bizoo on Fri Aug 26, 2011 1:17 pm

jps wrote:bizoo: that change isn't related to active indent guides, just where the indent guides are drawn at all. The 2105 behavior was to use the previous lines indentation, which is almost always wrong. e.g.,

Code: Select all
if (x):
    return foo()

return bar()


2105 would display the blank line has having the same indentation as the "return foo()" line, which IMO isn't correct.

My bad...
Thanks for the answer.
bizoo
 
Posts: 889
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2106

Postby aparajita on Fri Aug 26, 2011 3:07 pm

jps wrote:Finally, delete word (ctrl+backspace on Windows and Linux, alt+delete on OS X) has been changed to behave in a more typical way, and so has pressing up/down with a selection.


Woo hoo! Thank you! :)
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: Dev Build 2106

Postby genix2011 on Fri Aug 26, 2011 4:30 pm

Hi,

wow great, this editor is just getting better and better. I've never seen an editor, that is as customizable as ST2.

Thanks for such an great cross-platform editor!
genix2011
 
Posts: 2
Joined: Fri Aug 26, 2011 4:28 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: apessino and 21 guests