diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-24 21:39:43 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-24 21:39:43 +0000 |
commit | cca4f8dc17e904c516dc7e3ba8193aff5b8f9e70 (patch) | |
tree | 8d837c62de411b7e939ca06a4181cefcae688eb0 /Source/SPQueryController.m | |
parent | 9997d982ca4fcbacb04b41c7f7e2aa7dd44db312 (diff) | |
download | sequelpro-cca4f8dc17e904c516dc7e3ba8193aff5b8f9e70.tar.gz sequelpro-cca4f8dc17e904c516dc7e3ba8193aff5b8f9e70.tar.bz2 sequelpro-cca4f8dc17e904c516dc7e3ba8193aff5b8f9e70.zip |
• added possibility to add a query favorite by user-definable alphanumeric tab trigger; eg if tab trigger is set to "sel" sel⇥ will insert the first query which has the defined the tab trigger
• preparations to insert programmable query favorites
- eg "SELECT ${*} FROM ${Table}"
-- after insertion "SELECT * FROM Table" the '*' is highlighted to change, press ⇥ to select the next snippet 'Table'; ⇧⇥ selects the previous snippet; the snippet selection follows the user input
- Note: not yet active
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r-- | Source/SPQueryController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m index 37b4aa97..9f28c226 100644 --- a/Source/SPQueryController.m +++ b/Source/SPQueryController.m @@ -664,8 +664,10 @@ static SPQueryController *sharedQueryController = nil; if(includeGlobals && [prefs objectForKey:SPQueryFavorites]) { for(id fav in [prefs objectForKey:SPQueryFavorites]) { - if([fav objectForKey:@"tabtrigger"] && [[fav objectForKey:@"tabtrigger"] isEqualToString:tabTrigger]) + if([fav objectForKey:@"tabtrigger"] && [[fav objectForKey:@"tabtrigger"] isEqualToString:tabTrigger]) { [result addObject:fav]; + break; + } } } |