SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
[SQL Assist 6 Beta] snippet conflict with keywords

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
[SQL Assist 6 Beta] snippet conflict with keywords
Author Message
JFS



Joined: 28 Jun 2011
Posts: 3
Country: United States

Post [SQL Assist 6 Beta] snippet conflict with keywords Reply with quote
It looks like the snippets will not auto complete when there is a conflict with SQL keywords (and how that lookup is done)

My custom snippet 'ssf' (SELECT * FROM) completes fine.

The default snippets of 'case', 'being', 'proc' do not complete. It appears to be something related to the keyword lookup or conflict.

Or maybe I just broke something on my install :)
Tue Jun 28, 2011 5:44 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
In such cases you cannot use snippet completion key while popup is active, but you can use Esc first and then completion key. Also if you don't like typing the snippet shortcut at all, just right-click in the editor and select it from the menu, for example, for "proc" choose use SQL Assistant -> Code Snippets -> proc (Ctrl+Enter)

As for keyboard use, try

proc + Esc + (Ctrl+Enter)

Hope this helps
Tue Jun 28, 2011 6:11 pm View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2109

Post Reply with quote
This is the same reason why you cannot use a keyword as a snippet trigger word either, right?
Wed Jun 29, 2011 2:44 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
That's correct. Unless you disable keyword suggestions completely. The keyword popup grabs input focus and shallows snippet completion key
Wed Jun 29, 2011 9:56 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2109

Post Reply with quote
I'd rather remove those words from the keyword list. That would work too, wouldn't it? But it would ruin case modification of formatting. Perhaps adding a '.' to the end of the snippet word helps (I began using that practice).


Last edited by gemisigo on Fri Jul 01, 2011 11:40 am; edited 1 time in total
Wed Jun 29, 2011 12:33 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
Or you can shorten snippet names, for example, pr instead of proc, ca instead of case. That would make their use even more efficient, wouldn't it?

Removing from keyword list will impact keyword formatting.
Wed Jun 29, 2011 4:02 pm View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2109

Post Reply with quote
You're right, removing from keyword list wasn't a good idea after all.

But shortening snippet keywords to 2 chars would require increasing Suggest Keyword After (chr) settings to 3 (or more) to work. By default it is set to 2 characters and then you get the popup instead of the snippet. I used to use last character for trigger. Now I had to add '.' to some my snippets (where required) so now I have some sort of a hybrid :) Many of the snippets work unaltered and those that were broken by keyword conflict regained their functionality with '.' as the trigger character. Pressing '.' dismisses the popup and triggers the snippet at the same time. 1 keypress instead of +Esc+Tab.
Wed Jun 29, 2011 4:19 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.