Commit Graph

1451 Commits

Author SHA1 Message Date
Allan Odgaard
4fcf2a9d5a Checkin release notes v2.0-alpha.9403 2013-03-21 23:33:09 +01:00
Allan Odgaard
da117b4b8d Disable custom icons for links to folders
For example a symbolic link like ~/.config (pointing to a folder) would previously get the custom icon for config files. Now it gets a folder icon (with a link badge).
2013-03-21 22:45:25 +01:00
Jacob Bandes-Storch
37e98655ec Implement filter through command
Closes #131
2013-03-21 22:12:08 +01:00
Allan Odgaard
d021d97b43 WIP: Filter through command 2013-03-21 14:39:48 +01:00
Allan Odgaard
ba2130f0c8 Don’t change signal mask in library code
This belongs in main(), where it is already being set.

It might however be necessary to set it when running tests, although none of the tests seems to fail w/o this.
2013-03-21 14:39:35 +01:00
Allan Odgaard
fbec3539c6 Use io::spawn for launching tar 2013-03-21 14:39:34 +01:00
Allan Odgaard
8ce1c48fe7 Introduce io::spawn API
This is a wrapper for posix_spawn that sets up pipes for stdin, out, and error.
2013-03-21 14:39:34 +01:00
Allan Odgaard
2ca999976e Dialog: Improve tooltip positioning for multiple screens 2013-03-21 11:45:08 +01:00
Allan Odgaard
a6fca57d6a Don’t set TM_SCM_BRANCH when there is no branch 2013-03-21 11:45:08 +01:00
Jacob Bandes-Storch
fa4d14732b Improve tooltip positioning for multiple screens 2013-03-21 11:41:31 +01:00
Jacob Bandes-Storch
65eb9c271f Clean up formatting of selection string 2013-03-21 11:41:31 +01:00
Jacob Bandes-Storch
c6cf087115 Use divider image from status bars for file browser header 2013-03-21 05:00:53 -05:00
Jacob Bandes-Storch
98a7cd1e08 Add an etched effect to the status/action bar dividers 2013-03-21 04:59:14 -05:00
Allan Odgaard
4188f35fa4 Update README 2013-03-20 14:39:52 +01:00
Allan Odgaard
ca0a839247 Make helper data type local 2013-03-20 13:54:16 +01:00
Allan Odgaard
d0db9d9554 Checkin release notes v2.0-alpha.9401 2013-03-20 11:33:15 +01:00
Allan Odgaard
2c2ef93521 Don’t keep mutex locked longer than required 2013-03-20 11:30:41 +01:00
Allan Odgaard
42cd2f93df Make fs::tree_t member data private 2013-03-20 11:30:41 +01:00
Allan Odgaard
3ceefce2e4 Improve renaming files with hidden extension
We now clear the “hidden extension” flag if the user manually adds it.

We also ensure the hidden extension is not ignored by comparing base name with display name. The flag is ignored under certain circumstances.

Comparing base name with display name alone may give a false positive for localized file names.
2013-03-20 11:30:41 +01:00
Allan Odgaard
149d335335 Setup exception handler around editor_t::perform
The implementation of kPaste seems to generate an exception for some users, but I don’t know exactly why, so this should provide some better diagnostics info.
2013-03-20 11:30:41 +01:00
Allan Odgaard
2c85ef9ac2 Move crash reporter info to utility.h 2013-03-20 11:30:40 +01:00
Allan Odgaard
e1e0e5a8a5 Re-use download window if already visible
This is useful if a new update arrives after TextMate has downloaded the previous update but before the user relaunched TextMate.

Fixes #909.
2013-03-19 16:24:56 +01:00
Allan Odgaard
74f22623e9 Don’t disable NSQuitAlwaysKeepsWindows
This was disabled in an attempt of avoiding the “do you want to open saved documents from last session?” which appear after a crash.

