Home Download Buy Blog Forum Support

Dev Build 2043

Re: Dev Build 2043

Postby jps on Thu Mar 10, 2011 7:02 am

Build 2044 is out now, addressing most of the above issues
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2043

Postby jbrooksuk on Thu Mar 10, 2011 8:57 am

jbrooksuk wrote:What does Diff highlighting do exactly?

Anyone?
jbrooksuk
 
Posts: 754
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2043

Postby jps on Thu Mar 10, 2011 9:04 am

It highlights the added and removed lines in a diff. Your color scheme needs to assign a colour to the relevant scopes, and not all do. The default colour scheme, Monokai Bright, does. You can see an example using the Show Unsaved Changes context menu item.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2043

Postby jbrooksuk on Thu Mar 10, 2011 10:27 am

jps wrote:It highlights the added and removed lines in a diff. Your color scheme needs to assign a colour to the relevant scopes, and not all do. The default colour scheme, Monokai Bright, does. You can see an example using the Show Unsaved Changes context menu item.

Oh I see!

Man that's cool :D
jbrooksuk
 
Posts: 754
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Dev Build 2043

Postby ekolguy on Thu Mar 10, 2011 10:58 am

jps wrote:Show Unsaved Changes prints its results to an output panel instead of a new file


I think the old way of displaying diffs (in a new buffer) was more user friendly. Now, we'll have to scroll and scroll and scroll to review the diff, and diffs are generally long documents. Please, make this configurable.
ekolguy
 
Posts: 41
Joined: Thu Dec 17, 2009 8:50 am

Re: Dev Build 2043

Postby jps on Thu Mar 10, 2011 11:07 am

You can use the diff_changes_to_buffer setting to make it like the last version
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2043

Postby ekolguy on Thu Mar 10, 2011 12:05 pm

jps wrote:You can use the diff_changes_to_buffer setting to make it like the last version


Cool! BTW, this is not documented in Base File.sublime-settings.
ekolguy
 
Posts: 41
Joined: Thu Dec 17, 2009 8:50 am

Re: Dev Build 2043

Postby bizoo on Thu Mar 10, 2011 12:42 pm

Build 2044
Release Date: 10 March 2011

* Diff commands work with UTF-8 files


It would be nice if this feature was available for all files.
Do you think that you could make it work for the default encoded file ?
Something like (warning untested dirty code):

Code: Select all
        try:
            b = self.view.substr(sublime.Region(0, self.view.size())).splitlines()
            a = codecs.open(fname, "r", "utf-8").read().splitlines()
        except UnicodeDecodeError:
            try:
                a = codecs.open(fname, "r", self.view.settings().get('fallback_encoding').rpartition('(')[2].partition(')')[0]).read().splitlines()
            except UnicodeDecodeError:
                sublime.status_message("Diff only works with UTF-8 files")
                return
bizoo
 
Posts: 873
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Dev Build 2043

Postby qqq on Thu Mar 10, 2011 12:49 pm

Double clicking a folder in the sidebar should unfold it (and fold if it is unfolded). Clicking on this small gray arrow is not very comfortable.
ST2 Win7 64-bit
qqq
 
Posts: 57
Joined: Tue Mar 08, 2011 9:49 am

Re: Dev Build 2043

Postby ekolguy on Thu Mar 10, 2011 1:21 pm

qqq wrote:Double clicking a folder in the sidebar should unfold it (and fold if it is unfolded). Clicking on this small gray arrow is not very comfortable.


+ 100
ekolguy
 
Posts: 41
Joined: Thu Dec 17, 2009 8:50 am

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: Alexa [Bot], excalibur1976 and 20 guests