From 4be3b84999e8ea31d47f3ec6b6926d1f13ec2ccf Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 19 Jan 2010 21:33:40 +0000 Subject: =?UTF-8?q?=E2=80=A2=20improved=20completion=20for=20Query=20Edito?= =?UTF-8?q?r=20bound=20to=20ESC=20-=20up=20to=20now=20for=20MySQL=20>4=20a?= =?UTF-8?q?vailable=20-=20implemented=20by=20narrow-down,=20i.e.=20write/d?= =?UTF-8?q?elete=20to=20narrow-down/expand=20the=20suggestion=20list=20-?= =?UTF-8?q?=20=E2=86=A9=20inserts=20the=20suggestion,=20if=20suggestion=20?= =?UTF-8?q?is=20db/table/field/proc/func=20name=20inserts=20backtick=20quo?= =?UTF-8?q?ted=20-=20for=20a=20db/table/field/proc/func=20name=20press=20?= =?UTF-8?q?=E2=87=A7=E2=86=A9=20to=20insert=20=C3=A0=20la=20`db`.`table`.`?= =?UTF-8?q?field`=20relatively=20to=20the=20current=20selected=20db=20-=20?= =?UTF-8?q?context-sensitive=20to=20leading=20db.=20or=20table.=20or=20db.?= =?UTF-8?q?table.=20or=20.table=20if=20uniquely=20identifiable=20-=20mysql?= =?UTF-8?q?=20and=20information=5Fschema=20if=20available=20and=20not=20se?= =?UTF-8?q?lected=20appear=20at=20the=20end=20-=20`|`=20|=20:=3D=20caret?= =?UTF-8?q?=20shows=20the=20current=20table's=20fields=20if=20any=20or=20t?= =?UTF-8?q?he=20current=20selected=20db=20if=20selected=20at=20the=20top;?= =?UTF-8?q?=20suggestions=20are=20hierarchically=20arranged=20by=20db,=20t?= =?UTF-8?q?able;=20easiest=20way=20to=20insert=20a=20table/field=20name=20?= =?UTF-8?q?-=20e.g.=20type=20`max=5Fc`=20and=20press=20=E2=87=A7=E2=86=A9?= =?UTF-8?q?=20to=20insert=20`mysql`.`user`.`max=5Fconnections`=20-=20for?= =?UTF-8?q?=20table/field=20name=20suggestions=20press=20at=20the=20right?= =?UTF-8?q?=20column=20to=20get=20the=20path=20info=20=E2=80=A2=20F5=20inv?= =?UTF-8?q?okes=20completion=20based=20on=20spell=20checker=20and=20select?= =?UTF-8?q?ed=20language=20-=20since=20it=20is=20not=20possible=20to=20aut?= =?UTF-8?q?o-detect=20if=20the=20user=20wants=20to=20complete=20MySQL=20st?= =?UTF-8?q?atements=20or=20prose=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note: GUI needs improvements; completion should be tested exhaustively --- Source/CMTextView.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/CMTextView.h') diff --git a/Source/CMTextView.h b/Source/CMTextView.h index cfabd3ef..80515928 100644 --- a/Source/CMTextView.h +++ b/Source/CMTextView.h @@ -69,7 +69,7 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt - (BOOL) wrapSelectionWithPrefix:(NSString *)prefix suffix:(NSString *)suffix; - (BOOL) shiftSelectionRight; - (BOOL) shiftSelectionLeft; -- (NSArray *) completionsForPartialWordRange:(NSRange)charRange indexOfSelectedItem:(NSInteger *)index; +// - (NSArray *) completionsForPartialWordRange:(NSRange)charRange indexOfSelectedItem:(NSInteger *)index; - (NSArray *) keywords; - (NSArray *) functions; - (void) setAutoindent:(BOOL)enableAutoindent; @@ -87,7 +87,7 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt - (void) autoHelp; - (void) doSyntaxHighlighting; - (void) setConnection:(MCPConnection *)theConnection withVersion:(NSInteger)majorVersion; -- (void) doCompletion; +- (void) doCompletionByUsingSpellChecker:(BOOL)isDictMode; - (NSArray *)suggestionsForSQLCompletionWith:(NSString *)currentWord dictMode:(BOOL)isDictMode browseMode:(BOOL)dbBrowseMode withTableName:(NSString*)aTableName withDbName:(NSString*)aDbName; - (void) selectCurrentQuery; -- cgit v1.2.3