Commit Graph

5666 Commits

Author SHA1 Message Date
Allan Odgaard
651db91d05 Update resizing mask for bundle editor nibs
They are now all set to have resizable width.
2021-03-07 10:01:47 +01:00
Allan Odgaard
b5c7170d9a Implement cancelOperation: for HTML output window (close via escape key) 2021-03-07 07:55:07 +01:00
Allan Odgaard
52d5239537 Change HTML output window back from NSPanel to NSWindow
The problem is that if another panel opens, that panel is not tied to our HTML output window, for example opening the Find dialog does not allow us to press return to search in the HTML output, and if we open a modal dialog, when that modal dialog is disposed, the *main window* will be brought to front (not the previously focused panel).

This effectively reverts commit 92953099e6.
2021-03-07 07:39:50 +01:00
Allan Odgaard
4d429c6390 Update dialog plug-in (ability to run modal dialogs via Dialog 2.x) 2021-03-06 14:51:40 +01:00
Allan Odgaard
337fd7c0f2 Update dialog plug-in (log all calls to Dialog 1.x) 2021-03-06 14:51:40 +01:00
Allan Odgaard
be513fc506 Rave: Support notarizing single executables
Executables can be notarized, although not stapled.

One can check the status of an executable using:

    spctl -a -vvv -t install /path/to/executable
2021-03-05 16:27:23 +01:00
Allan Odgaard
5784028ff3 Rave: Defines can now reference defines declared later in the file 2021-03-04 13:42:14 +01:00
Allan Odgaard
d769cee110 Rave: Make variable match regexp a global constant 2021-03-04 13:36:49 +01:00
Allan Odgaard
7e9426c57d Rave: Treat all values with a ‘${dir}/’ or ‘${HOME}/’ prefix as files
Previously we used a heuristic and if the value looked like a path, checked that it actually existed.

The new approach makes the rules simpler, avoids a file system check, and also ensures that non-existing files *will* become dependencies.

The latter is useful if they are generated by local.ninja, typos, or actually unmet dependencies.
2021-03-03 10:00:55 +01:00
Allan Odgaard
9075087fc7 Rave: Slightly more generalized handling of Cap’n Proto headers 2021-03-03 10:00:50 +01:00
Allan Odgaard
d71d049c35 Use extracted changes for GitHub release
These are also in the tag annotation, which GitHub uses by default, but in that case, GitHub will treat it as plain text rather than markdown.
2021-02-28 20:33:55 +01:00
Allan Odgaard
3d4c042822 Extract changes (for tag message) into file instead of using a pipe 2021-02-28 20:28:14 +01:00
Allan Odgaard
9876e56b92 Do not strip comments (markdown headers) from git tag message 2021-02-28 20:25:08 +01:00
Allan Odgaard
dbe67682bf Checkin release notes for v2.0.19 v2.0.19 2021-02-25 21:30:03 +01:00
Allan Odgaard
4d7eeeb383 Ensure ⌘Z / ⇧⌘Z are not sent to file browser when it does not have focus
Since the context menu is outside the normal view/responder hierarchy, it can receive key events even when file browser is not the active view.
2021-02-25 21:23:50 +01:00
Allan Odgaard
755e5ccad7 Prevent tar from adding padding to the release archive
See aonez/Keka#793
2021-02-18 13:18:11 +01:00
Allan Odgaard
3c2d59058a Update GitHub build action to use macOS-latest and checkout@v2 2021-02-16 11:01:06 +01:00
Allan Odgaard
2bdf90c606 Limit tab size settings (for Onigmo submodule) to C files 2021-02-15 17:05:24 +01:00
Allan Odgaard
70d267158e Let bin/gen_build call ./configure to switch to new build file generator 2021-02-15 16:55:45 +01:00
Allan Odgaard
2a3cfebc98 Add release/deploy build rules to version control but disable by default
To enable it, one can create a symbolic link from local.rave → local-orig.rave, though the file requires a few variables to be defined.
2021-02-15 16:42:59 +01:00
Allan Odgaard
c47ea0cfe4 Increase maximum number of open files if the current limit is below 2048
The terminal has a default limit of 256, which can be too low for users with a lot of open files, as TextMate also keeps a file descriptor open for parent folders, in order to observe file system changes.

