3766 Commits

Author SHA1 Message Date
Allan Odgaard
15a91fef37 Checkin release notes v2.0-beta.10 2016-06-22 20:26:09 +02:00
Allan Odgaard
41f14fe5a4 Skip expiration check when running on 10.7 or earlier 2016-06-22 19:45:24 +02:00
Allan Odgaard
28533a48d6 Ignore binary identification glob when search should include binary files 2016-06-22 19:45:24 +02:00
Allan Odgaard
d6993bb476 Remove xib from binary file identification glob 2016-06-22 19:45:24 +02:00
Allan Odgaard
c50795af91 Simplify code by using std::function 2016-06-22 18:31:49 +02:00
Allan Odgaard
ff4a796c20 Don’t pass inserted data to the buffer_t metadata hooks
None of the hooks actually use this data and as they are called after the replacement has been done, they can query the buffer, should they require information about its content.

The problem with having to pass the data pointer to the hooks is that there could be future situations in where the buffer’s data is not inserted as one contiguous block of memory, for example we could allow constructing a buffer from a storage_t instance.
2016-06-22 18:31:49 +02:00
Allan Odgaard
61a3a6229a Use constructor delegation for buffer_t 2016-06-22 18:31:49 +02:00
Allan Odgaard
f5832c975f Add missing include statements 2016-06-22 18:31:49 +02:00
Allan Odgaard
371d426c5f Add ‘char const*’ insertion API to ng::buffer_t 2016-06-21 23:23:44 +02:00
Allan Odgaard
7ac10b7b29 Add to_ns helper function which creates an NSString from std::string 2016-06-21 22:11:13 +02:00
Allan Odgaard
daa90613f0 Use BOM versions of UTF-16/32 in list of default encodings
If we find that the user doesn’t have any BOM versions enabled but do have the non-BOM versions then we update their settings to instead use the BOM versions.
2016-06-21 19:47:44 +02:00
Allan Odgaard
b72091b3bb The encoding::charset_from_bom function now return “«charset»//BOM” 2016-06-21 19:32:47 +02:00
Allan Odgaard
55b2f6366e Remove ‘useBOM’ settings key 2016-06-21 19:31:22 +02:00
Allan Odgaard
7b2e296907 Remove BOM support from encoding::type 2016-06-21 19:30:22 +02:00
Allan Odgaard
4b3d959c85 Remove explicit BOM handling from the file framework 2016-06-21 19:28:29 +02:00
Allan Odgaard
735ba3a386 Remove explicit BOM support from document_t 2016-06-21 19:20:56 +02:00
Allan Odgaard
0e0eba8a54 Add BOM versions of all unicode transformation formats 2016-06-21 19:19:37 +02:00
Allan Odgaard
7e8aa8b898 Remove “byte order mark” support from the save panel
This can be specified via the encoding.
2016-06-21 19:18:17 +02:00
Allan Odgaard
f60e0dad98 Use text::transcode_t instead if iconv API 2016-06-21 18:33:20 +02:00
Allan Odgaard
0520e4fe88 Add text::transcode_t which is a wrapper for iconv
Apart from being simpler to use this wrapper supports adding ‘//BOM’ to the charset name to either consume or produce a byte order marker.

It also converts invalid byte sequences to (ASCII) escape codes, e.g. \x8F.
2016-06-21 18:31:29 +02:00
Allan Odgaard
4758061719 Do not add final newline to hex dump 2016-06-21 10:51:55 +02:00
Ronald Wampler
9337b12616 Pass our minimum deployment target to ibtool
This suppresses the below warning when compiling xibs with Xcode 7 or later.

    warning: This file is set to build for a version older than the deployment target. Functionality may be limited. [9]

We should revisit this when we update our minimum deployment target to 10.8 or higher, as it may not be needed.
2016-06-21 06:19:04 +02:00
Allan Odgaard
863ed2a691 When running tests synchronously failures would be ignored 2016-06-21 06:19:04 +02:00
Allan Odgaard
e8df02f4a4 Let buffer_t delegate operator== to its storage member 2016-06-21 06:19:04 +02:00
Allan Odgaard
da96be12c9 Add comparison operators to storage_t class 2016-06-21 06:18:55 +02:00
Allan Odgaard
aa310c87c5 Add const access to buffer_t’s underlying storage
This is to be used for cheap snapshots.
2016-06-20 18:19:14 +02:00
Allan Odgaard
a2dfe22339 Only expose pointer to const bytes owned by memory_t::helper_t
This guards against misuse of the API, as the compiler should now enforce our append-only design.
2016-06-20 18:19:13 +02:00
Allan Odgaard
608b375b30 Let the constructor of memory_t::helper_t accept an iterator pair
This should make the API more clear, as there is no longer the requirement to copy bytes after constructing memory_t with a non-zero size.
2016-06-20 18:19:13 +02:00
Allan Odgaard
b6861444c8 Replace memory_t::grow with memory_t::append
This makes it clear that we can only append to a memory_t type.
2016-06-20 18:19:13 +02:00
Allan Odgaard
3c3b48f9ad Rename memory_t::free → memory_t::available 2016-06-20 18:19:13 +02:00
Allan Odgaard
437f640e74 Implement move assignment and constructor for oak::basic_tree_t 2016-06-20 18:19:13 +02:00
Allan Odgaard
fb7c2cef3f Use NSUserDefaults’s specialized «type»ForKey: 2016-06-20 11:43:40 +02:00
Allan Odgaard
bc20f67d05 Revert "Search results are now added in batch to limit KVO notifications"
This was published by mistake as 8175d2d9d8 address the same problem but with less complex code.

