Home Download Buy Blog Forum Support

insertion of double quotes after double arrows

insertion of double quotes after double arrows

Postby Paul on Sun Jul 18, 2010 3:08 am

I tried out Sublime a long time ago (before I did much coding), and thought it was ok...I tried the newest beta last week, and now it is just amazing to me. However, I just ran into one little thing I found odd.

I know that if you insert punctuation such as " ' < ( [ { then Sublime will automatically put the matching one there, unless there is already text to the right of the cursor. This means that if Sublime inserts something automatically, and then you try to insert more, it won't automatically correct it. That may be hard to understand, so let me give an example....

<div id="main">

Start typing that, and watch what happens....when you insert the first quotation mark, the second one won't be inserted because of the > directly to the right of it.

I guess what I am thinking is that if the text to the right was auto inserted, then maybe still auto insert more text. It would be a special case, but kind of like how Sublime lets you type over the second mark ( think "" -- the second one is put automatically, but if you type 2 manually, it types over the 2nd).

I don't know if this is easy to fix, or even important enough to consider, but I just wanted to point it out.

Thank you for all your work on Sublime; I am finding something new every time I open it!

EDIT: So I realized that if you type a parenthesis, then type another parenthesis inside of it, it does add the double. Maybe it just depends on which characters are involved.
Paul
 
Posts: 6
Joined: Sun Jul 18, 2010 2:58 am

Re: insertion of double quotes after double arrows

Postby edanm on Sun Jul 18, 2010 10:01 pm

Great to see another happy Sublime user in our midst! :)

I agree, this sounds like an oversight. I'm not even sure why the auto-completion is turned off in the first place, if there are characters following. It seems like most of the time I notice it's off, I want it to actually work!

Having said that, my issue is probably an easy fix in the keymappings. What you're talking about sounds like something that will need to be added to the core of Sublime.
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Re: insertion of double quotes after double arrows

Postby Paul on Mon Jul 19, 2010 6:49 pm

As I use it immediately afterward, I notice that this problem hardly ever arises. I think it may only occur if the outside punctuation is <>, because with () and [] it works correctly. And as for a happy user, once I figured out how to use textmate color schemes, that just took it to another level. Now I'm running a theme from inspiration.sweyla.com that I fine tuned to be perfect!
Paul
 
Posts: 6
Joined: Sun Jul 18, 2010 2:58 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 6 guests