Commit Graph

739 Commits

Author SHA1 Message Date
Allan Odgaard
6c7276235e Checkin release notes for 2.0-rc.14 2018-11-01 12:06:04 +07:00
Allan Odgaard
37176f601c Put additional Select Next/Previous Tab shortcuts in main menu (10.13)
These are added as hidden items and do make the menu flash, when the keys are used.
2018-11-01 11:28:08 +07:00
Allan Odgaard
00d4c4f23a Update constant names for 10.10 2018-10-31 23:08:33 +07:00
Allan Odgaard
48605ef4e9 The bundle selection menu now uses same appearance as the calling view
Only when there are no open windows, and the user is triggering the bundle item selection menu, will it default to the light aqua appearance.
2018-10-31 10:32:46 +07:00
Allan Odgaard
e8a3cb8f57 Do not use OakFileIconImage for menu items and recent projects
On macOS 10.14 this image doesn’t always render, so this is a temporary workaround.

The main advantage of using OakFileIconImage is the added SCM badge and custom icon for known file types.
2018-10-31 00:54:01 +07:00
Allan Odgaard
392c1ae954 Use separatorColor dividers in Open Quickly (⌘T) and friends
Not too fond of how this looks in Dark Mode but I think it’s better than the previous colors, which stem from back when the window had more of a 3D look.
2018-10-30 20:53:10 +07:00
Allan Odgaard
8f32a740b3 Don’t use textured windows for Open Quickly (⌘T) and friends
When building on 10.14 the textured window look does not provide a borderless title bar look as the window content is lighter than the title bar.

The solution is to move the search controls to the title bar, which is possible starting with 10.10.
2018-10-30 20:46:55 +07:00
Allan Odgaard
82de01589f Update deployment target of all xib files to 10.10 2018-10-30 13:46:34 +07:00
Allan Odgaard
56c7e34f74 Checkin release notes for 2.0-rc.11 2018-10-30 11:53:35 +07:00
Ronald Wampler
05e61188ee Change Select Previous/Next Tab key equivalents
⌃⇧⇥ and ⌃⇥ are the preferred system wide shortcuts for changing tabs. In order to avoid a disruptive change, the previous shortcuts are still supported (in fact, it appears that all apps using the system tabbing mechanism support the previous shortcuts as well).
2018-10-29 11:47:56 +07:00
Ronald Wampler
14cd991a1d Move "Select Previous Tab" above "Select Next Tab"
This makes the Window menu more consistent with system apps.
2018-10-29 11:47:56 +07:00
Allan Odgaard
b57e784db5 Remove import of unused header 2018-10-28 10:15:56 +07:00
Allan Odgaard
4bec98127e Eliminate the optional menu title argument for MBCreateMenu
If a specific title is required, one can simply let the second argument be: [[NSMenu alloc] initWithTitle:«title»]
2018-10-15 06:11:39 +02:00
Allan Odgaard
f6fa273912 Update coding style for where to place colon after dictionary keys
This follows the Swift style and also makes it possible to align dictionary values using TextMate’s Align Assignments command.
2018-10-07 09:54:45 +02:00
Allan Odgaard
d93972f958 Calling ‘mate -w’ repeatedly would not always return focus to terminal
See comment in the code for further details.
2018-10-05 18:15:19 +02:00
Allan Odgaard
cc9faa6024 Prefix member data with underscore and do not capture it in debug output 2018-10-05 18:01:31 +02:00
Allan Odgaard
43fc65805d Add NSAppearanceName stuff from the macOS 10.14 SDK 2018-08-21 11:42:25 +02:00
Allan Odgaard
dc99a0f14b Use objectForInfoDictionaryKey: instead of localizedInfoDictionary 2018-07-30 22:37:35 +02:00
Allan Odgaard
417e2080f8 Remove use of oak::application_t in NewApplication template 2018-07-10 10:55:56 +02:00
Allan Odgaard
52fda481dc Change beta/nightly software update constants to prerelease/canary 2018-06-28 10:40:27 +02:00
Allan Odgaard
b577c580c4 Change Check for Updates → Check for Update (singular) 2018-06-28 10:40:27 +02:00
Allan Odgaard
e70791ee89 Rename a bunch of constants to fix deprecation warnings (10.12) 2018-06-16 22:55:30 +02:00
Allan Odgaard
00399543b3 Checkin release notes for 2.0-rc.10 2018-06-12 00:03:25 +02:00
Allan Odgaard
7031dfd415 Escape newlines and backslashes in parameters sent by mate to TextMate 2018-06-11 08:13:26 +02:00
Allan Odgaard
55d915a97b Fix out-of-range string access in mate protocol parser
This would happen if the mate server received a line with no argument and no leading space before the argument, e.g.: `key:\n`.

This could be triggered using `--set-mark` since newlines in the payload are not being escaped.

Fixes textmate/bugs#27
2018-06-11 08:13:26 +02:00
Allan Odgaard
f920ff058a Tidy up main menu
This means remove unnecessary targets, unused tag values, empty submenus, and trailing separator items.
2018-04-30 15:30:48 +07:00
Allan Odgaard
8bda806ef9 Create dock menu in our application delegate 2018-04-30 15:30:48 +07:00
Allan Odgaard
87ad8f6559 Create main menu in our application delegate
The advantages are:

