Home Download Buy Blog Forum Support

20100430 Beta

20100430 Beta

Postby jps on Fri Apr 30, 2010 12:31 pm

20100430 is out now. The replace panel bug where tab wasn't working until the mouse was used in fixed.

Also new in this beta is the onQueryContext API, for plugins to expose key binding contexts. For example:

Code: Select all
class NumberContext(sublimeplugin.Plugin):
   def onQueryContext(self, view, key, value):
      if key == "isNumber":
         isNumber = True
         for s in view.sel():
            char = view.substr(s.begin())
            if char < '0' or char > '9':
               isNumber = False
         
         return isNumber == (value == "true")


This plugin defines a new key binding context, "isNumber", that allows key bindings that only trigger if the cursor in next to a number. The corresponding key binding would look like:

Code: Select all
<binding key="ctrl+t" command="whatever">
   <context name="isNumber" value="true"/>
</binding>


EDIT: Also, memory usage is substantially improved with many files are open. Startup speed is better due to better IO scheduling, and the CPU time required for startup has also been reduced.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20100430 Beta

Postby n00ge on Fri Apr 30, 2010 12:47 pm

Awesome. That tab bug was quite annoying. Thanks for the 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: 20100430 Beta

Postby PinnacleWebDesign on Fri Apr 30, 2010 12:57 pm

Hey you packaged up a portable version too - you kept quiet about that :D

Excellent stuff

Just off to download it now to add it to my Dropbox

Cheers,
Mick
PinnacleWebDesign
 
Posts: 33
Joined: Sun Aug 09, 2009 6:43 pm
Location: UK

Re: 20100430 Beta

Postby edanm on Fri Apr 30, 2010 3:14 pm

Awesome. Off to download :)

Edan
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Re: 20100430 Beta

Postby edanm on Fri Apr 30, 2010 6:30 pm

Major problem:
Ctrl+r (find symbol in file) crashes the new version when run in an html file.

I tried several different files, and even a minimal html file which only has a head section will cause the crash. (An empty file won't cause a crash).
The previous beta version doesn't have this problem.

Hope this gets solved soon!
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Re: 20100430 Beta

Postby GreyWyvern on Fri Apr 30, 2010 8:28 pm

edanm wrote:Major problem:
Ctrl+r (find symbol in file) crashes the new version when run in an html file.


Confirmed.
GreyWyvern
 
Posts: 106
Joined: Fri Oct 23, 2009 7:08 pm
Location: Canadia

Re: 20100430 Beta

Postby jps on Fri Apr 30, 2010 10:37 pm

20100501 is up now which fixes this bug.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20100430 Beta

Postby gpfsmurf on Fri Apr 30, 2010 11:08 pm

Pressing escape doesn't close the find panels because the context "isPanelVisible" doesn't work anymore

EDIT: it works when inside the find panel, but not when inside the editor pane
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: 20100430 Beta

Postby jps on Fri Apr 30, 2010 11:47 pm

20100501 is updated with a fix now
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20100430 Beta

Postby edanm on Sat May 01, 2010 12:20 pm

Works for me.
Thanks!
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: FichteFoll and 114 guests