aboutsummaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* • FIXED in runAllQueries: deselect a given selection before calling ↵Bibiko2009-04-071-0/+1
| | | | textStorageDidProcessEditing: to avoid the deletion of a given selection
* Fix for issue #211: Table content count incorrectly reporting selected row ↵stuconnolly2009-04-071-8/+16
| | | | count.
* • improved auto-uppercasing for: pasting queries from favourites & history ↵Bibiko2009-04-072-7/+28
| | | | | | | and before performQueries • improved undo behaviour of auto-uppercasing • added undo behaviour for pasting queries from favourites & history
* • FIXED bug in doTranspose: if [textView string] === "abc|d" Bibiko2009-04-071-1/+1
|
* - Select 'drop tables' option for MySQL export by default, to improve ↵rowanbeentje2009-04-064-23/+68
| | | | | | | backup-type process and more closely match mysqldump, and correctly drop views - Consistently set and restore the encoding appropriately for SQL import/export, and export to UTF8 files to correctly store all characters. Goes a good way towards addressing Issue #116.
* • FIXED: "Limit from" NSStepper retains the old value if the new value ↵Bibiko2009-04-062-2/+28
| | | | | | | would be greater than the total number of rows of the current table • FIXED: if the user enters into "Limit from" a number which is greater than the total number of rows of the current table, show the last pref's "limitRowsValue" number of rows instead • FIXED: if the user has already filtered the current table by specifying "Limit from" > 1 and afterwards the user applied a new filter the filtering will be repeated for LIMIT 0, "limitRowsValue" if nothing was found
* • ADDED - (IBAction)doRemoveDiacritics:(id)senderBibiko2009-04-062-0/+23
| | | | | - this method removes all combining diacritics -- e.g. façäñど ⇢ facanと after Unicode's NFD
* • ADDED: - (IBAction)doTranspose:(id)sender;Bibiko2009-04-052-0/+58
| | | | - Note: not yet combining-diacritics-safe!
* Fix an issue where by the show/hide console menu item was not being updated ↵stuconnolly2009-04-053-12/+41
| | | | when the toolbar item was used. Also add more interface validation by only enabling the 'Clear Console' menu and toolbar items when there is at least one message in the console.
* • tentative fix to suppress auto-uppercasing/syntax highlighting of ↵Bibiko2009-04-051-2/+2
| | | | table/field names if such a name begins with a SQL keyword followed by a non-ASCII letter like äöüéた etc.
* • ADDED to SPTextViewAdditions:Bibiko2009-04-053-147/+190
| | | | | | | | | | | | | | - (NSRange)getRangeForCurrentWord - (IBAction)selectCurrentWord:(id)sender; - (IBAction)selectCurrentLine:(id)sender; - (IBAction)doSelectionUpperCase:(id)sender; - (IBAction)doSelectionLowerCase:(id)sender; - (IBAction)doSelectionTitleCase:(id)sender; - (IBAction)doDecomposedStringWithCanonicalMapping:(id)sender; - (IBAction)doDecomposedStringWithCompatibilityMapping:(id)sender; - (IBAction)doPrecomposedStringWithCanonicalMapping:(id)sender; - (IBAction)doPrecomposedStringWithCompatibilityMapping:(id)sender; • BOUNDED these IBAction to mainmenu.xib
* • ADDED: SPTextViewAdditions for adding global functionality to each ↵Bibiko2009-04-052-0/+55
| | | | NSTextView in Sequel-Pro
* - Fix an invalid reference to a missing pulldown_arrow image causing ↵rowanbeentje2009-04-055-11/+30
| | | | | | | | invalid log entries - Set the focus to the custom query text field when appropriate when switching to the custom query tab - Add the ability to set the custom query editor font, save and load it from preferences, and no longer reset the font on queries
* • FIXED: allow to enter dead keys esp. for non-US keyboardsBibiko2009-04-041-1/+3
| | | | | - e.g. for a German one ` is a dead key (press space to enter `) -- further checks needed for other non-US keyboards
* - Change the method of creating a new table to be the same as that when ↵stuconnolly2009-04-042-252/+273
| | | | | | | | | | creating a new database by presenting a sheet, allowing the user to specify the table name and encoding. - Allowing the user to specify the table encoding partially addresses issue #161. - Implementing interface validation in the form of not allowing table creation without a name also removes the need for lots of error checking and presenting these errors to the user. - In addition to the above the ability to specify the initial field name, type and length (if applicable) of a new table can now be done on the same sheet, but is yet to be implemented. - Also did a general tidy up of TablesList.[hm].
* • FIXED upper case of e.g. 'order_' issueBibiko2009-04-041-18/+23
| | | | | | | - in addition fixed issue of typing 'order_' and then deleteBackward: event [ticket 281 comment 2] -- solved by looking at the end of SQL keyword token instead at begin of it => further discussion "undo behaviour"
* • REARRANGED keyDown: for further changesBibiko2009-04-031-115/+278
| | | | | | | | | | | | | | | | | • ADDED the following methods and tentative keyboard support: - (NSRange)selectCurrentLine ^L - (NSRange)selectCurrentWord ^W - (void)copyAsRTF ^C - (void)doSelectionUpperCase ^U - (void)doSelectionLowerCase ^⇧U - (void)doSelectionTitleCase ^⌥U - (void)doDecomposedStringWithCanonicalMapping - (void)doDecomposedStringWithCompatibilityMapping - (void)doPrecomposedStringWithCanonicalMapping - (void)doPrecomposedStringWithCompatibilityMapping -- there's no need to add keyboard shortcuts for the last four methods (but these are very useful while dealing with Unicode characters - see “Unicode noramization”) • some minor code cosmetics
* • ADDED copyAsRTF: to preserve syntax highlighting while copyingBibiko2009-04-031-0/+19
| | | | - not yet bound to any user interaction
* - Add the ability for CMTextView to automatically capitalise SQL keywords ↵rowanbeentje2009-04-035-22/+81
| | | | in the text view, currently off by default but saved from preferences. Thanks again to Hans-Jörg Bibiko for this patch; see Issue #218.
* - Improves autopairing to no longer autopair different quote characters ↵rowanbeentje2009-04-021-1/+34
| | | | within a quoted string, and also to no longer autoquote escaped characters within a quoted string. Also adds syntax highlighting to `-enclosed strings. Further thanks to Hans-Jörg Bibiko for these further improvements to his original patch (see http://code.google.com/p/sequel-pro/issues/detail?id=208 )
* Change the toggle console menu item's title to either 'Show' or 'Hide' console.stuconnolly2009-04-021-1/+8
|
* - Implemented "Clear History" in new Gear menuavenjamin2009-04-022-0/+7
| | | | - Changed UI in Query Tab for favourite and history popups as well as Run query buttons
* - Add a new "gear" action menu underneath the custom query view, including ↵rowanbeentje2009-04-026-13/+233
| | | | | | | | | | | | a number of items: - Add menu commands for "Run All" and "Run Selected", with additional keyboard shortcuts - cmd-R for Run all, addressing #137 - Add menu commands for indenting text, outdenting text, and to show autocompletion is available - Add menu commands to toggle autopairing and autoindenting - Also hidden menu commands for history navigation and clearing, not hooked in yet (see #207) - Add a new method to our string additions: lineRangesForRange - Add "shift right" (indent) and "shift left" (outdent) support to CMTextView, including for multiple lines
* - Add autopairing support to CMTextView - many thanks to Hans-Jörg Bibiko ↵rowanbeentje2009-04-015-10/+299
| | | | | | | | for the original patch (see http://code.google.com/p/sequel-pro/issues/detail?id=208 for full details). Applied with slight amendments. - Further changes to make CMTextView more standalone and reusable - autopairing and autoindenting can now be enabled/disabled and checked. - Autopairing and autoindenting moved to app preferences.
* For some reason the display of the table create and update dates in the ↵stuconnolly2009-03-312-22/+7
| | | | status view were broken, so changed it to use the same method used by the table info pane.
* - Fix behaviour of the enter key to run the query again - broken in r451rowanbeentje2009-03-311-2/+2
|
* - Update the custom query view to preserve indentation level on newlines, ↵rowanbeentje2009-03-301-0/+43
| | | | to improve editor behaviour.
* Fix 'Clear Console' menu item, which was disabled because of missing ↵stuconnolly2009-03-302-5/+11
| | | | 'clearConsole:' method in TableDocument.m.
* - When exporting to an SQL file, disable foreign key checks, change SQL ↵rowanbeentje2009-03-281-11/+41
| | | | | | | mode, and alter notes setting, and disable unique checks if appropriate. Dumps generated by Sequel Pro will now be able to be imported even if foreign keys etc are present, without throwing errors and aborting import. - When exporting to an SQL file, wrap the data import commands with table locking and key disabling commands - improves import speeds.
* - The status tab now no longer crashes when viewing Views. (Resolves Issue ↵rowanbeentje2009-03-282-25/+43
| | | | | | | #212) - SQL dump now correctly exports the CREATE ALGORITHM statement for views, and no longer attempts to output data for views. Databases with views can now be exported/imported without errors.
* - Add a preference (currently with no UI) for connection timeoutrowanbeentje2009-03-285-52/+54
| | | | | | | - Improve connection error messages slightly. - Avoid reading prefs for every keepalive check - now sets connection timeout and keepalive interval on connection setup - Fix and extend connection checks to avoid showing extra errors when the connection has been closed
* Improve interaction with connection favorites to prevent issues saving ↵rowanbeentje2009-03-282-4/+9
| | | | | | | | favorite changes: - Favorites are no longer resaved on document window close - instead they're saved on connect. Prevents the oldest window open from saving its favorites when closed, overwriting any changes since. - Explicitly synchs changes to disk to ensure prefs window/connection sheets see each other's changes faster.
* Fixed bug when using the IN filter. removed inclusion of single quotes at ↵avenjamin2009-03-271-1/+1
| | | | start and end
* Fixed bug where exporting current table would use the field terminator, ↵avenjamin2009-03-272-14/+27
| | | | enclosure, escape and line ending characters from the "export multiple tables" dialog instead.
* - Fix exceptions and so saving table column width changes in databases or ↵rowanbeentje2009-03-271-6/+2
| | | | tables which have already seen a column resized in the past. Looks like r389 incorrectly used arrays instead of dictionaries when cleaning up a memory leak.
* improve labels of toolbar iconsabhibeckert2009-03-261-7/+7
| | | | | | change default toolbar set to have a separator instead of a flexible space between select database and switch pane items closes issue #159
* Completely redesigned query console that now uses a table view instead of a ↵stuconnolly2009-03-2610-157/+556
| | | | | | | | | | | | | text view. This should significantly improve import speed, but most importantly resolves the crashes caused by the drawing that was being performed by the text view. Fixes issue #87 and implements #167. New console provides the following: - Live filtering - Ability to hide message time stamps - Ability to hide SELECT/SHOW statement messages - Ability to copy messages to pasteboard, including multiple messages - Ability to save the current filtered content to a file, with the option to include the message time stamps
* Rename tokens.h to SPEditorTokens.h and tokens.l to SPEditorTokens.l.stuconnolly2009-03-264-6/+6
|
* - when loading texts/blobs is disabled, the table view now shows "(not ↵jakob2009-03-262-19/+114
| | | | | | loaded)" in a gray color rather than " - text or blob -" -the remove and duplicate buttons in table and browse view are now disabled when nothing is selected
* Scale print image horizontallybamse162009-03-261-1/+1
|
* - updated the backtickQuotedString method to be 10.4 compatible (and to ↵jakob2009-03-261-1/+1
| | | | compile as well. thanks marius!)
* Reset print settings, so we're not prompted about saving thembamse162009-03-261-0/+3
|
* - updated the backtickQuotedString method to be 10.4 compatiblejakob2009-03-261-1/+16
|
* Enabled Page Setup for printing, so now you can print landscape toobamse162009-03-261-1/+2
| | | | | | Enabled auto pagination, so we print everything for now
* - Refactor custom query results redrawing code and reset view position to ↵rowanbeentje2009-03-251-23/+17
| | | | avoid out-of-range assertions when switching from a larger dataset to a smaller dataset; this fixes Issue #189
* Fix a reproducible sort-sort-refresh-sort crash bug by explicitly managing ↵rowanbeentje2009-03-251-3/+7
| | | | sortField and not referencing possibly deallocated column identifiers directly
* Added hidden preference to automatically select the last favorite you used.bamse162009-03-241-0/+6
| | | | | | To enable this feature write in Terminal: bash $ defaults write com.google.code.sequel-pro selectLastFavoriteUsed YES
* - fixed issue #203 (backticks in identifiers not supported)jakob2009-03-2410-101/+217
| | | | | | | | - added a backtickQuotedString: method to SPStringAdditions - created the file SPArrayAdditions for a componentsJoinedAndBacktickQuoted: method In the future, we should use backtickQuotedString: to quote identifiers like this: [NSString stringWithFormat:@"SELECT * FROM %@", [tableName backtickQuotedString]]
* Issue 201: Duplicating a row resets values of text/blob fields in the new rowbamse162009-03-231-4/+4
| | | | | Changes after code review: renamed variable, replaced @"NULL" with [prefs objectForKey:@"nullValue"]
* Issue 201: Duplicating a row resets values of text/blob fields in the new rowbamse162009-03-231-4/+14
| | | | | | | | | | Fixed - If you attempt to duplicate a row in tables where blob/text data is present but hidden and there are no keys, SP correctly pops up the dialog but then continues execution, and so crashes. Fixed - If the row being duplicated contains NULL data, exceptions triggered by [NSNull length] are thrown, and SP stops responding. Thanks to Rowan for code review