- More compatible with version control
- Easier to copy/paste menus and menu items between other projects
- Easier to setup menu delegates or obtain pointers to menu items
- We can use symbolic names when setting a menu item’s tag
- More transparent: We can read the declaration in a few minutes, use search, etc.

There are two disadvantage that I can think of:

1. We currently need to use private API to create the Open Recent submenu. Should this become a problem in a future macOS update, we can always create a single Open Recent menu in MainMenu.nib and use that when building our menu.

2. If you make a typo in the menu declaration then the compiler error will often just point to the first line of the declaration rather than the line with the incorrectly declared item. One can comment out sections to narrow it down, if many edits have been made since last compile.
2018-04-30 15:30:48 +07:00
Allan Odgaard
b8b46d1ae3 Add header for OakMainMenu (menu subclass) 2018-04-30 15:30:48 +07:00
Allan Odgaard
bafe0e572b Rename ApplicationController → AppDelegate 2018-04-30 15:30:48 +07:00
Allan Odgaard
fa0e055755 Update main menu template to what’s included with Xcode 9.2 2018-04-30 15:30:48 +07:00
Allan Odgaard
82ac2daa85 Let our application delegate create the main menu 2018-04-30 15:30:48 +07:00
Allan Odgaard
81b888d61e Checkin release notes for 2.0-rc.9 2018-04-25 21:43:51 +07:00
Allan Odgaard
c1bb559a38 Revert "Add ‘public.data’ to list of supported file types for QuickLook plug-in"
This causes TextMate’s QL generator to take over thumbnail generation of all binary files (without a dedicated QuickLook plug-in), for example disk image files.

There does not seem to be any way to dynamically opt out of thumbnail generation, it’s all or nothing, therefor we would either need to completely remove support for thumbnail generation or not support QuickLook previews for files without extension.

For now it’s the latter.

This reverts commit fd827fb817.
2018-04-25 21:43:51 +07:00
Allan Odgaard
494290cc19 Checkin release notes for 2.0-rc.8 2018-04-25 21:43:51 +07:00
Allan Odgaard
a232a1848b Update copyright to 2004-2018
We are back to showing a range motivated by a comment from @nanoant: 76cc25b2a6 (commitcomment-21502195)
2018-03-08 16:05:52 +07:00
Jacob Carlborg
e3ded6e2f9 Add imported and exported type declarations for D
This will make the system properly recognize D source files.
2018-03-08 16:05:31 +07:00
Pravdomil
fd827fb817 Add ‘public.data’ to list of supported file types for QuickLook plug-in
This enables QuickLook preview for text files without extension such as README, LICENSE, etc.
2018-02-06 22:59:27 +07:00
Michael Sheets
0c8817e57a Fix generation of contribution page
Modern multimarkdown tends to convert the <% and %> tags into HTML when they
occur before or after an empty line. This would then break parsing with erb.
Remove all empty lines in the vicinity of these tags to prevent this problem.

Sent in by @neverpanic through @ryandesign
2018-02-06 17:20:17 +07:00
Jake Kirshner
9f1cec343e Add basic touch-bar support 2017-10-03 21:56:54 +02:00
Allan Odgaard
a0a15caa2a Introduce sdk-compat.h for redeclaring stuff in latest SDK
This is when we are not yet ready to require building with the latest SDK but need to use some of symbols defined there.
2017-09-12 20:43:52 +02:00
Ronald Wampler
44a7e580d9 Update deployment target to 10.9 2017-06-09 15:33:18 +02:00
Ronald Wampler
f3cd0b0797 Resolve ambiguous autolayout issues
Most of these layout changes are related to the common pattern we used to set constraints for "dividers", where one of the dividers is specified to be connected to both edges of its superview then setting the other dividers' constraints to have equal widths (e.g., @"H:|[divider(==divider2,==divider3)]"). On 10.12, this now appears to result in ambiguous layout. We can resolve it by connecting at least one of the edges for each divider to its superview.
2017-05-31 21:58:31 +02:00
Ronald Wampler
038acacca9 Avoid use of NSRunAlertPanel (10.9)
Although this is actually deprecated in 10.10, new APIs are available in 10.9 and it will make addressing deprecation warnings when upgrading to 10.10 easier.
2017-05-31 21:58:31 +02:00
Ronald Wampler
9feef86b16 Remove workaround for trashItemAtURL:resultingItemURL:error (10.9) 2017-05-31 10:03:41 +02:00
Vadim Shpakovski
2156555057 SyntaxMate: XPC Service for third-party apps 2017-03-10 14:08:22 +07:00
Allan Odgaard
cd9c6b1c3d Use single setting to pair Go’s main and test files as related 2017-03-10 12:22:35 +07:00
Allan Odgaard
ddb7a63074 Update mate’s help text to show mark’s value as optional 2017-03-10 12:22:35 +07:00
Allan Odgaard
76cc25b2a6 Update copyright year to 2017 2017-03-10 12:22:35 +07:00
Allan Odgaard
fe000014fd Don’t save metadata for the COMMIT_EDITMSG file
Git will re-use the file, but with new content, so we do not want to remember caret position or similar.

Previously we recommended setting the git editor to ‘mate -wl1’ but disabling metadata is a better solution.
2017-03-10 12:22:35 +07:00