Home Download Buy Blog Forum Support

Small bugs

Small bugs

Postby artee on Mon Jun 15, 2009 11:42 am

Hi

There are list of small bugs...

The first is related to code created by New Snippet option:
Code: Select all
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
<snippet>
    <content><![CDATA[Type your snippet here]]></contents>
</snippet>


</contents> should be changed to </content>.

The second is related to Preference - Browse Packages option.
Despite the system settings always Windows Explorer is opened with list of packages.
If you use another environment e.g. Directory Opus it should be used instead.
Registry settings should be taken into consideration.

regards
Artur
artee
 
Posts: 32
Joined: Sat May 30, 2009 10:33 pm

Re: Small bugs

Postby jps on Mon Jun 15, 2009 12:43 pm

Thanks for the heads up re: new snippet.

re: Browse Packages, I won't do anything about this immediately, but after the next stable version is out, I'll take a look at alternatives. If there's a reasonable option that works and doesn't require special casing for every possible explorer replacement, I'll implement it. Just calling ShellExecute with the directory name may well be enough (currently explorer.exe is explicitly started with a call to CreateProcess).
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Small bugs

Postby artee on Mon Jun 15, 2009 1:06 pm

jps wrote:If there's a reasonable option that works and doesn't require special casing for every possible explorer replacement, I'll implement it. Just calling ShellExecute with the directory name may well be enough (currently explorer.exe is explicitly started with a call to CreateProcess).

I think that ShellExecute should be enough because it use information from HKEY_CLASSES_ROOT/Folder/shell subkey.
artee
 
Posts: 32
Joined: Sat May 30, 2009 10:33 pm

scrollbar problem with centered text

Postby SteveCooperOrg on Mon Jun 15, 2009 1:34 pm

I have noticed a small problem with centred text and word wrapping.

When word wrapping is turned off and there are long lines, the scrollbar does not allow you to scroll to the end of the lines.

I suppose what's happening is this; the text is being draw indented by, say, 150px. The scrollbar doesn't take this 150px into account, so that you lose the last 150px of your lines.

Steve
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Multiple Characters deleted on backspace.

Postby SteveCooperOrg on Mon Jun 15, 2009 1:53 pm

I'm also getting problems when I hit backspace and there is a lot of whitespace left of the point.

TO REPRODUCE:

1. Start a new text file. Save as .txt
2. hit space n times, where n is the tab stop size. In my case, that's 2.
3. hit backspace

EXPECTED RESULT;

The backspace deletes a space, leaving n-1 spaces.

ACTUAL RESULT:

The backspace deletes n spaces.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Re: Small bugs

Postby EJ12N on Mon Jun 15, 2009 2:40 pm

I agree with browseURL functionality, at the least it should allow you to define the path of your file manager in the option :)
If the thing is empty, just open explorer, if not the one specified in the option. which should point to the file [with some params?]
something like:
Code: Select all
systemFileManager = "C:\totalcmd\totalcmd.exe /O /T"
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: scrollbar problem with centered text

Postby vim on Mon Jun 15, 2009 4:24 pm

SteveCooperOrg wrote:I have noticed a small problem with centred text and word wrapping.

When word wrapping is turned off and there are long lines, the scrollbar does not allow you to scroll to the end of the lines.

I suppose what's happening is this; the text is being draw indented by, say, 150px. The scrollbar doesn't take this 150px into account, so that you lose the last 150px of your lines.

Steve


i encountered it too, but couldn't put my hand on why it happen...
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Multiple Characters deleted on backspace.

Postby jps on Tue Jun 16, 2009 9:55 am

SteveCooperOrg wrote:I'm also getting problems when I hit backspace and there is a lot of whitespace left of the point.

TO REPRODUCE:

1. Start a new text file. Save as .txt
2. hit space n times, where n is the tab stop size. In my case, that's 2.
3. hit backspace

EXPECTED RESULT;

The backspace deletes a space, leaving n-1 spaces.

ACTUAL RESULT:

The backspace deletes n spaces.


This is by design: When spaces are being used for indentation, pressing backspace will delete spaces to the next tab stop on the left. This helps when the desire is to remove a level of indentation, as is common when editing python code, for example.

I can understand that this hurts in some situations, such as when trying to line things up vertically, but I believe it's a win overall.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Multiple Characters deleted on backspace.

Postby SteveCooperOrg on Tue Jun 16, 2009 12:45 pm

jps wrote:I can understand that this hurts in some situations, such as when trying to line things up vertically, but I believe it's a win overall.


I see the rationale for it, but I'd really appreciate an option to disable it. For me, down in the level of my fingers, 'backspace' means remove exactly one character. It means 'back a space.' That's built-in on a nervous level.

What I'd rather see in python mode (or really anything with blocks) is preceding whitespace designated as 'words' for the delete word command (ctrl+back). So that lines are interpreted like this;

def myfunc(p):
<ws-1>for x in range(1,3):
<ws-1><ws-2>if p > 4:
<ws-1><ws-2><ws-3>print "hello, world!"
<ws-1>return p

So that if my cursor is just before the print statement, ctrl+back deletes the <ws-3> whitespace token, then <ws-2>, then <ws-1>. I think this is how the python lexer works -- it inserts these whitespace tokens so that the parser understands the indentation involved.

Now that may not be where you want to go, but I'd really like an option for backspace to be delete-one-character, and ctrl+backspace to do the tabbed deletion that is there by default on backspace.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Re: Multiple Characters deleted on backspace.

Postby EJ12N on Tue Jun 16, 2009 3:55 pm

SteveCooperOrg wrote:
jps wrote:I can understand that this hurts in some situations, such as when trying to line things up vertically, but I believe it's a win overall.


I see the rationale for it, but I'd really appreciate an option to disable it. For me, down in the level of my fingers, 'backspace' means remove exactly one character. It means 'back a space.' That's built-in on a nervous level.

What I'd rather see in python mode (or really anything with blocks) is preceding whitespace designated as 'words' for the delete word command (ctrl+back). So that lines are interpreted like this;

def myfunc(p):
<ws-1>for x in range(1,3):
<ws-1><ws-2>if p > 4:
<ws-1><ws-2><ws-3>print "hello, world!"
<ws-1>return p

So that if my cursor is just before the print statement, ctrl+back deletes the <ws-3> whitespace token, then <ws-2>, then <ws-1>. I think this is how the python lexer works -- it inserts these whitespace tokens so that the parser understands the indentation involved.

Now that may not be where you want to go, but I'd really like an option for backspace to be delete-one-character, and ctrl+backspace to do the tabbed deletion that is there by default on backspace.


You can always do a plugin for that :)

I am with you on this one, sometimes leftDeleteCharacters erases too much specially with ctrl+backspace which uses the "delete word left" macro.
Really I think some people like Jon said might find that suitable for them but for me, I rather have:

ctrl+backspace = delete by characters class, if it's whitespace, erase whitespace, if it's words, erase words, etc...
backspace = one character erase
shift+backspace = default sublime behavior which deletes tab (space) indents

of course same applies for delete, just in opposite direction...

the first 2 solutions are all possible with plugins, the other one is there by default... so I am a happy camper :D

See: viewtopic.php?f=5&t=158#p843
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Next

Return to Technical Support

Who is online

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