Commit Graph

2577 Commits

Author SHA1 Message Date
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
Allan Odgaard
0a459d0b85 If a disabled variable is edited (in Preferences) then enable it 2014-04-14 09:54:47 +07:00
Allan Odgaard
dde03783b2 Use more constants from sysexits.h for pretty_plist failure codes 2014-04-14 08:55:07 +07:00
Allan Odgaard
ec8208bbf5 Use constants from sysexits.h for bl failure codes 2014-04-14 08:55:06 +07:00
Allan Odgaard
5b47dca1e6 Add ‘sysexits.h’ as a precompiled header 2014-04-14 08:55:06 +07:00
Allan Odgaard
e6d8ffed43 Create archive of default bundles by using the server side status 2014-04-14 08:55:06 +07:00
Allan Odgaard
8f18aefe66 Update ‘bl’ to support list/install of default/mandatory bundles
We now have four meta-names: outdated, installed, defaults, and mandatories. These can be used to list or update/install the respective group of bundles.
2014-04-14 08:55:06 +07:00
Allan Odgaard
d31f2dc100 Only report failure from updating a source when there is no cache
Ideally we would also return ‘false’ when failing to update an existing source, but not failing when we have a cache is better than failing when there is nothing new to download.
2014-04-14 08:55:06 +07:00
Allan Odgaard
eb6d755ca5 Parse ‘isDefault’ and ‘isMandatory’ from remote bundle index 2014-04-14 08:55:06 +07:00
Allan Odgaard
3e8fd7b72a Use bundle item name in Commit Window’s title
This means using Git → Amend Last Commit… will show “Amend Last Commit” in the window title.
2014-04-13 13:09:11 +07:00
Allan Odgaard
72d8d584ac Update Avian bundle 2014-04-13 12:56:02 +07:00
Allan Odgaard
5e96775fa3 Break out of current block before continuing document saving v2.0-alpha.9537 2014-04-12 20:33:30 +07:00
Allan Odgaard
86a5538992 Ensure server object is alive when client is destroyed 2014-04-12 20:33:30 +07:00
Allan Odgaard
cb5c6062cd Checkin release notes v2.0-alpha.9533 2014-04-12 14:21:37 +07:00
Allan Odgaard
09ea4b3e46 When document changes (on disk) ensure all selections are valid 2014-04-12 14:13:50 +07:00
Allan Odgaard
7c192f1e02 Let OakTextView handle cancelOperation: as complete:
This is only when caret is at a word, when not on a word, we do not respond to the cancelOperation: method. This way, pressing escape in a window where another responder implements cancel:/cancelOperation: (e.g. commit window) the key will be handled by the other responder (and presumably close the window).
2014-04-12 14:13:50 +07:00