Commit Graph

4548 Commits

Author SHA1 Message Date
Allan Odgaard
15dceafd20 Provide save dialog with document’s file type for encoding settings
Previously the save dialog would update encoding settings solely based on the path, but the user could set different line endings or character set for a file type (rather than extension).
v2.0-beta.12.29
2016-11-01 20:42:59 +07:00
Allan Odgaard
e08ea3d291 Opening document with no newlines no longer default to LF
Since creating new untitled documents go through the same “open” code they would have their newlines set to LF, this is no longer the case, so the global (or targeted) lineEndings setting now decide what to use (when saving the document).

Currently creating an untitled document from a buffer (e.g. `echo foo|mate`) will do newline detection and thus will ignore user settings during save, if the buffer had any newlines during initialization.

This may or may not be desired. Probably it should do newline detection when the data is provided by the user, but not when it is based on “internal” data, for example a command with “New Document” as output location.
v2.0-beta.12.28
2016-11-01 19:57:37 +07:00
Allan Odgaard
9a525a7c24 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-01 19:00:39 +07:00
Allan Odgaard
9ec835e903 Remove ‘scmls’ target since it uses API that no longer exists v2.0-beta.12.27 2016-10-31 22:54:42 +07:00
Allan Odgaard
5fa7fad6f1 Do not copy extended attributes to build directory
Also exclude extended attributes when creating the tar archive, and copy symbolic links as links (instead of copying the file they reference).
2016-10-31 22:54:42 +07:00
Allan Odgaard
58815d45c1 Update build file generator
We no longer build frameworks as standalone targets (frameworks) but instead link it all together, which also means resources from “frameworks” will end up in the main bundle.

Currently the new build file generator does not create test targets and changing LN_FLAGS in frameworks is not inherited by the main target.
2016-10-31 22:54:42 +07:00
Allan Odgaard
24c83498cc Add “small” prefix to our custom document icons
A few of these names clash with our file type icons (Blank, C, JavaScript, Python, Ruby, and Text) so we need to change one of the sets if we want to build TextMate.app with a single Resources folder (instead of keeping resources with their respective frameworks).
2016-10-31 19:09:45 +07:00
Gabriele Farina
68c1aa6cd0 Fix broken mercurial link 2016-10-31 17:34:02 +07: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
577c663d4e Allow building OakDebug framework with NDEBUG defined 2016-10-31 17:30:30 +07:00
Allan Odgaard
8dbe66cdb1 Remove support for building targets with manual retain/release 2016-10-31 17:30:30 +07:00
Allan Odgaard
5f308732b7 Enable ARC for MGScopeBar
This is the original commit which I cherry picked 4213dcfbd3
2016-10-31 17:30:30 +07:00
Allan Odgaard
9d980a07df Remove NSPrincipalClass from framework bundles’s Info.plist
This is not something which is used anywhere and a few of the frameworks does not have a principal class.
2016-10-31 17:30:30 +07:00
Allan Odgaard
56610d4e89 Drop rules to skip running tests since they do not work 2016-10-31 17:30:30 +07:00
Allan Odgaard
95b8c58c4e Avoid typecasting our delegate 2016-10-24 02:21:29 +07:00
Allan Odgaard
7bbcc93c34 Update busy property to match (updated) status bar API
This would throw an exception when changing busy status from JavaScript.

This issue was introduced in f0a2a70998.