On my system though, launching TextMate via Finder has the maximum number of open files set to 8-12,000, also when launching via ‘mate’ (as that uses the Launch Services), but a user had problems with around 160 open files.
2021-02-15 16:01:50 +01:00
Allan Odgaard
b61252130f Show error dialog incase socket() fails 2021-02-15 16:01:50 +01:00
Allan Odgaard
956d98dab7 Abort after 5 seconds of ‘mate’ failing to connect to TextMate’s socket 2021-02-15 16:01:50 +01:00
Allan Odgaard
83d63659a6 Add script to extract single section from release notes 2021-02-15 16:01:50 +01:00
Allan Odgaard
bdef5e9256 Remove ninja.deploy as this is no longer useful 2021-02-15 16:01:50 +01:00
Allan Odgaard
8fa217cb11 Update CI for new build system 2021-02-15 16:01:50 +01:00
Allan Odgaard
128d7ddca9 Update ./configure to use new build system 2021-02-15 16:01:50 +01:00
Allan Odgaard
fa6256a42a Update README.md with info about new build procedure 2021-02-15 16:01:50 +01:00
Allan Odgaard
877a0c7fd4 Update URLs in README.md 2021-02-15 16:01:50 +01:00
Allan Odgaard
c185360200 Update .tm_properties to reflect new build system
The path to public headers has changed (relevant for TextMate’s header completion) and we no longer use target files.
2021-02-15 16:01:50 +01:00
Allan Odgaard
7f9d5b3216 Update git ignore 2021-02-15 16:01:50 +01:00
Allan Odgaard
94d3b9b670 Remove old build files 2021-02-15 16:01:50 +01:00
Allan Odgaard
5acdb25dc7 Update release notes script to no longer take new version as argument
Instead we just add one to the last number of last version.

With the new build system, the version of the build is extracted from the release notes, so this is the only source for the version number.
2021-02-15 16:01:50 +01:00
Allan Odgaard
f7d765ba0e Add build files (for new build system) 2021-02-15 16:01:50 +01:00
Allan Odgaard
e921af4e50 Add new build system 2021-02-15 16:01:50 +01:00
Zev Eisenberg
e11848bb6e Add syntax highlighting to readme 2021-02-10 00:00:17 +01:00
Allan Odgaard
5f5e8e168c Checkin release notes for v2.0.18 2021-02-09 20:17:09 +01:00
Allan Odgaard
a3a6b2ac88 No longer use drawer for properties in bundle editor
The drawer interface component is deprecated and does not fully support Dark Mode.
v2.0.18
2021-02-09 11:15:51 +01:00
Allan Odgaard
0695ec5a5b Rename property from indent to labelWidth
The latter is a more appropriate description of the property.
2021-02-09 11:15:51 +01:00
Allan Odgaard
8d63cfb5c8 Create bundle editor window in code
When building on macOS 10.15, the split view will show the NSBrowser split as collapsed and not allow the user to resize it, though only when running the build on macOS 10.14 or earlier.
2021-02-09 11:15:51 +01:00
Allan Odgaard
c6a92b2407 Revert "Fix truncated text in tool tips using Dark Mode on macOS 10.15"
The problem has disappeared. I have no idea what changed, though I did not notice the issue until 2-3 weeks ago, and the problem disappeared around the time of last macOS security update, though comparing my machine’s uptime with the time of the commit being reverted, there has been no reboot since that commit.

This reverts commit f74aa3fde8.
2021-02-09 11:15:51 +01:00
Allan Odgaard
1477e0f5a8 Checkin release notes for 2.0.17 v2.0.17 2021-02-05 08:02:03 +01:00
Allan Odgaard
b9abd14e3c Checkin release notes for 2.0.16 v2.0.16 2021-02-04 22:33:04 +01:00
Allan Odgaard
f74aa3fde8 Fix truncated text in tool tips using Dark Mode on macOS 10.15
We add a border to the NSTextField in Dark Mode to match the system tool tips, but it appears that the frame returned by “fittingSize” does not take that into account, so it returns a frame 1-2 points too small to fit the text, resulting in the last line missing.

This appears to be a fairly new problem, so might depend on the SDK that we link with.
2021-02-04 22:33:04 +01:00
Allan Odgaard
5a9fc8d20c Only use atomic save for remote volumes (by default)
APFS does not support exchangedata(2) meaning that atomic save has to be done using a rename.

This means that the inode is not preserved and the date of the file’s directory is updated.

There are some disadvantages to this, and I have been running with atomic saving disabled shortly after switching to APFS, so I believe it is best to make this the default behavior.
2021-02-04 22:10:26 +01:00
Allan Odgaard
7e69f5bb2c Fix compiler warnings by initializing struct members in correct order 2021-02-04 09:35:27 +01:00
Allan Odgaard
4972c104d1 Use ${YEAR} variable in NewApplication template’s InfoPlist.strings 2021-02-04 09:35:27 +01:00
Allan Odgaard
a02b95ce7b Use public modifier when logging exception name/reason 2021-02-04 09:35:27 +01:00
Allan Odgaard
9393ef61b5 The encoding pop-up button could create an NSMenuItem with nil as title
This would happen when the encoding property was nil (no selection).

Reworked code slightly while also fixing this issue.
2021-02-04 09:35:27 +01:00
Allan Odgaard
fa2077b3c8 Remove non-matching tests/resources definitions from build files
The resources directory was removed when we introduced CP_InfoPlist. The tests were removed in fcee7b38ab.
2021-02-04 09:35:27 +01:00