Commit Graph

1480 Commits

Author SHA1 Message Date
Allan Odgaard
f689aac0db Checkin release notes v2.0-alpha.9405 2013-03-26 16:41:54 +01:00
Allan Odgaard
9c37d61737 Show alert for unimplemented functionality 2013-03-26 16:21:52 +01:00
Allan Odgaard
c1b8cc5454 Force index rescan after bundle (item) install 2013-03-26 16:11:20 +01:00
Allan Odgaard
bffa2eef10 Move bundle installing to BundlesManager 2013-03-26 16:00:53 +01:00
Allan Odgaard
15a5527986 Reset find dialog state when re-opening it
Previously doing a Find All in Document would stay with Find All as the default button, even if closed and re-opened.

We also clear the status text, this isn’t always desirable, but I find it more weird when the dialog shows an outdated status message.
2013-03-26 14:02:40 +01:00
Allan Odgaard
40a9cb4e40 Limit height of Find dialog text fields
These would previously always be the height of the content, now they are limited to roughly 13 lines (225 “pixels”).
2013-03-26 13:51:41 +01:00
Allan Odgaard
7b115dc212 Always show tool tip when command fails 2013-03-26 13:46:36 +01:00
Allan Odgaard
099f7c60ea Improve bundles index code
By making it part of the BundlesManager singleton we can work with the event loop to coalesce reloads and delay saving the index.
2013-03-25 22:56:49 +01:00
Allan Odgaard
ac23c9538e Bind to updated BundlesManager binding properties 2013-03-25 20:31:48 +01:00
Allan Odgaard
5d8f4998fd Update BundlesManager binding properties 2013-03-25 19:46:28 +01:00
Allan Odgaard
97eec0dc9a Force bundle reindex after install
Fixes #85.
2013-03-25 17:57:40 +01:00
Allan Odgaard
2969af3cbd Provisional API for forcing reload of bundles 2013-03-25 17:54:19 +01:00
Allan Odgaard
5769b16780 Rework bundle install code
We now use dispatch queues for updating bundles and bundle sources.

The determinate progress indicator is presently gone and so is the detailed info about which dependent bundles are being installed.
2013-03-25 17:31:03 +01:00
Allan Odgaard
a24858e63c Store bundle index in ~/Library/Caches 2013-03-25 16:41:58 +01:00
Allan Odgaard
258db64b8f Remove old bundle loading code 2013-03-25 13:22:54 +01:00
Allan Odgaard
82c30b77db Don’t load bundles from layout test
Ideally we would have the BundlesManager load the bundles but since tests don’t have their own framework requirements, this would require that the layout framework is setup to depend on the BundlesManager framework.
2013-03-25 13:21:53 +01:00
Allan Odgaard
1a4fd97208 Add missing include 2013-03-25 13:20:34 +01:00
Allan Odgaard
d6360426e3 Avoid function-local static storage for std::map
This gives the venerable warning about map::~map being a weak reference or something along those lines.
2013-03-25 13:19:38 +01:00
Allan Odgaard
d1a6c854a1 Add API to control bundle auto-updating 2013-03-25 13:04:40 +01:00
Allan Odgaard
75234faaa1 Minor style changes 2013-03-25 12:54:21 +01:00
Allan Odgaard
37590bd3fd Switch to new bundle loading code 2013-03-25 12:48:39 +01:00
Allan Odgaard
14ff3cf047 Add new bundle loading code
Some shortcomings:
1. Cache format is more wasteful (and kept in memory)
2. Device UUID and inode of root folder is not considered when replaying fs-events (we should do a recursive rescan if either changes).

On the bright side, the code better separates loading bundles from disk, and maintaining a disk cache updated via fs-events. This should make it easier to force cache invalidation when updating bundles from within TextMate (so we do not rely on fs-events) and to move bundle loading away from the main thread.

Additionally, by moving the bundle loading code to the bundle manager singleton, we’re introducing a single source of knowledge about “bundles on disk”, regardless of wether they are managed or not.
2013-03-25 12:16:56 +01:00
Allan Odgaard
950cb8b27a Only lock mutex for critical code 2013-03-25 10:25:59 +01:00
Allan Odgaard
f7ad857385 Show current selection string in Go to Line dialog 2013-03-25 10:25:59 +01:00
Joachim Mårtensson
eaf2d97141 Using ‘$’ in scope selector will anchor to end of content scope
The content scope is the portion of the scope created while parsing the document content, unlike scope attributes, document, project, SCM, and dynamic scopes (appended to the content scope).
2013-03-25 10:22:27 +01:00
Allan Odgaard
787ae1cba8 Only “force” selection search when document window is key
Since the find dialog itself will call orderFrontFindPanel: when selecting the first item in the “in” pop-up (this is required to have it show ⌘F as key equivalent) we need to avoid changing search scope to “selection” for this case.
2013-03-22 12:39:44 +01:00
Michael Sheets
17e67642b8 Re-align Find/Replace labels due the larger font size 2013-03-22 12:31:36 +01:00
Michael Sheets
1af89c97a1 Use OakCreateSmallLabel for the status text
This treats the label as a small size control.
2013-03-22 12:31:36 +01:00
Michael Sheets
9da5b345d3 Use the systemFontSize for labels, add function for small controls
Before labelFontSize was used for all controls, as the label size should match the control size we need to have different functions for each control size.
2013-03-22 12:31:36 +01:00
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