Commit Graph

1495 Commits

Author SHA1 Message Date
Allan Odgaard
b8c81b4acf Fix software updater to not skip checking
Initially ‘downloadWindow’ was a property that was nil until we showed the download window, but now that the download window is re-used for downloading newer versions (incase a newer version appear before user does the “Install & Relaunch”) the fetching the property will return the window (and create it if not already created).
v2.0-alpha.9409
2013-03-28 22:01:40 +01:00
Allan Odgaard
6a9448afc0 Checkin release notes v2.0-alpha.9407 2013-03-27 17:26:36 +01:00
Allan Odgaard
1aedd95ef5 Find dialog actions are now recorded (for replay)
Presently though replaying “Replace and Find” is not implemented.
2013-03-27 17:19:10 +01:00
Allan Odgaard
b280e776b3 Make OakFindServerProtocol conform to NSObject 2013-03-27 17:06:27 +01:00
Allan Odgaard
b0726652db Record find actions via primary selector
Still lack recording for Find dialog actions.
2013-03-27 16:27:54 +01:00
Allan Odgaard
26d3029ba0 Treat bundle items without path as modified
This allows us to create an in-memory bundle item, reveal in bundle editor, and have the bundle editor warn if the user doesn’t save.
2013-03-27 14:32:26 +01:00
Allan Odgaard
a9d492ab58 Add Edit → Macros → Save Macro… (⌃⌘M) 2013-03-27 14:32:26 +01:00
Allan Odgaard
3dc05d9fc9 Implement Save Macro functionality
Closes #459.
2013-03-27 14:32:22 +01:00
Allan Odgaard
8358ffb578 Add “find bundle for new items” API
We need this when installing standalone bundle items, saving macros, and when creating items in the bundle editor without a bundle selected.

The user experience of this code is however rather poor in that you can’t actually crete new bundles, the dialog text is not specific, and the logic for what bundle to preselect can be improved (prefer previously created bundle falling back on a local bundle, if any).
2013-03-27 14:15:54 +01:00
Allan Odgaard
8888865f2c Use initializer list constructor for std::map (C++11) 2013-03-27 13:41:07 +01:00
Allan Odgaard
17bdfd0ad7 Revert "Space can be used instead of slash in file chooser (⌘T)"
Several people dislike the change (see issue #893) and the commit didn’t introduce new functionality per se: full path searching is still available when explicitly typing a slash.

This reverts commit 619c19e8ed.
2013-03-27 11:36:12 +01:00
Allan Odgaard
9af77ef3ab Wrong path was rescanned when changing bundles 2013-03-26 21:18:18 +01:00
Allan Odgaard
d54bf55dc0 Don’t show “pop-out” animation for empty rects
Fixes #833.
2013-03-26 17:54:59 +01:00
Allan Odgaard
4937b51d02 Show warning when undo deletes non-empty folder
Closes issue #782.
2013-03-26 17:41:51 +01:00
Allan Odgaard
fe487c1a66 Fix typo in release notes 2013-03-26 16:49:50 +01:00
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