aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
Commit message (Collapse)AuthorAgeFilesLines
...
* • removed setting of textColor after syntax hilitingBibiko2012-01-051-11/+0
|
* • removed blocking of SPTextView textStorage while syntax hiliting Bibiko2012-01-051-2/+2
|
* • fixed issue for line numbering view if associated textView is scrolled ↵Bibiko2012-01-051-15/+36
| | | | | | from origin {0,0}; now it's synchronized • minor speed ups for custom query editor
* Tidy up console/query controller.stuconnolly2011-09-031-0/+1
|
* Small tidy up.stuconnolly2011-07-311-2/+2
|
* - Prevent error bell when using the enter key to initiate a connection when ↵rowanbeentje2011-07-271-0/+6
| | | | | | | | keyboard focus is on the favorites outline view (Issue #1072) - Don't initiate a connection when the currently selected favorite is clicked again slowly - Match compiler #ifdef around braces to imrpove Xcode 3 file parsing
* merging SP_REFACTOR branch with trunksqlprodev2011-05-191-3/+15
|
* Small tidy up, mainly the addition of constants.stuconnolly2011-05-051-2/+2
|
* Fixes source text encoding problems accidentally introduced in r3273sqlprodev2011-04-141-25/+25
|
* Fixes source text encoding problems accidentally introduced in r3273sqlprodev2011-04-141-28/+28
|
* SP_REFACTOR: Workaround for naming conflict with ↵sqlprodev2011-04-141-5/+5
| | | | postNotificationOnMainThread: which also exists in TCMPortMapper.framework; NSUserDefaults access now permitted in SP_REFACTOR blocks for a few prefs keys
* Make some minor changes after reviewing r3271:rowanbeentje2011-04-141-4/+4
| | | | | | - Fix a few encoding issues - Recode a few [NSApp keyWindow] uses back to [SPDatabaseDocument parentWindow] following discussion; possibly for later refactoring into use of an error method
* initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate ↵sqlprodev2011-04-111-15/+137
| | | | UI code from functional code
* - Fix more warningsrowanbeentje2011-03-141-45/+52
|
* Fix more warnings.stuconnolly2011-03-131-2/+4
|
* fixed compiler warningssqlprodev2011-03-011-1/+2
|
* fixed compiler warningssqlprodev2011-03-011-2/+0
|
* • further speed optimisations for SQL syntax highlightingBibiko2011-02-031-23/+21
|
* • forgotten to apply a change of a NoodleLineNumber methodBibiko2011-02-021-1/+1
|
* • removed keyboard short-cut ?\008^C for "Copy as RTF" since it's not a ↵Bibiko2011-02-021-8/+1
| | | | frequently used function
* • some minor code cleaning and improvementsBibiko2011-01-241-19/+35
|
* • removed temporary method getRangeForCurrentWordForCompletionBibiko2011-01-211-1/+1
|
* • sped up getRangeForCurrentWordBibiko2011-01-211-2/+2
| | | | | | | - fixes also the short interruption of the cursor blinking - for completion the old method is used, since it's fine-tuned to use it - fix will come soon - preparation for user-defined word symbols • fixed issue for soft indent if user uses deleteForward: selector (⇧⌫)
* • fixed completion issue via alias namesBibiko2011-01-211-1/+5
|
* • implemented user-definable Soft IndentionBibiko2011-01-211-22/+111
| | | | | - instead of using \t as indention string the user can choose how many spaces should be used instead - addresses issue 956
* • invoke auto-completion only if the length of the pending edits is 1 ↵Bibiko2011-01-191-1/+1
| | | | (user typed one character) to suppress it while pasting or inserting larger text chunks
* • improved caret positioning for ordering out any kind of tooltip windows ↵Bibiko2011-01-191-12/+7
| | | | | | esp. for first word after soft-wrapping • fixed tooltip positioning for SPTextView - do not take the mouse location instead take the caret position
* • fixed issue to highlight the correct current query after undoing, i.e. ↵Bibiko2011-01-141-0/+3
| | | | | | | do not using the cache • added SP_SELECTED_TEXT_RANGE shell variable for Bundle support of scope Input Text • added 'insertText', 'setText', 'setSelectedTextRange' JavaScript functions to window.system bridge
* • disabled in [SPTextView boundsDidChangeNotification] the view update to ↵Bibiko2011-01-101-2/+2
| | | | | | avoid incorrect line number rendering while scrolling until the problem is found why it causes some crashes • fixed missing free() in [SPCopyTable executeBundleItemForDataTable]
* • trial to fix boundsDidChangeNotification for logs 1894, 1900, 1901Bibiko2011-01-061-4/+4
|
* • some minor code cleaningBibiko2011-01-051-3/+1
|
* • enabled Bundle main menuBibiko2011-01-051-0/+2
| | | | • improved rendering of line number display in Query Editor and Bundle command text view after scrolling to avoid displaying them unreadable
* * Recognize "performance_schema" as system DB (added in 5.5)dmoagx2010-12-181-1/+7
|
* - Rework insertCommonPrefix to insertAutocompletePlaceholder, implementing ↵rowanbeentje2010-11-301-1/+1
| | | | | | | | | a more Mac-like behaviour: insert a faded placeholder for the currently selected autocomplete item. - Update the autocomplete placeholder when the autocomplete dropdown selection is changed - Clean up methods for removing placeholders, and ensure the placeholder is always removed (fixes issues with pasting with a placeholder visible, etc) - When the Help window is closed, switch off AutoHelp - this will aid in supporting those users who accidentally switch on AutoHelp and then can't figure out how to switch it off, resulting in returning windows.
* • Bundle commandsBibiko2010-11-301-1/+1
| | | | | | - before closing a db doc window kill all commands associated to this doc - suppress an error message if a bash command was killed via code 9 - added a temporary and preliminary table view to display command activities (double-click at TABLE INFO header to toggle and refresh it - only for testing purposes - it shows all commands started from that db doc and a General command names)
* • Bundle EditorBibiko2010-11-231-192/+3
| | | | | | | - bailed out from approach to assign more than one scope to Bundle commands; now there're three scopes available: Input Field (incl. Query Editor since it only differs in current_query and insert_as_snippet which falls back to current_line and tooltip message), Data Table, and General (which means that these commands are available app-wide) - moved "Disable Command" to scope popup menu since it's related - Input Field and Data Table commands will be shown as submenus in the Bundles main menu; all General commands will be added without creating a special submenu (only Category submenus will be generated) - fixed and simplified several issues
* • Bundle EditorBibiko2010-11-221-0/+6
| | | | | | | | | | - added output action "Show as HTML" • Bundle HTML output - finished implementation - added print support (eg for printing reports) - added text size resizing - added link support - added new window support
* • added line numbering and current line highlighting to Bundle Editor's ↵Bibiko2010-11-211-4/+5
| | | | | | | command text view • made each Bundle in/ouptut file name unique to allow to run different Bundle commands at the same time • fixed minor issues for Bundle Editor
* • Bundle supportBibiko2010-11-161-28/+1
| | | | | | - further simplifications and centralizations - runBashCommandWithEnvironment: now it can execute each script command whose first line begins with #!/... natively - added some more shell variables
* • Bundle supportBibiko2010-11-151-1/+11
| | | | | | - started to populate the main menu item Bundles [still hidden] - enabled key equivalents for NSTextViews - distinguishes between Query Editor scope and text input scope via menu item validation inside main menu Bundles
* • Bundle supportBibiko2010-11-151-128/+51
| | | | | | | - outsourced code to SPAppController to centralise Bundle support and make it available for different scopes (query editor, input text fields, data tables etc.) - store bundle info scope-based - added input text field support - made usage of constants
* • some sequelpro://...@passToDoc/ExecuteQuery/csv improvementsBibiko2010-11-111-19/+19
|
* • added to Bundle shell command these variables:Bibiko2010-11-111-23/+45
| | | | | | | | | | SP_ALL_DATABASES, SP_ALL_TABLES, SP_ALL_VIEWS, SP_ALL_FUNCTIONS, SP_ALL_PROCEDURES, SP_RDBMS_VERSION, SP_RDBMS_TYPE [hard-coded yet ;)] • some minor improvements to editor Bundle support • fixed issue while running a bash command that the SP GUI doesn't block • added first sequelpro url scheme functionality - sequelpro://$SP_PROCESS_ID/passToDoc/SelectTable/a_name - sequelpro://$SP_PROCESS_ID/passToDoc/SelectDatabase/a_db_name - sequelpro://$SP_PROCESS_ID/passToDoc/SelectDatabase/a_db_name/a_table_name
* • improved Bundle support; now it the passed input string will be saved as ↵Bibiko2010-11-101-52/+61
| | | | | | | temp file SP_BUNDLE_INPUT_FILE since stdin and shell vars are difficult to handle for a large amount of data • fixed AppleScript class definition since it was renamed • added support for the URL scheme 'sequel' to allow to interact with Sequel Pro eg via bash: open 'sequelpro://executequery=select%205' [not yet implemented ;)]
* • first implementation to allow the user to write and use self-definable ↵Bibiko2010-11-101-6/+148
| | | | | | | | | | | | | | | | | | functions inside the Custom Query Editor - such commands will be stored as foo.spBundle in SP's Application Folder/Bundles - up to now they will be displayed inside the context menu as submenu Bundles which can be by itself contain further submenus specified via 'category' key - to each command the user can assign a tooltip and a keyboard short-cut; if user chose a standard SP short-cut it will be ignored - commands will be executed as bash commands ie it can also be written in any script language - the bash process inherits several environment variables like SP_BUNDLE_PATH, SP_SELECTED_TEXT, SP_SELECTED_DATABASE, SP_SELECTED_TABLE, SP_CURRENT_QUERY, SP_CURRENT_LINE, SP_CURRENT_WORD - the bash command's result can be processed as follows: insertAsText, insertAsSnippet, replaceContent, replaceSeletion (with fallbacks to word, line, query, entire content), showAsTextTooltip, showAsHTMLTooltip - up to now all installed bundles are reload for each menuForEvent: [this is tendative!] - each spBundle command has a scope to allow to the user to specify for which SP element a command can be useful; up to now only the scope 'editor' is supported; further scopes could be 'data table' for context menus of mysql table data (Content or Custom Query - including info of selected lines, table data in different formats, etc.) - foo.spBundle files can be installed simply by double-clicking at it (remember up to now Bundles will be reloaded while opening the editor's context menu!) two tiny examples for testing: http://wwwstaff.eva.mpg.de/~bibiko/dt/temp/spBundleExamples.zip
* • further preparations for user-definable bundle supportBibiko2010-11-101-20/+101
|
* • further preparations for user-definable bundle supportBibiko2010-11-091-10/+55
|
* • further preparations for user-definable bundle supportBibiko2010-11-091-2/+53
|
* • added to SPStringAddition the method ↵Bibiko2010-11-091-89/+12
| | | | | | | runBashCommandWithEnvironment:atCurrentDirectoryPath:error which will run self as bash command and will return its result - if an error occurred it will return a NSError if desired - added the chance to pass shell environment variables and start directory for future usage in user-definable plugins written as scripts
* Minor tweaks to autocompletion:rowanbeentje2010-11-061-15/+16
| | | | | | - Show the text cursor at the location future input will be inserted for clarity - Show autocompleted text faded to indicate it's temporary and may be replaced by other keypresses