Problem with word separation

Hi,

I have problem, with word separation - sometimes double clicking on word correctly selects word between dots, but most of the time (this behaviour changes even during runtime of Sublime, without me changing anything) it selects full word, disregarding dots.

To clarify what I mean:

self.m\_headerText.text

I want to be able to double click on m_headerText and select only that, while most of the times it selects whole structure.

Is there way to fix it?

To make completions of things with periods in them work better we optionally turn off the special meaning of periods. From the README:

corona_sdk_complete_periods (default: True)

    Corona Editor turns off the special meaning of periods as “word separators” in Sublime Text to make Corona completions work better.  If you like to use cursor movement keys like “Alt+Arrow” to move to the periods in function calls you might want to turn this off.  The most obvious effect of turning it off is that when you type a period all the completions disappear until you type another character.

To turn this off add the following line to your Sublime Text preferences:

"corona\_sdk\_complete\_periods": false 

You can edit your preferences using Sublime Text > Preferences > Settings - User on the Mac or  Preferences > Settings - User on Windows.

Ah, I was wondering what was causing that. Thanks for raising this.

Would it be possible for Corona Editor to have it’s own settings files (Default and User) like Emmet or Package Control do? As a longtime Sublime user that’s the first place I go to to find out what I can configure about a package. Vintage aside, I don’t have any other packages with settings in the Settings - User file. They all tend to live in Preferences > Package Settings > Package Name > Settings - User

Actually is not working for me now. Even when removing Corona package double clicking word doesn’t select word between dots, but whole word. Any way to deal with it?

That’s a great idea … I’ll look into that for an upcoming release.

Sublime Text remembers settings for open views even after a plugin has been removed.  Make sure you close and reopen any open tabs to reset their settings.  This is also an issue with the “Syntax” setting which sometimes pops up an error dialog when reopening Sublime Text after removing a plugin.

To make completions of things with periods in them work better we optionally turn off the special meaning of periods. From the README:

corona_sdk_complete_periods (default: True)

    Corona Editor turns off the special meaning of periods as “word separators” in Sublime Text to make Corona completions work better.  If you like to use cursor movement keys like “Alt+Arrow” to move to the periods in function calls you might want to turn this off.  The most obvious effect of turning it off is that when you type a period all the completions disappear until you type another character.

To turn this off add the following line to your Sublime Text preferences:

"corona\_sdk\_complete\_periods": false 

You can edit your preferences using Sublime Text > Preferences > Settings - User on the Mac or  Preferences > Settings - User on Windows.

Ah, I was wondering what was causing that. Thanks for raising this.

Would it be possible for Corona Editor to have it’s own settings files (Default and User) like Emmet or Package Control do? As a longtime Sublime user that’s the first place I go to to find out what I can configure about a package. Vintage aside, I don’t have any other packages with settings in the Settings - User file. They all tend to live in Preferences > Package Settings > Package Name > Settings - User

Actually is not working for me now. Even when removing Corona package double clicking word doesn’t select word between dots, but whole word. Any way to deal with it?

That’s a great idea … I’ll look into that for an upcoming release.

Sublime Text remembers settings for open views even after a plugin has been removed.  Make sure you close and reopen any open tabs to reset their settings.  This is also an issue with the “Syntax” setting which sometimes pops up an error dialog when reopening Sublime Text after removing a plugin.