aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-22 13:23:29 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-22 13:23:29 +0000
commit748b8d279907bd3ce5c1b0dbd33edaa296ea2bb5 (patch)
tree90f6630a287b4e7a0bc07eb9390ced2d72bf42a3 /Source/CustomQuery.m
parent2b706eeebd9f4a9eaa1ed970af6bb4050b29ab0f (diff)
downloadsequelpro-748b8d279907bd3ce5c1b0dbd33edaa296ea2bb5.tar.gz
sequelpro-748b8d279907bd3ce5c1b0dbd33edaa296ea2bb5.tar.bz2
sequelpro-748b8d279907bd3ce5c1b0dbd33edaa296ea2bb5.zip
• bound Custom Query gear menu item "Completion List" (CTRL key is recognized)
• use regexp to get a list of current words and reduced that method to invoked if the text buffer is less than 60KB to speed up the completion (it's more likely that the user wants to complete a sql related term) • some code cosmetics
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 62deb15d..b536491b 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -283,7 +283,10 @@
// "Completion List" menu item - used to autocomplete. Uses a different shortcut to avoid the menu button flickering
// on normal autocomplete usage.
if (sender == completionListMenuItem) {
- [textView complete:self];
+ if([[NSApp currentEvent] modifierFlags] & (NSControlKeyMask))
+ [textView doCompletionByUsingSpellChecker:NO fuzzyMode:YES];
+ else
+ [textView doCompletionByUsingSpellChecker:NO fuzzyMode:NO];
}
// "Editor font..." menu item to bring up the font panel