Commit Graph

2592 Commits

Author SHA1 Message Date
Allan Odgaard
f6a8ecffcf Checkin release notes v2.0-alpha.9543 2014-04-28 23:37:39 +07:00
Allan Odgaard
79d3eca3e9 Revert "Do not abort application shutdown when we need to save documents"
This reverts commit 73f82c6c5c.

Conflicts:
	Frameworks/DocumentWindow/src/DocumentController.mm
2014-04-28 23:33:00 +07:00
Allan Odgaard
adcce4f363 Revert "Disable threaded saving as a workaround for stall during quit"
This reverts commit 0b41947412.
2014-04-28 23:27:46 +07:00
Allan Odgaard
79db70f18b Checkin release notes v2.0-alpha.9541 2014-04-28 21:59:19 +07:00
Allan Odgaard
0b41947412 Disable threaded saving as a workaround for stall during quit
The problem is that during quit the OS will run a local event loop until we reply to the terminate event. In this local event loop we cannot use performSelector:withObject:afterDelay: but that is required to not block the main dispatch queue.
2014-04-28 21:45:59 +07:00
Allan Odgaard
9a80fd4226 Fix potential stall using “save all” from find in folder
This would happen if the user manually saved one of the documents with replacements before invoking save all, since the wrong “did save” callback was called when trying to save an unmodified document.
2014-04-28 21:45:59 +07:00
Allan Odgaard
7ea524b936 Drop the oak::server_t abstraction 2014-04-28 21:45:59 +07:00
Allan Odgaard
17b5928d76 Remove backup files for documents with a path during quit
Previously if we selected “Don’t Save” the discarded changes would still be there after relaunch.
2014-04-28 18:23:51 +07:00
Allan Odgaard
7698ce2783 Show an error when WebKit fails to load the requested resource
WebKit will e.g. fail to load resources identified as application/octet-stream.
2014-04-28 18:23:51 +07:00
Allan Odgaard
cb22cc0228 Make bundle update frequency configurable
This is introduced only for testing.
2014-04-28 18:23:51 +07:00
Allan Odgaard
ffbcd3c7f9 Fix error logging for download problems 2014-04-28 18:23:51 +07:00
Allan Odgaard
8b02bb2809 Do not update a bundle if it requires a newer version of TextMate 2014-04-28 18:23:51 +07:00
Allan Odgaard
d06c6f02bc Use file’s display name instead of CFBundleName
This seems to be what Finder does, and some bundles (Spotify.app) actually lack a CFBundleName key.

Also ensure our bundle has a CFBundleIdentifier.
2014-04-28 18:23:51 +07:00
Allan Odgaard
8c41396ab9 Hide link arrows in Preferences → Bundles when there is no link 2014-04-28 18:23:51 +07:00
Allan Odgaard
b8c1085b9e Let NSURL extract the host from REST_API
The custom code in network::can_reach_host only dealt with the scheme, not port number or user/password.
2014-04-28 18:23:50 +07:00
Allan Odgaard
397fdb52d4 Make REST_API a global define and make it a C string 2014-04-28 18:23:50 +07:00
Allan Odgaard
7c31761e21 Use NSWindow’s stringWithSavedFrame instead of window.frame
This includes the screen dimension so that restoring the frame on a different screen can scale the window accordingly.
2014-04-25 16:55:31 +07:00
Allan Odgaard
0ad0b12a82 Improve “Open With” submenu
- Path to application is shown in the menu item’s tool tip.
- When menu is shown for multiple file types with different default applications, we show the default applications first.
- Use the potentially localized bundle name rather than file system display name.
- Use bundle identifier to group applications rather than display name: Grouping is done to decide if version number should be shown for the item.
2014-04-25 16:55:31 +07:00
Allan Odgaard
603f06d2db Move version comparison out of s/w update framework 2014-04-25 16:55:31 +07:00
Allan Odgaard
1c7a749308 Parse the ‘required’ field from remote bundle index 2014-04-25 16:55:31 +07:00
Allan Odgaard
c272afaff2 Cleanup/harmonize whitespace
Leading indent should consist only of tabs, beyond that, only spaces should be used.
2014-04-25 16:55:31 +07:00
Allan Odgaard
6d77df7ac3 fixup! Remove trailing zeroes from numeric literals 2014-04-22 08:16:34 +07:00
Allan Odgaard
064cc09f99 Check if we have a ‘body’ when creating list of bundle changes 2014-04-22 08:16:34 +07:00
Allan Odgaard
5248129566 When failing to update a bundle we would claim “download error”
We would even output it two times.
2014-04-21 17:05:35 +07:00
Allan Odgaard
6359a2ef7c Use symbolic exit success/failure constants 2014-04-21 17:05:35 +07:00
Allan Odgaard
9e4a5ccd82 Add instance counter for node_t (used by glob parser)
This will alert us of any leaks (if instance count is non-zero during quit).
2014-04-19 17:01:31 +07:00
Allan Odgaard
a2fad22bf7 Check if directory exists before asking for path::entries
This is to avoid the warning logged from path::entries (about directory not existing).
2014-04-19 17:01:31 +07:00
Allan Odgaard
91b216bf24 Use glob parser for brace expansion 2014-04-19 17:01:31 +07:00
Allan Odgaard
d178527924 Do not make expansion order assumptions about consecutive braces 2014-04-19 17:01:31 +07:00
Allan Odgaard
7d1f7941b9 Include exclude operator in glob syntax comment/documentation 2014-04-19 17:01:31 +07:00
Allan Odgaard
5f670e0479 Checkin release notes v2.0-alpha.9539 2014-04-18 20:43:24 +07:00
Allan Odgaard
78e76f55d8 Improve handling of empty braces in globs
We treat empty braces as literal characters though do balance them.
2014-04-18 20:30:07 +07:00
Allan Odgaard
cc02ceb963 Match (potential) file chooser glob against full file path
Previously we would try full path, relative path, and just the name. This was done to determine wether or not the display string should include full path details or be limited to the name. The problem is that an excluding glob may require the full path, and would thus not exclude items that did match when using just the item’s name.
2014-04-18 20:30:07 +07:00
Allan Odgaard
d39fc88324 Always enable action pop-up button in find window
Previously it was only available when doing folder searches, since the items are for folder search behavior and results.

