Sublime Forum

Dev Build 2106

#1

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.

0 Likes

#2

How come guideWidth was removed?

0 Likes

#3

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.

0 Likes

#4

The winner is “indent_guide_options”: “draw_active”, “stippled”] for me… or completely disabled, doesn’t make up my mind now.

[quote=“jps”]Dev Build 2106 is out now.

  • Empty lines are drawn with the indentation of the following non-empty line
    [/quote]

Isn’t it better if it’s the preceding non-empty line ?

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.

0 Likes

#5

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.,

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.

0 Likes

#6

Agreed. It was really annoying me, since I only have one line breaks between code, it just became a continuous line.

0 Likes

#7

Is there a chance to have this optional?

0 Likes

#8

[quote=“jps”]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.,

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.[/quote]

My bad…
Thanks for the answer.

0 Likes

#9

Woo hoo! Thank you! :smile:

0 Likes

#10

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!

0 Likes

#11

[quote=“jps”]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.[/quote]

What are the options to customize indent_guide_options?

0 Likes

#12

When I changed the tab size from 2 to 4 and clicked convert indentation to tabs, Sublime entered vintage mode. I checked my preferences and vintage is set to ignore in both my user and global preferences. Unusual bug. I don’t see how there is any relation…

0 Likes

#13

Has the ability to draw stippled regions been added to the API?

With View > Sidebar > Hide Open Files, switching and closing projects as well as switching layouts crashes Sublime for me. On Arch Linux x86_64 if it’s relevant.

Also not to sound like a broken record or anything :s but projects being saved as .sublime-project are still creating workspace files named .sublime-project.sublime-workspace.

0 Likes

#14

Drag and dropping a folder onto the sidebar of a windows with no project open no longer works.

0 Likes

#15

They’re listed in the Default File Settings - search for indent_guide_options

Stippled regions are not exposed to the API.

Thanks for the report, will fix for the next build

That’s more or less working as designed, as “.sublime-project” is considered to be the same as a file called “foo”: i.e., just a file name without an extension. A better option to create hidden projects is to call it “.myproject.sublime-project”.

I’m unable to replicate this. What OS are you on, and do you have the open files hidden on the side bar?

0 Likes

#16

Hey thank you for this release :smile:

I know you don’t like videos but I know it’s ok if they are to do with the UI, this seems like that’s the case screencast.com/t/3XCN5ZsSs1I

Many thanks.

0 Likes

#17

ceej: Would it be possible to email the file in question? (jps@sublimetext.com)

0 Likes

#18

Any chance of this getting added soon?

0 Likes

#19

I’d like to mention I’m not sure I like the new movement behavior, though I’ll admit I didn’t notice it untill you mentioned it.

I’m not sure what Apple (or emacs/vim etc…) does, but I prefer the Notepad behavior of simply clearing the anchor and then moving the cursor as usual, though this is hardly the Microsoft way: Word uses your behavior (move from the anchor if it’s closer - although it screws up shift-home and shift-end), and Visual Studio uses a bizzare halfway of using the anchor line if it’s closer, but always use the cursor column! If you do keep the new selection behavior, I’d say also copy Word and not show the cursor when there is a selection range (since it then only has significance to shift-movement).

0 Likes