aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-16 14:29:50 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-16 14:29:50 +0000
commit6d533e3c3989d59274e1d9dfff99f7f6b59bbef3 (patch)
treef439e65d3e6dfafb92347590adbcec4bc97b70ae /Source/CMTextView.h
parent392c1e5c5579b1b58e02acddf2880097d9e1e0ce (diff)
downloadsequelpro-6d533e3c3989d59274e1d9dfff99f7f6b59bbef3.tar.gz
sequelpro-6d533e3c3989d59274e1d9dfff99f7f6b59bbef3.tar.bz2
sequelpro-6d533e3c3989d59274e1d9dfff99f7f6b59bbef3.zip
• Query Favorites
- added support for mirrored snippets $x x:= to be mirrored snippet index - example: SELECT $1.${2:} FROM ${1:¦$SP_ASLIST_ALL_TABLES¦} WHERE $1.${3:} = ${4:value} AND $1.$2 = • CMTextView - fixed completion issue for fuzzy search - added {} chars as auto-pair for connivence
Diffstat (limited to 'Source/CMTextView.h')
-rw-r--r--Source/CMTextView.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CMTextView.h b/Source/CMTextView.h
index 1dd0a59e..b00c4b33 100644
--- a/Source/CMTextView.h
+++ b/Source/CMTextView.h
@@ -68,13 +68,17 @@ static inline id NSMutableAttributedStringAttributeAtIndex (NSMutableAttributedS
NSInteger mySQLmajorVersion;
NSInteger snippetControlArray[20][3];
+ NSInteger snippetMirroredControlArray[20][3];
NSInteger snippetControlCounter;
NSInteger snippetControlMax;
NSInteger currentSnippetIndex;
+ NSInteger mirroredCounter;
BOOL snippetWasJustInserted;
+ BOOL isProcessingMirroredSnippets;
BOOL completionIsOpen;
BOOL completionWasReinvokedAutomatically;
+ NSUInteger completionParseRangeLocation;
NSColor *queryHiliteColor;
NSColor *queryEditorBackgroundColor;
@@ -133,6 +137,7 @@ static inline id NSMutableAttributedStringAttributeAtIndex (NSMutableAttributedS
- (void) doAutoCompletion;
- (NSArray *)suggestionsForSQLCompletionWith:(NSString *)currentWord dictMode:(BOOL)isDictMode browseMode:(BOOL)dbBrowseMode withTableName:(NSString*)aTableName withDbName:(NSString*)aDbName;
- (void) selectCurrentQuery;
+- (void) processMirroredSnippets;
- (BOOL)checkForCaretInsideSnippet;
- (void)insertAsSnippet:(NSString*)theSnippet atRange:(NSRange)targetRange;