Home Download Buy Blog Forum Support

Dev Build 2150

Dev Build 2150

Postby jps on Tue Dec 20, 2011 12:22 pm

Dev Build 2150 is out now, with a collection of misc changes - details are on the dev build page
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2150

Postby bizoo on Tue Dec 20, 2011 12:52 pm

Wow, development again at full throttle :D
Thanks for the last builds with all great features added.

Now don't you think that at least the main page of the ST web site need some work ?
The new bold/italic syntax support is gorgeous and the screenshots of the site need to be updated (with larger images).
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2150

Postby bizoo on Tue Dec 20, 2011 1:02 pm

With a plugin, I try to change the encoding of file at opening when the file contains only ASCII chars.
This is the relevant part of the plugin:
Code: Select all
class AutoOpenDefaultEncodingListener(sublime_plugin.EventListener):
    def on_load(self, view):
        def_encoding = view.settings().get("default_encoding", "UTF-8")
        # if default_encoding is not UTF-8 and actual encoding is UTF-8
        if def_encoding != "UTF-8" and view.encoding() == "UTF-8":
            # Check if buffer contains only printable ASCII char.
            if not view.find("[^ -~\s]", 0):
                # Only ASCII char. -> Reopen file with default_encoding
                sublime.set_timeout(functools.partial(self.switch_encoding, view, def_encoding), 0)

    def switch_encoding(self, view, req_enc):
        if view.is_dirty():
            # some other plugins has modified this
            # file on_load, ignore encoding switch
            return
        sel = list(view.sel())
        view.run_command("reopen", {'encoding': req_enc})
        sublime.set_timeout(functools.partial(self.restore_selection, view, sel), 0)

    def restore_selection(self, view, sel):
        view.sel().clear()
        for s in sel:
            view.sel().add(s)

It work well except for the previewed files (ctrl+p):
Running the reopen command on the preview file act like a change in this file and it result that the file is opened for 'real' (new tab) what I don't want.

Any idea on how achieve what I want ?

BTW, on previous build when the file is reopened the modified icon mark is briefly showed in the sidebar, not anymore in this build (which is good).

Thanks for your help.

PS: Part of this code come from http://bitbucket.org/wuub/subarwe
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2150

Postby gavsim on Tue Dec 20, 2011 1:14 pm

Amazes me how quick JPS is in developing SublimeText!
gavsim
 
Posts: 9
Joined: Wed Oct 26, 2011 9:35 pm

Re: Dev Build 2150

Postby wuub on Tue Dec 20, 2011 1:51 pm

syntax definitions are reloaded on the fly


yessss
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: Dev Build 2150

Postby ajpalkovic on Tue Dec 20, 2011 5:42 pm

Color schemes and syntax definitions are reloaded on the fly

Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You. Thank You.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Dev Build 2150

Postby adzenith on Tue Dec 20, 2011 5:45 pm

API: Added window.get_layout() and window.set_layout()

I am excited!
adzenith
 
Posts: 1204
Joined: Mon Oct 19, 2009 9:12 pm

Re: Dev Build 2150

Postby atomi on Tue Dec 20, 2011 8:13 pm

Could we have Sublime load plugins in nested folders of the User package?
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: Dev Build 2150

Postby atomi on Tue Dec 20, 2011 11:57 pm

If you're planning on doing some work on the side bar, can i recommend the ability to hover the side bar over the editor, or an auto-hide side bar option?
For quick peeks. For instance, say I press ctrl+0 the side bar should pop up and when I select a file perhaps it could close again.
The command palette is great, but sometimes it's nice to visualize the file hierarchy of the project to quickly find the file I need.

Also, really nice editor - thanks :)
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: Dev Build 2150

Postby railsmonk on Wed Dec 21, 2011 6:56 am

Thank you! The way you develop ST is amazing and is an inspiration to me. Please keep your vision and don't let myriads of various suggestions coming from everyone to distort it :)
railsmonk
 
Posts: 3
Joined: Wed Dec 21, 2011 6:55 am

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 21 guests