Commit Graph

635 Commits

Author SHA1 Message Date
Allan Odgaard
6f17fa5352 Checkin release notes for 2.0-rc.20 2018-12-02 18:24:17 +07:00
Allan Odgaard
95da575620 Do not include themes in the View menu when hideFromUser is true 2018-11-22 16:24:17 +07:00
Allan Odgaard
f244e223fd Rename a few menu items 2018-11-20 22:21:50 +07:00
Allan Odgaard
79172d552e Set controlSize on NSControl instead of its cell 2018-11-17 20:20:55 +07:00
Allan Odgaard
b9174f2e87 Checkin release notes for 2.0-rc.18 2018-11-15 11:31:14 +07:00
Allan Odgaard
8ba05fcf26 Checkin release notes for 2.0-rc.15 2018-11-02 16:35:26 +07:00
Allan Odgaard
1aa569cdf2 Draw a custom dash for removing find results and favorites
The NSImageNameRemoveTemplate looks bad in 10.14, and while there is some duplication in this commit, it’s so few lines that sharing this functionality would result in an increase of total number of lines.
2018-11-02 16:31:49 +07:00
Allan Odgaard
d0f9f652f9 Let text/background color depend on effective appearance in about window
I was unable to update the CSS from Objective-C (using evaluateJavaScript:) which is why the content has to request the styles from the exposed TextMate object.

It would be best if this was implicit (which I know is easy with WKWebView, so better just migrate to WKWebView than fight more with WebView).

Though it is probably better to have separate style sheets for light and dark, eventually we may even be able to rely on media queries for the appearance.
2018-11-02 16:14:09 +07:00
Allan Odgaard
56acb17990 Use full size content view for Open Quickly (⌘T) and friends
This make the content of the table view affect the background of the title/footer views.
2018-11-02 08:40:39 +07:00
Allan Odgaard
efd504e536 Make OakChooser windows inherit from NSWindowController 2018-11-02 08:30:55 +07:00
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
dc99a0f14b Use objectForInfoDictionaryKey: instead of localizedInfoDictionary 2018-07-30 22:37:35 +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
81b888d61e Checkin release notes for 2.0-rc.9 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
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
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
76cc25b2a6 Update copyright year to 2017 2017-03-10 12:22:35 +07:00