Commit Graph

720 Commits

Author SHA1 Message Date
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
Allan Odgaard
8785f0e807 Include uninstalled bundles when asking for dependents 2016-12-10 12:43:08 +07:00
Allan Odgaard
cd0773c55f Checkin release notes for 2.0-rc.5 2016-12-07 09:51:38 +07:00
Allan Odgaard
0950fdfc74 Checkin release notes for 2.0-rc.4 2016-12-03 21:43:04 +07:00
Allan Odgaard
6263e7ff54 Checkin release notes for 2.0-rc.1 2016-11-13 11:31:33 +07:00
Allan Odgaard
4e2625189b Remove beta release disclaimer 2016-11-11 22:07:20 +07:00
Allan Odgaard
d2cfbb2227 Remove expiration timer 2016-11-11 22:07:20 +07:00
Allan Odgaard
d05c477ede Copy/paste linker settings from license → TextMate target
This is currently required because linker settings are not merged.
2016-11-06 17:44:26 +07:00
Allan Odgaard
f47f8341fa Keep -dead_strip_dylibs linker setting for the QuickLook target 2016-11-06 16:49:47 +07:00
Allan Odgaard
2f7d55dfb8 Remove use of -rpath build setting
We no longer dynamically load any (custom) libraries or frameworks, so this setting is no longer needed.
2016-11-06 16:49:47 +07:00
Allan Odgaard
f28faeafcb Do not pass bundle items by reference
When executing a bundle item without any default document open, we may first “load” the document, which is done via a callback (for when the document is loaded), and at that time, the bundle item reference has become invalid.
2016-11-04 19:22:39 +07:00
Allan Odgaard
49556fddc4 Do not send initWithSuiteName: to user defaults on 10.8
This method was not available until 10.9. For 10.8 we forego migrating pre-release user defaults.
2016-11-02 23:02:18 +07:00
Allan Odgaard
8c39304e66 Remove ‘scmls’ target since it uses API that no longer exists 2016-11-02 23:02:18 +07:00
René Schwaiger
e8c0488f24 Specify line endings for ABNF grammars
The current [RFC][] document that describes [ABNF][] specifies in
section “2.2. Rule Form”, that ABNF grammars use CRLF (Carriage Return
+ Line Feed) as rule/line separator. We therefore set the default line
ending for the scope `source.abnf` to `"\r\n"`.

[ABNF]: https://en.wikipedia.org/wiki/Augmented_Backus–Naur_form
[RFC]: https://tools.ietf.org/html/rfc5234
2016-11-02 14:57:52 +01:00
mathbunnyru
926f702828 Use CFPropertyListWrite as CFPropertyListWriteToStream is deprecated 2016-10-31 17:30:30 +07:00
Allan Odgaard
2858c3a47c Fix syntax error (presumably allowed by older clang) 2016-10-31 17:30:30 +07:00
Allan Odgaard
efecda7526 Reuse variables already initialized 2016-10-24 02:21:29 +07:00
Allan Odgaard
876c1c324a Checkin release notes for 2.0-beta.12.26 2016-10-24 02:21:28 +07:00
Allan Odgaard
204c735079 Change bundle identifier to com.macromates.TextMate 2016-10-23 00:21:09 +07:00
mathbunnyru
440414f96c Use nullptr in all C++ files instead of NULL
This brings us a bit of extra type safety, for example where an integer is expected, nullptr should be disallowed by the compiler (unlike NULL).
2016-10-22 21:40:14 +07:00