This reverts commit f7edb51ea3.
2016-06-19 22:08:36 +02:00
Allan Odgaard
89376e6ac9 Always ask OakFileBrowser to validate deselectAll: and reload:
Also simplify code so that we only need to maintain a set of which actions the file browser should validate.
2016-06-19 09:40:09 +02:00
Allan Odgaard
6e8ab01c09 Let OakFileBrowser validate menu items sending deselectAll: 2016-06-19 09:40:08 +02:00
Allan Odgaard
0a0b9a8052 Move Select None to File Browser (main) menu
This was previously placed in the file browser’s action menu and thus probably overlooked by many, even though ⇧⌘A is a very useful key equivalent, since many commands work on the entire project when there is no selection in the file browser.
2016-06-19 09:40:08 +02:00
Allan Odgaard
dc0331b781 Change File Browser → Current Document to Select Document
Also make the title dynamic so that we show the current document’s name (when we have one) and add a separator below the menu item.
2016-06-19 09:40:08 +02:00
Allan Odgaard
5c7b04fbd3 Add missing include for test/jail.h 2016-06-19 08:45:16 +02:00
Ronald Wampler
7e3497889e Rename "Go" menu to "File Browser" 2016-06-19 08:45:16 +02:00
Ronald Wampler
1a1c3ecd38 Move "Go To Related File" to the Navigate menu 2016-06-19 08:45:16 +02:00
Ronald Wampler
5bb89898fb Move "Go to File" to File menu and rename to "Quick Open" 2016-06-19 08:45:16 +02:00
Ronald Wampler
e452a5ee55 Move "Go to Tab" to the Window menu and rename to "Select Tab"
Also edit the source to reflect the change in name (e.g., `updateGoToMenu:` → `updateSelectTabMenu:`).
2016-06-19 08:45:16 +02:00
Mike Meyer
91befc271b Read the gutter fontName from user defaults
defaults to textView fontName
2016-06-19 08:33:03 +02:00
Allan Odgaard
a4deade16a Show path of default keybindings as TextMate.app ▸ KeyBindings.dict
This is instead of showing the full path. The user can still get to the file by using the “Edit” button.
2016-06-18 12:15:32 +02:00
Allan Odgaard
45a23472cb Use localized number formatting for collapsed search result headers 2016-06-18 12:15:32 +02:00
Allan Odgaard
b232a70d69 Remove countOfLeafs property from OakSearchResultsHeaderCellView 2016-06-18 12:15:32 +02:00
Allan Odgaard
f7edb51ea3 Search results are now added in batch to limit KVO notifications
Majority of the time in the main thread was spent updating the countOfLeafs property since canReplaceAll and the result text are dependent on this property.
2016-06-18 12:15:32 +02:00
Allan Odgaard
5d9ad561dc Deleting last item in pasteboard history browser is now a no-op
Unfortunately disabling the “Delete” button is cumbersome because our history is stored with CoreData so knowing the number of items in the history requires a fetch request, which we would not know when to re-run (to update the disabled state when the history is changed).

When the filter string is empty we can use the array controller’s results, but I’m leaving that for the future.
2016-06-18 11:29:13 +02:00
Allan Odgaard
705fc6e0e9 Change “Clear All” → “Clear History” in pasteboard history browser
Technically we are unable to delete the pasteboard’s current item so “Clear All” was performing a “Clear All Minus One”. While the new label does not make this clear, it at least does not promise to clear everything.
2016-06-18 11:29:13 +02:00
Allan Odgaard
3346f8e237 Use operator== from document_t instead of its identifier’s
This serves to make the code slightly more abstract and allows the document to optimize the comparison operator, e.g. testing pointer equivalence before involving more complex checks.
2016-06-18 11:29:13 +02:00