Closes textmate/latex.tmbundle#155.
2016-10-24 02:21:29 +07:00
Allan Odgaard
5befa321b9 Remove reference to obsolete target location 2016-10-24 02:21:29 +07:00
Allan Odgaard
ecfcce9ebb Remove unused build directive 2016-10-24 02:21:29 +07:00
Allan Odgaard
e4c408fcad Improve disambiguation of applications in the Open With menu
If there are multiple copies of the same app installed and the version numbers are the same, it will now include location information.
2016-10-24 02:21:29 +07:00
Allan Odgaard
1f0c52a8cf Let Open With use application URL instead of bundle identifier
It is not unlikely to have multiple versions of Xcode installed which all use the same bundle identifier, but we want to select a specific one for opening xib files etc.
2016-10-24 02:21:29 +07:00
Allan Odgaard
50b3da7788 Create Show Hidden Files checkbox in code instead of using a xib 2016-10-24 02:21:29 +07:00
Allan Odgaard
ebe6029137 Register defaults in +initialize instead of using dispatch_once 2016-10-24 02:21:29 +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
Allan Odgaard
cdf7cc0f15 Enable kSearchIgnoreOrderingKey for Open Quickly… (⌘T) 2016-10-22 23:27:16 +07:00
Allan Odgaard
c624424539 Add kSearchIgnoreOrderingKey for when enumerating documents at path
This will return all open documents before starting to scan the disk and should make functionality like Open Quickly… (⌘T) feel faster (if enabled).
2016-10-22 23:27:16 +07:00
Allan Odgaard
948d7106d8 Add openDocumentsInDirectory: method for all open documents in folder 2016-10-22 23:27:16 +07:00
Allan Odgaard
e669722ba2 Remove workaround for changed scandir prototype (10.8) 2016-10-22 23:27:15 +07:00
Allan Odgaard
05749c5c64 Document creation in background thread could fail
This is because we remove the document record in dealloc (unregister), but at that time, the reference in the record (for the path/inode) has already been zeroed, so if a document is created for the same path/inode after the reference has been zeroed but before the record has been unregistered, we would use the zeroed reference as the result from documentWithPath:.
2016-10-22 23:27:15 +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
Allan Odgaard
f78a3b2ce4 Use kCFAllocatorDefault instead of NULL 2016-10-22 16:29:19 +07:00
mathbunnyru
d6db299a8f Changed from NULL to nullptr in variadic templates for portability 2016-10-19 00:59:11 +03:00
Ronald Wampler
5fb4c6850e throw() → noexcept (C++11) 2016-10-18 23:06:49 +02:00
Ronald Wampler
4a7e774196 Use oak::random_shuffle instead of std::random_shuffle
The latter is deprecated in C++14 and will be removed in C++17
2016-10-18 23:06:49 +02:00
Ronald Wampler
a5323b4f77 Add oak::random_shuffle algorithm 2016-10-18 23:06:49 +02:00
Ronald Wampler
1f84a3d09f Add random header as a precompiled header 2016-10-18 23:06:49 +02:00
mathbunnyru
1b4adf29e1 Fixed memory leak 2016-10-18 23:06:49 +02:00
mathbunnyru
284b5a3896 Slight perfomance improvements 2016-10-18 23:06:48 +02:00
mathbunnyru
9632a8d804 Deleted unused variables 2016-10-18 23:06:48 +02:00
mathbunnyru
08ad760d5e static_cast instead of c-style cast 2016-10-18 23:06:48 +02:00
Allan Odgaard
5277a5a396 Use std::string’s compare function instead of find 2016-10-18 18:22:15 +02:00
Allan Odgaard
e2f8e0c188 Use std::string’s front function instead of find 2016-10-17 11:03:41 +02:00
Allan Odgaard
ee2aee21fa Use oak::has_prefix when comparing std::string against string literal 2016-10-17 11:03:41 +02:00
Allan Odgaard
182d4aa140 Add oak::has_prefix for comparing std::string with string literal 2016-10-17 11:03:41 +02:00
mathbunnyru
0b034f9a9d Use std::string’s compare to avoid searching beyond the prefix length 2016-10-17 10:50:18 +02:00
Allan Odgaard
26da9c7e15 Show “add license” titlebar buttons after one hour of use 2016-10-17 10:07:29 +02:00
Allan Odgaard
34db8d64ff Limit public API to the LicenseManager singleton 2016-10-17 10:07:29 +02:00
Allan Odgaard
5443b1b48f Add API to add a titlebar “add license” button 2016-10-17 10:07:29 +02:00