Home Download Buy Blog Forum Support

20091023 Beta

20091023 Beta

Postby jps on Fri Oct 23, 2009 12:02 pm

Beta 20091023 is out, with Goto Symbol and a change to the default color scheme being the most visible changes. The color scheme now uses an orange highlight, to make the selection more visible. I like it, but I'm keen to hear opinions either way. If you're not seeing orange selections, it'll be because your color scheme is set to 'Monokai' rather than 'Monokai Bright'. Also on the color scheme front, the color of the bracket matching underlines can now be configured, by adding a value for 'brackets' in .tmTheme file.

For the API, addRegions has been extended to take an optional set of bit flags, the possible values of which are:

sublime.DRAW_EMPTY
sublime.HIDE_ON_MINIMAP
sublime.PERSISTENT

Let me know if it's not clear what these are doing. There's also a new callback available for plugins, onSelectionModified, and a new flag for the quick panel, sublime.SELECT_PANEL_MONOSPACE_FONT, which is handy if you're embedding formatting into the quick panel entries, a la CTags plugin.

For the full list of changes, have a look over the beta page.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20091023 Beta

Postby vim on Fri Oct 23, 2009 1:46 pm

jps wrote:For the API, addRegions has been extended to take an optional set of bit flags, the possible values of which are:

sublime.DRAW_EMPTY
sublime.HIDE_ON_MINIMAP
sublime.PERSISTENT


can you be more verbose, where should i use this? last time you used:
Code: Select all
view.addRegions(key, regions, scope)
view.getRegions(key)
view.eraseRegions(key)


where does it fit?
is it still using foreground color as background?
does the minimap still use the opposite color (vs. the one i see on the main view)?
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: 20091023 Beta

Postby AbsoluteDestiny on Fri Oct 23, 2009 2:39 pm

I recenlty purchased a license for Sublime as I like it very much. Just this very day I was thinking wouldn't it be great if this program:

- Had a symbols list
- Took my to the text when I clicked the minimap

and I'd just looked around the forum to find out how to:

- match braces by default
- change bracket match colour

So, all in all, this is a great update - thanks!

[As an aside, the symbols list isn't quite as quick as the ctypes package equivalent but that's probably because they are being made each time rather than cached, so that's understandable]
AbsoluteDestiny
 
Posts: 12
Joined: Fri Oct 23, 2009 2:27 pm

Re: 20091023 Beta

Postby EJ12N on Fri Oct 23, 2009 2:55 pm

Freaking awesome update, thanks a lot Jon :) keep up the good work!
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: 20091023 Beta

Postby n00ge on Fri Oct 23, 2009 4:31 pm

Very cool update.
http://twitter.com/n00ge
Sublime Text 3 dev builds | OS X 10.8.2 & Ubuntu 13.04
n00ge
 
Posts: 139
Joined: Mon Oct 05, 2009 1:23 am

Re: 20091023 Beta

Postby textisgood on Fri Oct 23, 2009 5:14 pm

"Goto Symbol" is great. It works really well in mutli-language files like HTML with embedded JavaScript. I do wish it was a bit smarter about the first symbol it highlights though. If I type "foo" it will highlight "bar" first if I have two functions like:

function bar(trickyParamWithFooInName)
function foo()

It seems like the function name--especially the first characters of the name--should have higher priority than the param names. Still, it already works way better than crappy, screen-sucking "function tree sidebars" in a lot of editors.
textisgood
 
Posts: 9
Joined: Fri Oct 23, 2009 4:36 pm

Re: 20091023 Beta

Postby jps on Fri Oct 23, 2009 10:15 pm

re: changes to regions API, addRegions now looks like:

Code: Select all
view.addRegions(key, regions, scope, <flags>)


where flags is a bitwise combination of zero or more of:

sublime.DRAW_EMPTY - draw empty regions as cursors
sublime.HIDE_ON_MINIMAP - don't show the regions on the minimap. this helps performance if you're adding a large number of regions
sublime.PERSISTENT - save the regions into the session

How colours are determined hasn't changed, although I'll fix the minimap issue at least for the next beta.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20091023 Beta

Postby jps on Sat Oct 24, 2009 7:12 am

AbsoluteDestiny wrote:As an aside, the symbols list isn't quite as quick as the ctypes package equivalent


Could you give some more details on this? What type of file are you seeing perf issues on? How big is it?
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20091023 Beta

Postby barty on Mon Oct 26, 2009 3:12 am

thanks for goto symbol and bracket color.
barty
 
Posts: 47
Joined: Thu Sep 10, 2009 5:39 am

Re: 20091023 Beta

Postby protoplasm on Mon Oct 26, 2009 11:56 am

Really like the new Goto Symbol quick panel. Using it, I have noticed two possible issues, though:

1) The CPU usage of my Sublime Text leaps right up when the quick panel is visible, and it hovers around 40%. I hadn't noticed it before, but I checked and it is the same with the Open File in Project quick panel.

2) Also, the symbol list includes anonymous functions in languages such as JavaScript. Since the list is not alphabetical this may be a deliberate decision but I think I'd personally prefer it to omit them.
protoplasm
 
Posts: 23
Joined: Tue Oct 20, 2009 4:47 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], yahkob and 19 guests