Home Download Buy Blog Forum Support

Dev Build 2069

Dev Build 2069

Postby jps on Wed Jun 22, 2011 11:40 am

Dev Build 2060 is out now.

One of the new features is the Command Palette (accessible via the Tools menu), which provides a keyboard driven way to select commands usually relegated to the menu - it's especially useful for switching the currently active syntax highlighting mode. It's driven by *.sublime-commands files, of which there's currently only one, in the Default package. It's fairly spartan; I'm more than happy to receive any patches here.

Also new in this build is the long awaited quick panel API, allowing plugins to present lists to the user. A short example that presents two items, each with 2 bits of secondary information to the user:

Code: Select all
import sublime, sublime_plugin

class QuickPanelExampleCommand(sublime_plugin.WindowCommand):
    def callback(self, index):
        print "selected index:", index

    def run(self):
        items = [["Item 1", "Subtext 1a", "Subtext 1b"], ["Item 2", "Subtext 2a", "Subtext 2b"]]
        self.window.show_quick_panel(items, self.callback)
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2069

Postby bizoo on Wed Jun 22, 2011 11:59 am

Yippeeeeeeeeee !!!!!!!!!!!!

You make my day Jon !
Quick panel look great and I like the new Command Palette very much, great idea !
Is there a way to customize the content of the Command Palette using the Syntax Type of the active view (to have per file type command) ? Like context:selector ?

Thanks for these blazing fast releases with lot of great things.
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2069

Postby bizoo on Wed Jun 22, 2011 12:23 pm

First little bug:
The Clone command does nothing for me when called from the Command Palette, it work when called from the File menu.

startup, version: 2069 windows x64 channel: dev
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2069

Postby jps on Wed Jun 22, 2011 1:23 pm

Good find - it's a typo in the Default.subime-commands file, where the command is listed as "clone" instead of the correct "clone_file".
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2069

Postby firefusion on Wed Jun 22, 2011 1:47 pm

Awesome!!!

Just what I was after!

Thanks for adding this Jon. It's made using Sublime truly Sublime :)
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Dev Build 2069

Postby jbjornson on Wed Jun 22, 2011 1:54 pm

@jps: Now that we have the quick panel, is there a way of getting a list of the recently used files so a plugin could display a list to the user?
jbjornson
 
Posts: 348
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland

Re: Dev Build 2069

Postby jbrooksuk on Wed Jun 22, 2011 3:27 pm

jbjornson wrote:@jps: Now that we have the quick panel, is there a way of getting a list of the recently used files so a plugin could display a list to the user?

You could combine it with the OpenLastFile plugin, which I believe keeps a list of files. Omnom.
jbrooksuk
 
Posts: 772
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2069

Postby jbjornson on Wed Jun 22, 2011 3:56 pm

jbrooksuk wrote:You could combine it with the OpenLastFile plugin, which I believe keeps a list of files. Omnom.


True, but it looks like each project maintains it's own recently used list of files which would provide a much richer user experience.
jbjornson
 
Posts: 348
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland

Re: Dev Build 2069

Postby jbrooksuk on Wed Jun 22, 2011 4:30 pm

One annoying thing with the quick panel is that it selects an item by default. I couldn't see a switch to turn this off?

Also, can a quick panel show a "group", as in, a list of a list?
jbrooksuk
 
Posts: 772
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2069

Postby charlesroper on Wed Jun 22, 2011 4:59 pm

For the love of bejeezus, that Command Palette is good.

Ctrl+Shift+P he [enter]

So good.
charlesroper
 
Posts: 107
Joined: Thu Feb 18, 2010 7:30 am

Next

Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests