184 Commits

Author SHA1 Message Date
Allan Odgaard
ba1c99f7bc build: Introduce CP_InfoPlist and move Info.plist files out of resources
Previously we would automatically pick up an Info.plist file copied using any of the CP_* keys, and both move it to the correct location (when belonging to target built) or ignore it, if we were copying it from an imported target.

To simplify the logic in the build system, it is however better to be explicit about this, also because we could actually want an Info.plist file among our copied files.
2021-01-24 10:38:54 +01:00
Allan Odgaard
978c5a32a2 build: Expand variables in InfoPlist.strings files
We previously did this for InfoPlist.vstrings files, but the changed extension was only a temporary workaround for not allowing multiple filters to run on a build input.
2021-01-17 14:06:36 +01:00
Allan Odgaard
4606fdefff Create default bundles archive in ninja file and store in build dir
Previously we would download and archive the default bundles as part of ./configure and place the result in our source directory, this however both pollutes the source directory with generated files, but also had the ./configure step actually do a partial build, since we need to build the ‘bl’ executable to download bundles.
2021-01-16 19:14:22 +01:00
Michael Sheets
c90a9bb329 Prevent UTTypeConformsTo self-reference
Prevent public.shell-script from conforming to itself creating a loop, should conform to public.script.

Reported by Thomas Tempelmann.
2021-01-16 09:49:53 -06:00
Allan Odgaard
b24eea89a5 Introduce ${YEAR} variable in our InfoPlist.strings
This saves us from having to update the copyright each year.
2021-01-12 10:43:53 +01:00
Allan Odgaard
05cf51d42e Move software update signing key to Info.plist
This simplifies usage of the software update singleton and still allows to use it in other projects that have different signing key(s).
2020-05-22 21:48:09 +07:00
Allan Odgaard
a7e23d2722 Expose automatic theme switching in View → Themes submenu
Theme is now stored only with OakTextView (observed by OakDocumentView) and the “global” setting is stored in user defaults (not Global.tmProperties), though it is still possible to override theme on a file-by-file basis via .tm_properties files.
2020-05-14 15:43:24 +07:00
Allan Odgaard
611431bd80 Use WKWebView in the about window
To get scroll content behind title/toolbar we need to set NSWindowStyleMaskFullSizeContentView which appears to have been inferred with the old (deprecated) WebView.
2020-05-13 18:49:55 +07:00
Allan Odgaard
90b8d1ca5b Update copyright for 2020 2020-04-18 15:22:13 +07:00
Allan Odgaard
8f3f3d9d16 Update deployment version for xibs to 10.12
This was done using search and replace. Presumably it should be done in Xcode so that it can adjust the xib for the new deployment target, otherwise what is the point of storing deployment version in the xib and provide it as a command line argument to the xib compiler as well (only to get a warning if the versions do not match)?
2019-07-07 18:03:30 +02:00
Allan Odgaard
9f6781ec3f Get rid of the APP_NAME variable 2019-06-26 23:32:54 +02:00
Allan Odgaard
db706b8e99 Add NSAppleEventsUsageDescription 2019-06-26 13:21:11 +02:00
Allan Odgaard
d3bce0e5ea Bump copyright year to 2019 2019-02-21 14:46:19 +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
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
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
Ronald Wampler
44a7e580d9 Update deployment target to 10.9 2017-06-09 15:33:18 +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
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
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
Allan Odgaard
204c735079 Change bundle identifier to com.macromates.TextMate 2016-10-23 00:21:09 +07:00
Allan Odgaard
3ec7b05473 Do not include user’s email in crash reports
Inconveniencing all users with the “TextMate wants to access your contacts” dialog is not worth having the ability to contact users about their crash reports.
2016-10-07 10:02:58 +02:00
Allan Odgaard
fbc2e5cbda Remove unnecessary settings from Default.tmProperties 2016-10-01 09:03:26 +02:00
Allan Odgaard
24671d0514 Change Check for Updates to Check for Test Builds when holding option 2016-09-27 21:49:32 +02:00
Allan Odgaard
b5d897315c Add ${«var»:/titlecase} as alias for ${«var»:/capitalize} 2016-09-25 13:08:21 +02:00
Allan Odgaard
fea5aef025 Fix typo in help page 2016-09-25 13:08:21 +02:00
Allan Odgaard
6db5ac8de3 Rename performCloseOtherTabs: to performCloseOtherTabsXYZ:
Starting with macOS 10.12 the NSWindow class will swallow this method, even if we set NSWindow.allowsAutomaticWindowTabbing = NO.
2016-09-21 20:39:41 +02:00
Jacob Bandes-Storch
7c325ff90b Add “Check for Updates” to the app menu
Another common practice among Mac apps.
2016-09-10 02:11:35 -07:00
Allan Odgaard
b0c77ff656 Fix minor whitespace issues 2016-08-29 12:44:15 +02:00
Allan Odgaard
cb41e89736 Simplify file patterns in default properties file 2016-07-14 12:22:44 +02:00
Allan Odgaard
4bdd217455 Change Quick Open… menu item to Open Quickly…
Also rename Recent Projects… to Open Recent Project… so that all four menu items start with “Open” and two of them with “Open Recent”.
2016-07-07 09:34:08 +02:00
Allan Odgaard
95f265574f Move New File and New Folder menu items to File Browser menu 2016-07-07 09:34:08 +02:00
Allan Odgaard
0bb275b4f0 Rely on the system’s default monospaced font rather than Menlo
Furthermore, if the user changes to the default monospaced font then we do not store its name in settings (given that it’s default).
2016-07-05 12:13:06 +02:00
Allan Odgaard
7dd19c0c0e Update deployment target to 10.8 for all xib files 2016-06-22 20:43:28 +02:00
Allan Odgaard
d6993bb476 Remove xib from binary file identification glob 2016-06-22 19:45:24 +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
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
Ronald Wampler
976a79468b Prefix some of the menu items in Navigate with "Jump to"
The Navigate menu now contains a mixture of items with prefixes "Jump to", "Go to" or none at all. The "Go to" prefix is especially inconsistent since we have already have a dedicate "Go" item in the Main menu bar. For consistency, change them to use the "Jump to" prefix.

The commit also renames the appropriate dialog boxes and updates some documentation to refer to the new names.
2016-06-14 20:55:42 +02:00
Ronald Wampler
accb60033e Move "Jump to Selection" to the Navigate menu
Most Apple applications have this item placed under Edit → Find; however, it fits more naturally in our Navigate menu.
2016-06-14 20:55:13 +02:00
Allan Odgaard
a198d3c25b Rename Open Favorites… menu item to Recent Projects…
Also use ellipsis glyph for the Open… menu item.
2016-05-29 21:17:31 +02:00
Josh Bernitt
263da53c81 Optionally draw a horizontal line for every tab stop
This can be toggled using View → Show/Hide Indent Guides or controlled per file type via the `showIndentGuides` setting in `.tm_properties`.
2016-05-02 19:58:01 +02:00
Allan Odgaard
70d7587967 Change Jump to Next/Previous Mark shortcuts to F3/⇧F3
This is consistent with Next/Previous Bookmark shortcuts bound to F2/⇧F2.

The problem with ⌘> and ⌘< is that these keys are used to cycle through windows on some keyboard layouts.

Discussion at issue #1316.
2016-04-18 20:17:21 +07:00
Ronald Wampler
04af5fa295 Add menu items to allow navigating to arbitrary marks 2016-02-25 13:20:10 +07:00