However, with “Find All” in document, we get a similar result list from which we may want to copy matches.
2014-04-18 09:24:09 +07:00
Allan Odgaard
42ff7850f3 Switch from gdb → lldb and run in current terminal (ninja 1.5) 2014-04-18 06:40:48 +07:00
Allan Odgaard
2134e957e6 Display progress during upload (ninja 1.5) 2014-04-18 06:40:48 +07:00
Allan Odgaard
9524439aef Handle bang in globs (negation) identically to tilde
This simplifies the code (slightly) and allows the bang to appear in other positions than leading.
2014-04-18 06:40:48 +07:00
Allan Odgaard
45481d2e4d Add tilde (~) as a glob “exclude” operator
For example the following glob will match C++/Objective-C++ source/header files, except those in the ‘vendor’ directory: *.{cc,mm,h}~vendor/**

It is possible to do multiple exclusions, e.g.: src/**~*.log~*.db

It is also possible to start with the exclude operator to negate the pattern (identical to the ! operator).

The exclude operator is not supported inside brace expansion, e.g.: {*.o,*~.nib} will treat it as a literal tilde. Furthermore, placing the tilde last will also treat it as a literal tilde, e.g.: *.txt~

In the exclude pattern, single/double asterisk (*/**) will match hidden files.
2014-04-18 06:40:48 +07:00
Allan Odgaard
01722b9a6e Create custom parser for glob patterns
Previously we parsed them using regular expressions, but future improvements is hard using that approach.
2014-04-18 06:39:55 +07:00
Allan Odgaard
fcae942927 Fix comparison of document path with candidate name
This check is so that we always include the current document, even if the exclude/binary globs are setup to exclude it.
2014-04-18 06:39:28 +07:00
Allan Odgaard
7c6594012e Use initializer list to create std::set (C++11) 2014-04-18 06:39:28 +07:00
Allan Odgaard
0b2932b3de Add test for empty glob (should not match anything) 2014-04-18 06:39:28 +07:00
Allan Odgaard
7bedb531ef Let utf8::multibyte<T>::length return 1 for non-multibyte chars
Previously we asserted that the API was always called with multibyte start characters.
2014-04-18 06:39:27 +07:00
Allan Odgaard
bbfad640f5 Explicitly exit the commit window tool
We were relying on the run loop to wake up as part of running a delayed selector, but that did not happen prior to 10.9.
2014-04-16 22:55:16 +07:00
Allan Odgaard
4474419405 Use API available on 10.7 for the commit window’s NSTableView
We’re using an NSViewController to load the nib so that we do not need to manually release the top level objects.
2014-04-16 22:55:16 +07:00
Allan Odgaard
ae69d06c2c Use undo manager from file browser’s potential field editor
We override undo/redo for the file browser so that ⌘Z / ⇧⌘Z will only undo/redo file browser actions when it’s in the responder chain: b9fafd1495

This had the unfortunate side-effect of eclipsing the undo support of descendent views of the file browser, like the field editor used for renaming items.
2014-04-15 07:06:55 +07:00
Allan Odgaard
f515bc70f8 Use lowercase for the status of implicitly installed bundles 2014-04-14 14:26:53 +07:00
Allan Odgaard
9790644fbd Track implicitly installed bundles 2014-04-14 14:26:52 +07:00
Allan Odgaard
1f0e3db472 Remove trailing zeroes from numeric literals
I mainly dislike the trailing zeroes because CGFloat used to be a float but 1.0 is a double (1.0f would be a float). So better to under-specify and let the compiler figure out the proper type.
2014-04-14 14:26:52 +07:00
Allan Odgaard
39b94e6ac3 Harmonize whitespace and add trailing newline 2014-04-14 14:26:52 +07:00