It doesn’t seem to have any effect though, so just noise in the code.
2013-03-19 15:51:08 +01:00
Allan Odgaard
769831f629 Use Objective-C literals 2013-03-19 15:49:18 +01:00
Allan Odgaard
bd34c84253 Remove support for disabling file browser status updating
This preference was introduced as a workaround for poor performance when displaying large folders, this however should no longer be an issue.
2013-03-19 15:02:32 +01:00
Allan Odgaard
d68e6a0499 Dragging last tab from window w/o file browser will close window
Closes #904.
2013-03-19 14:56:23 +01:00
Allan Odgaard
281bccd969 Remove outdated TODO 2013-03-19 14:56:23 +01:00
Allan Odgaard
957d6d018d Don’t treat directories as executables
Related to issue #907.
2013-03-19 14:56:22 +01:00
Allan Odgaard
beb5348e32 Don’t abort when failing to run subcommand
Fixes #907.
2013-03-19 14:56:22 +01:00
Allan Odgaard
b3c9276f9c Find dsym archive using new naming convention
We gracefully fallback on the old naming convention.
2013-03-19 14:56:22 +01:00
Allan Odgaard
dad6c4e629 Checkin release notes v2.0-alpha.9399 2013-03-18 14:38:32 +01:00
Allan Odgaard
21bf41b0c6 fixup! No longer support deleted items in bundle’s info.plist
We still need to cache the ‘deleted’ key since delta items use this to indicate keys deleted in the local version.
2013-03-18 14:34:08 +01:00
Allan Odgaard
916725b0d2 Use constant for version of property cache format 2013-03-18 14:34:08 +01:00
Allan Odgaard
b96a4975e6 Use array for cached settings names
We previously used a dictionary so that initializing a bundle item object wouldn’t need to know the difference between a full property list and a cached subset. Technically though the previous code had an implicit assertion on the bundle item not being able to rely on the settings values being useful, which is now gone.

The main advantage though is a smaller and more correct cache format.
2013-03-18 14:34:07 +01:00
Allan Odgaard
12e5693361 Delete cached bundle items when changed on disk
Effectively it doesn’t change much as cached items are fetched with a file date, but in theory it should now be possible to omit that date (if we can trust that fs-events has always notified us about disk changes).
2013-03-18 14:34:07 +01:00
Allan Odgaard
f4f0e073d3 Use ‘alpha’ prefix instead of ‘r’ 2013-03-17 17:08:54 +01:00
Allan Odgaard
cabd099830 Checkin release notes v2.0-alpha.9397 2013-03-17 16:46:43 +01:00
Allan Odgaard
f0fd87bf66 Only use cache file if at version 1
Since it’s not unlikely that a user will downgrade from a nightly build, we should be prepared to see cache files using a newer (incompatible) file format.
2013-03-17 16:03:11 +01:00
Allan Odgaard
062f78118a Don’t (re)scan when creating fs::node_t
Also make it optional to provide a map pointer (for collecting changes) when rescanning.
2013-03-17 16:03:11 +01:00
Allan Odgaard
04142cbf69 Bundle loading no longer done by static member function 2013-03-17 16:03:11 +01:00
Allan Odgaard
7d6763eee7 Avoid member data access when constructing bundles::item_t 2013-03-17 16:03:11 +01:00
Allan Odgaard
594bfcb29d No longer support deleted items in bundle’s info.plist
Recording that an item is deleted in the bundle’s info.plist is necessary for TextMate 1.x because it merges all installed bundles, so if the user has a local version, he will still see items from the default version, unless these are indicated to be deleted in the local version.

With 2.0 only delta bundles get merged with a less-local bundle, and when deleting a default item, a delta item is written with the ‘isDeleted’ key set to true.
2013-03-17 16:03:10 +01:00
Allan Odgaard
f888376e05 Move bundle loading to own file 2013-03-17 16:02:30 +01:00
Allan Odgaard
0f9b15b916 Show error when property list fails to parse 2013-03-17 15:44:07 +01:00
Allan Odgaard
c6375e2ed9 Add success/failure to plist::parse_ascii API 2013-03-17 15:44:07 +01:00
Allan Odgaard
5dcbbde817 Let user know if saving in bundle editor fails 2013-03-17 15:44:07 +01:00
Allan Odgaard
0d2af1fbfa Don’t use posix_spawnattr_setpgroup
This appears to fail in rare circumstances and there is no reason why the io::exec code sets up a process group, so easier to just remove this.
2013-03-17 15:44:07 +01:00
Allan Odgaard
dfee671b6a Don’t use POSIX_SPAWN_CLOEXEC_DEFAULT on 10.7
Using this flag on 10.7.5 seems to cause a kernel panic.

Fixes #896.
2013-03-17 15:44:06 +01:00
Allan Odgaard
398e55cdbe Add helper functions to get OS version
We need this in a few places and while calling Gestalt() isn’t that much code, that function is deprecated in 10.8 and the alternative is a lot more code, so we don’t want to repeat that once we update the code.
2013-03-17 15:44:06 +01:00
Allan Odgaard
45dc49eb29 Retire compiler workaround
Previously we could get a compiler error when using std::map<std::string, std::string>() as a default argument.
2013-03-16 17:49:49 +01:00