mtxr / SublimeText-SQLTools

SQLTools for Sublime Text 3
https://code.mteixeira.dev/SublimeText-SQLTools/
GNU General Public License v3.0
177 stars 40 forks source link

Smart completions #85

Closed tkopets closed 7 years ago

tkopets commented 7 years ago

New "smarter" completions are shown, when possible. The main difference from previous completions are proper completions for table columns: table.column|, as well as completions for table aliases: select a.| from tbl a and completions for join conditions: select * from tbl_a a inner join tbl_b b on | The current paragraph of SQL text is parsed by already existing sqlparse library. A small demo can be seen in discussion https://github.com/mtxr/SQLTools/issues/67

mtxr commented 7 years ago

Go head. Can you release the new version?

tkopets commented 7 years ago

Sure, a bit later, as I want to fix few things before release. Right now we have a problem when existing users most probably will not get the updated queries for different RDBMS as Sublime copies the entire contents of SQLTools.sublime-settings into Users directory file after plugin install, so the updated queries most probably will be overridden by queries defined in Users\SQLTools.sublime-settings. Any ideas on that topic?

tkopets commented 7 years ago

I also want to write a short PackageContol update message

mtxr commented 7 years ago

Yeah, we should start using update messages. I tried in the beginning but i give up right after.

On Wed, May 3, 2017 at 11:54 AM, Taras Kopets notifications@github.com wrote:

I also want to write a short PackageContol update message

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/mtxr/SQLTools/pull/85#issuecomment-298935409, or mute the thread https://github.com/notifications/unsubscribe-auth/AArL6UnHUi_8FtTGxF1diSQIZOFU9tSaks5r2JUTgaJpZM4NPL8o .

tkopets commented 7 years ago

Do you have any ideas how to force Sublime not to copy entire SQLTools.sublime-settings with contents, but to start with empty config in Users\SQLTools.sublime-settings like this:

{

}

Or is there anything we can alter in SQLTools project structure to achieve this?

tkopets commented 7 years ago

I think I found a way to do so.