Commit Graph

168 Commits

Author SHA1 Message Date
Allan Odgaard
6c6332ac78 Checkin release notes 2013-01-10 21:08:55 +01:00
Allan Odgaard
bccaee4be6 Simplify document open API
Removed the ability to specify wether documents should open in current window or a new window — all documents opened via this API will go through the same algorithm to find where the documents should end up (more choice is just adding confusion and complexity).
2013-01-10 06:46:44 +01:00
Allan Odgaard
d8cc115a5e Ensure we have a document in showWindow:
Also move (back) to using DocumentController instead of document::show().
2013-01-10 06:46:44 +01:00
Allan Odgaard
7b6515169f Remove unnecessary stuff
This includes the OakFilterWindow factory method as ‘new’ is just as good (now that ARC automatically autoreleases).
2013-01-10 06:46:44 +01:00
Allan Odgaard
211acb8a84 Use proper (specialized) type instead of ‘id’ 2013-01-10 06:46:43 +01:00
Allan Odgaard
531e8a44f1 Handle app termination in class method
It didn’t really make sense as an instance method since it iterate all instances, and we also want to execute code incase of no instances (save that fact as session data).
2013-01-10 06:46:43 +01:00
Allan Odgaard
a7a633f993 Remove procedural API for load/save of session
Since everything about session is now contained in the DocumentController class there is no need for invoking this from elsewhere and thus no need for the previous indirection.
2013-01-10 06:46:43 +01:00
Allan Odgaard
738456dbc7 Only let DocumentController schedule session saves 2013-01-10 06:40:03 +01:00
Allan Odgaard
c9f31cac71 Remove tmCommand load/save converters 2013-01-10 06:40:03 +01:00
Allan Odgaard
7328f0fd6a Checkin release notes 2013-01-10 06:40:03 +01:00
Allan Odgaard
8582b807a2 Improve support for percent escaped url parameters (txmt://)
Previously we would let NSURL parse the parameter and ask for the path component. This however does not support tilde as shorthand for the user’s home directory, and certainly not with TextMate 1.x’s questionable syntax (using ‘file://~/«file»’ instead of ‘file://localhost/~/«file»’ or possibly ‘file:///~/«file»’ although this one seems a little wrong).

As for percent escapes, the issue here is that if the URL parameter escapes slashes or colons, not decoding the URL parameter before creating an NSURL instance will fail (as the URL is malformed). If however we do decode percent escapes and the URL parameter contains spaces, then NSURL will also fail, as a URL with spaces is malformed.

So I ended up bypassing NSURL and check for a few variants of a ‘file://’ prefix (which is also what TextMate 1.x did).

This closes issue #602.
2013-01-09 00:28:17 +01:00
Allan Odgaard
58fed7a8c4 Let window title include project folder name
This is only if the project directory is actually set at the time the default properties are expanded, so presently this has no effect (but will when TextMate sets a default value for the projectDirectory variable).
2013-01-08 22:48:09 +01:00
Allan Odgaard
2f2cce3f3e Add ‘uuid’ to txmt URL scheme
This can be used to link to the “current document” even if that document has no path. Previously this was done by leaving out the ‘url’ parameter, which made it target the frontmost document — using ‘uuid’ is a more robust way to achieve the same.

A command can read the TM_DOCUMENT_UUID environment variable for the current document’s identifier.
2013-01-08 22:48:08 +01:00
Allan Odgaard
d4f664d4c8 Use factory method for DocumentController objects
We regularly iterate through all open windows and test if these are document controller windows. It will be easier to let the document controller class (or application delegate) manage a list of open document windows, as we anyway need some sort of owner with ARC (currently the instances own themselves and give up ownership in windowWillClose: which cause them to be released).
2013-01-08 22:48:07 +01:00
Allan Odgaard
72c15833c5 Checkin release notes 2013-01-03 21:26:04 +01:00
Allan Odgaard
ecc25b38d4 Improve handling of session state
We now remember values like file browser history even if the file browser is not shown while saving session state (but has previously been, or state was provided during setup). We also use the file browser and HTML output sizes stored in the session info (previously we only used values from NSUserDefaults).
2013-01-03 05:47:42 +01:00
Allan Odgaard
37c2412e25 Remove Edit → Mode submenu
The menu item within is not hooked up to anything (as mentioned in issue #650) and as my idea for finishing the indent settings UI does not involve this menu item, I am removing it to avoid further confusion.
2013-01-03 01:16:54 +01:00
Allan Odgaard
1aaab0c192 Happy new year 2013! 2013-01-02 01:46:48 +01:00
Allan Odgaard
9c35f445de Convert strings files to UTF-8 2013-01-02 01:46:48 +01:00
Allan Odgaard
47fa0f040c Use Objective-C literals for YES/NO 2013-01-02 01:46:48 +01:00
Allan Odgaard
8bcf126aba Minor refactoring 2013-01-02 01:46:47 +01:00
Allan Odgaard
012db690f5 Assign ⇧⌘P to Go → Project Folder
This key was previously assigned to File → Page Setup but as we currently don’t support that, and it is likely not going to see that big a use (when implemented) I think we can live without a key equivalent for that menu action.

Closes issue #525.
2013-01-02 01:46:47 +01:00
Allan Odgaard
c273b3d4fe Set Find and Go to Line dialogs to “join active space”
If user opens the dialog on one space, moves to another space (with a TextMate window) and then re-activate the (already open) dialog, it would previously switch back to the space containing the dialog, whereas with the changed setting, it now moves the dialog to the active space.

This should address issue #599.
2012-12-30 04:35:47 +01:00
Allan Odgaard
75be06e850 Offer double-click install of plug-ins
If the plug-in doesn’t set TMPlugInAPIVersion to 2 (in its Info.plist) a dialog will show, telling the user that the plug-in is not compatible with the current version of TextMate (which is most likely correct).

You can hold down option (⌥) to open the plug-in as a regular folder.

Addresses issue #392.
2012-12-30 03:40:54 +01:00
Allan Odgaard
6a79b5f432 Add preliminary bundle install support 2012-12-30 03:40:54 +01:00
Allan Odgaard
2024af398d Rework loading of plug-ins
We no longer require that the bundle identifier starts with ‘com.macromates’ instead the plug-in MUST set the TMPlugInAPIVersion key (in its Info.plist) to ‘2’ (the current API version).
2012-12-30 03:40:29 +01:00
Allan Odgaard
2a3b442bf2 ARC: Update TextMate (core application) 2012-12-28 02:47:19 +01:00
Allan Odgaard
1988240518 Remove old credits window 2012-12-25 01:11:54 +01:00
Allan Odgaard
ddd9763a79 Checkin release notes 2012-12-24 14:03:27 +01:00
Allan Odgaard
cf676cb01c Checkin release notes 2012-12-20 14:45:48 +01:00
Allan Odgaard
71be61cbbb Enable ARC by default
We now explicitly disable it for targets that hasn’t yet been upgraded to ARC. This way, it’s easier to get an overview of which targets hasn’t yet been upgraded and ensures new targets has ARC enabled.
2012-12-19 19:42:36 +01:00
Allan Odgaard
05357539d0 fixup! Rename method: scope → scopeContext
Missed one case causing “Current Scope” in bundle item chooser to not have any effect.
2012-12-19 19:42:34 +01:00
Allan Odgaard
92c77ece36 Change long → int32_t for 68K struct
When building as 64 bit the ‘long’ type is 8 bytes which broke the “jump to selection” part of the ODBEditor protocol support (issue #499).
2012-12-16 21:27:06 +01:00
Allan Odgaard
74f85c74ba Make help book template XHTML
The help indexer requires the pages to be valid XML and (silently) fails to generate the proper index (with anchors) when they are not.

This fixes issue #548.
2012-12-15 21:25:57 +01:00
Allan Odgaard
16561c14de Checkin release notes 2012-12-14 22:42:04 +01:00
Allan Odgaard
90e1f1b9ba Checkin release notes 2012-11-14 11:23:15 +07:00
Allan Odgaard
f9705ffa70 Checkin release notes 2012-11-12 15:40:35 +07:00
Brad Choate
eb30ea3cb8 Add dynamic contributions page to the About window 2012-11-12 14:49:47 +07:00
Robert Hencke
1ebe9d9373 Fix typo in comment (NSMneu → NSMenu) 2012-10-24 20:48:59 +07:00
Jonas Müller
c49f06fd28 Add comma to release notes 2012-10-24 20:48:59 +07:00
Allan Odgaard
ef175b3a78 Checkin release notes 2012-10-01 01:17:27 +02:00
Allan Odgaard
4b67c6d587 Use dispatch queues when updating bundle sources 2012-09-30 23:06:58 +02:00
Allan Odgaard
c7c3d3af38 Use dispatch queues when downloading bundles
This enables concurrency which offers a nice speedup.
2012-09-30 23:06:58 +02:00
Allan Odgaard
e1b3f71a69 Let about window show license (if any)
There is currently no way to add a TextMate (1.x) license to the key chain, but those who used TextMate r9147 or earlier should have one stored already.
2012-09-30 23:06:57 +02:00
Allan Odgaard
e97efb3f67 Use dispatch queues for signal actions 2012-09-30 15:25:44 +02:00
Allan Odgaard
456374342a Remove use of openssl constants 2012-09-30 15:25:44 +02:00
Allan Odgaard
15bd31880e Update about text 2012-09-30 15:25:44 +02:00
Allan Odgaard
144825e3f9 Checkin release notes 2012-09-29 01:19:42 +02:00
Allan Odgaard
ffbcd192ef Fix ⌘1-⌘n for about window
We have to go via OakSubmenuController because the menu item may not exist. The reason for this is related to not having old menu items exist after a delegate has disappeared, though it might be possible to improve.
2012-09-29 00:46:26 +02:00
Allan Odgaard
7af2a71de0 Conditionally show release notes during startup 2012-09-29 00:39:14 +02:00