Home Download Buy Blog Forum Support

Nightly Build 2191

Nightly Build 2191

Postby jps on Thu Mar 29, 2012 9:40 am

Nightly Build 2191 is out now, with a few misc changes, and several community submitted Vintage mode changes.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Nightly Build 2191

Postby bizoo on Thu Mar 29, 2012 10:23 am

Thanks for the update.
API: Added 'control' context for key bindings

No idea what it is ??? Could you please explain or give an example ?
bizoo
 
Posts: 876
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Nightly Build 2191

Postby jbrooksuk on Thu Mar 29, 2012 10:28 am

Are CSS colours supposed to be highlighted now? I don't have any special themes etc...
jbrooksuk
 
Posts: 761
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Nightly Build 2191

Postby phillip.koebbe on Thu Mar 29, 2012 10:46 am

Install and relaunch still doesn't work for me on OS X 10.7.3. I got the "update is available" dialog when I launched, downloaded the update, but when I clicked "Install and relaunch" (or whatever it says), ST2 shut down but didn't relaunch.
-- Phillip

Code: Select all
while self.living? do
    mistake = Mistake.new
    self.learn_from!(mistake) unless mistake.fatal?
end
phillip.koebbe
 
Posts: 208
Joined: Tue Dec 20, 2011 4:58 pm

Re: Nightly Build 2191

Postby alexrussell on Thu Mar 29, 2012 10:58 am

phillip.koebbe wrote:Install and relaunch still doesn't work for me on OS X 10.7.3. I got the "update is available" dialog when I launched, downloaded the update, but when I clicked "Install and relaunch" (or whatever it says), ST2 shut down but didn't relaunch.

+1, also OSX 10.7.3

Not a big deal obviously, but still.
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

Re: Nightly Build 2191

Postby jps on Thu Mar 29, 2012 12:19 pm

bizoo wrote:Could you please explain or give an example ?

You can make key bindings that only trigger when the side bar has input focus:
Code: Select all
{ "keys": ["enter"], "command": "foo", "context":
   [ {"key": "control", "operand": "sidebar_tree"} ]
},

jbrooksuk wrote:Are CSS colours supposed to be highlighted now? I don't have any special themes etc...

No, the text rendering change effects ASCII control characters only: http://en.wikipedia.org/wiki/ASCII#ASCI ... characters
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Nightly Build 2191

Postby C0D312 on Thu Mar 29, 2012 12:54 pm

You can make key bindings that only trigger when the side bar has input focus:

Awesome!
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Nightly Build 2191

Postby nick. on Thu Mar 29, 2012 5:34 pm

I'm unsure of when this started, but there may be a bug in EventListener.

I wrote a simple plugin in this thread to go to Vintage command mode on save.
Code: Select all
import sublime, sublime_plugin

class GoToCommandModeOnSaveCommand(sublime_plugin.EventListener):
   def on_post_save(self, view):
      view.run_command("exit_insert_mode")


On save, the view does indeed exit insert mode. But the view is still marked as dirty, even though the file was written. If I Ctrl+S again (from command mode), the tab indicator goes to an "X" as expected, but we've written the file twice.

Can anyone replicate the issue? Is my plugin written incorrectly?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Nightly Build 2191

Postby quarnster on Thu Mar 29, 2012 5:47 pm

nick. wrote:Can anyone replicate the issue? Is my plugin written incorrectly?


Your plugin worked fine for me. I edit a file, the view shows the "dirty" circle, I hit "cmd+s" to save, insert mode exits and I'm now back in command mode. The dirty circle is replaced with the close x.
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Nightly Build 2191

Postby nick. on Thu Mar 29, 2012 9:53 pm

quarnster wrote:
nick. wrote:Can anyone replicate the issue? Is my plugin written incorrectly?


Your plugin worked fine for me. I edit a file, the view shows the "dirty" circle, I hit "cmd+s" to save, insert mode exits and I'm now back in command mode. The dirty circle is replaced with the close x.


Can you check the console output with sublime.log_commands(True):
Code: Select all
>>> sublime.log_commands(True)
found 1 files for base name Soda Light.sublime-theme
Generating syntax summary
theme loaded


That is, after a save, the theme is being reloaded. I disabled my plugin and it's still doing that, anyone else seeing this?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], jbjornson and 16 guests