| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
frequently used function
|
| |
|
| |
|
|
|
|
|
|
|
| |
- 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 (⇧⌫)
|
| |
|
|
|
|
|
| |
- instead of using \t as indention string the user can choose how many spaces should be used instead
- addresses issue 956
|
|
|
|
| |
(user typed one character) to suppress it while pasting or inserting larger text chunks
|
|
|
|
|
|
| |
esp. for first word after soft-wrapping
• fixed tooltip positioning for SPTextView - do not take the mouse location instead take the caret position
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
avoid incorrect line number rendering while scrolling until the problem is found why it causes some crashes
• fixed missing free() in [SPCopyTable executeBundleItemForDataTable]
|
| |
|
| |
|
|
|
|
| |
• improved rendering of line number display in Query Editor and Bundle command text view after scrolling to avoid displaying them unreadable
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
- 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)
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
- further simplifications and centralizations
- runBashCommandWithEnvironment: now it can execute each script command whose first line begins with #!/... natively
- added some more shell variables
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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 ;)]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
- this also improves alias parsing
|
|
|
|
| |
- this also improves alias parsing for parameter inside functions
|
|
|
|
|
|
| |
• alias (auto-)completion
- further improvements regarding detecting of aliases esp. if used just after SELECT in conjunction with commas
|
|
|
|
| |
- further improvements regarding detecting of aliases esp. if used just after SELECT
|
|
|
|
| |
- further improvements to match table names
|
| |
|
|
|
|
|
| |
- first sketch should work for 90% of all cases - fine-tuning will follow soon
- this follows issue 880
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
|
|
|
| |
- should fix among other issues i862
|
| |
|
|
|
|
|
| |
- 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's font
- added some logic for closing the NSColorPanel
- some GUI tweaks
|
|
|
|
|
| |
• re-enabled autoHelp
|
|
|
|
| |
quotes or not in order to come up with the correct suggestions
|
|
|
|
|
|
|
|
|
|
|
| |
Prefs > Editor > Gear menu as normal plist file
- file extension is spTheme
- can also import TextMate theme tmTheme files directly
• added the chance to set the selection color in the Query Editor
• fixed code for setting the insertion point color
• changed the way how the query highlight color will be drawn
- now it also supports colors with an alpha value
|