aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
Commit message (Collapse)AuthorAgeFilesLines
* Bring outlinew view branch up to date with trunk (r3375:3468).stuconnolly2012-01-221-15/+22
|
* Bring outline view branch up to date with trunk (r3279:r3306).stuconnolly2011-05-141-2/+2
|
* Bring outline view branch up to date with trunk (r3234:3277).stuconnolly2011-04-221-12/+134
|
* Bring outline view branch up to date with trunk (r3235:r3245), which should ↵stuconnolly2011-03-191-47/+56
| | | | resolve all warnings.
* Bring outline view branch up to date with trunk (r3203:r3224).stuconnolly2011-03-071-3/+2
|
* Bring outline view branch up to date with trunk (r3179:r3187).stuconnolly2011-02-071-32/+23
|
* • 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
* • improved completion regarding leading mathematical operatorsBibiko2010-11-041-2/+3
| | | | - this also improves alias parsing
* • improved completion regarding leading '('Bibiko2010-11-041-1/+1
| | | | - this also improves alias parsing for parameter inside functions
* • improved completion regarding leading commasBibiko2010-11-041-8/+9
| | | | | | • alias (auto-)completion - further improvements regarding detecting of aliases esp. if used just after SELECT in conjunction with commas
* • alias (auto-)completionBibiko2010-11-041-20/+25
| | | | - further improvements regarding detecting of aliases esp. if used just after SELECT
* • alias (auto-)completionBibiko2010-11-041-6/+6
| | | | - further improvements to match table names
* • fix for alias parsing if alias consists of only one single characterBibiko2010-11-041-1/+1
|
* • started to implement auto-completion for aliasesBibiko2010-11-041-26/+66
| | | | | - first sketch should work for 90% of all cases - fine-tuning will follow soon - this follows issue 880
* - Split out all of SPExportController's delegate methods to their own category.stuconnolly2010-10-241-3/+0
| | | | | | | | - Prepare for the implementation of PDF and HTML export by hiding the export options box for export types that don't need it. - Fix some spacing issues on the export dialog. - Create a new SPCategoryAdditions header that is included in the apps precompiled header, making all additions available to all classes. - Update strings files.
* Tidy up.stuconnolly2010-10-191-1/+0
|
* Considering nearly every class uses constants, import it via the prefix header.stuconnolly2010-10-191-1/+0
|
* • fixed cursor position correction for autoHelpBibiko2010-10-121-3/+4
| | | | - should fix among other issues i862
* • only some minor code cosmeticsBibiko2010-09-171-51/+48
|
* • Custom Query EditorBibiko2010-09-151-49/+67
| | | | | - Shift Left now also considers leading SPACES (issue 822) - changed approach for Shift Right/Left of a selection: instead to iterate through all lines do a simple find&replace which is much more faster (4x) and additionally it improves the undo behaviour
* • Editor color setting in Pref pane displays the color names using the ↵Bibiko2010-08-171-0/+6
| | | | | | | Editor's font - added some logic for closing the NSColorPanel - some GUI tweaks