Commit Graph

2562 Commits

Author SHA1 Message Date
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
Allan Odgaard
3f55166f15 Assign ⌘. to the commit window’s cancel button
While ⌘. already triggers any cancelOperation:/cancel: method found in the responder chain, making it explicit gives visual feedback when user press the key, and ensures that another control doesn’t get the key (by responding to cancelOperation:/cancel:).
2014-04-12 14:13:50 +07:00
Allan Odgaard
6e619ad14c Do not render full screen windows as inactive
The text view itself will still dim the selection, but document tabs, status, and tool bars no longer change colors.

This seems consistent with how Apple’s controls act and is necessary for the status bar since it draws a transparent gradient over the window background, so only its borders got the dimmed look.
2014-04-12 11:23:07 +07:00
Allan Odgaard
d1bce2ac4f Get rid of OakCreateViewWithColor 2014-04-12 11:23:07 +07:00
Allan Odgaard
2bfd8a8118 Give local function ‘static’ storage 2014-04-12 11:23:07 +07:00
Allan Odgaard
375893fc7f Add a ‘did change content’ notification to document_t
This is only meant for when the document reloads content because the file was changed on disk. Long-term though, I think reloading document because of disk changes should be handled at a higher level.
2014-04-12 11:23:07 +07:00
Allan Odgaard
f445f19287 Add assertion to check if index is within allowed range 2014-04-12 11:23:07 +07:00
Allan Odgaard
1452148a65 Run in default run-loop mode for document_t::sync_open 2014-04-12 11:22:53 +07:00
Allan Odgaard
d549bb7a84 Remove unused include (cf/callback.h) 2014-04-12 11:22:38 +07:00
Allan Odgaard
ec6d0b7e4e fixup! Add assertion about being called in the main dispatch queue 2014-04-11 20:54:13 +07:00
Allan Odgaard
eaa2faa18a Change to project folder when running commands from commit window 2014-04-11 13:12:48 +07:00
Ronald Wampler
196f37729f fixup! Allow user to clear previous commit messages 2014-04-11 13:12:48 +07:00
Ronald Wampler
b942455d8f Implement "--log" option for commit window
This fixes a regression. The previous commit window allowed a "--log" option to be specified that would pre-populate the text view with the given argument.
2014-04-11 13:12:48 +07:00
Allan Odgaard
65e9b45d8a Treat commit window action command names as format strings
Presently the ‘TM_DISPLAYNAME’ is conditionally available, allowing the name to contain the file name which it will work with.

Also fix a potential “out of range” exception. The validateMenuItem: could be called for a cached menu item (e.g. when the system resolves key equivalents) where we had no selection (nor did click any item), so we would access the row at index -1.
2014-04-11 10:57:11 +07:00
Allan Odgaard
445468cbf5 Make list of items to be committed contain exactly 10 rows 2014-04-11 10:57:10 +07:00
Allan Odgaard
09d9cf9bd2 fixup! Add setting to disable tab re-ordering 2014-04-11 10:57:10 +07:00