Commit Graph

256 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
ed532e552e Initialize Sparkle on application launch and add delegate methods 2013-01-23 15:23:15 -08:00
Corey Johnson & Nathan Sobo
d7137c980f Update Atom's info.plist to work with sparkle 2013-01-23 15:13:07 -08:00
Corey Johnson & Nathan Sobo
61e1effd28 Add Sparkle.framework and DSA key for speakeasy 2013-01-23 15:09:58 -08:00
Kevin Sawicki
a451a369e8 Use device color instead of calibrated 2013-01-23 08:28:44 -08:00
Kevin Sawicki
a9d3d010d9 Use executed-from argument when path is missing
This still allows atom to open its own source when
run from Xcode but will now use the current working
directory when launched from the command line with
no path argument.

Closes #139
2013-01-22 15:58:11 -08:00
Kevin Sawicki & Nathan Sobo
d09610cbcd Upgrade CEF 3 to branch 1364, r1050
This adds support for accessing native extensions in web workers, though it may
not work quite how we need it to just yet. Figured we'd bank an upgrade anyway.
2013-01-21 18:05:39 -07:00
Kevin Sawicki
7f8a64b69c Show window only after root view is attached
This prevents a white flicker when the page
starts to load.
2013-01-17 16:50:25 -08:00
Kevin Sawicki
12fdf07137 💄 2013-01-17 16:50:25 -08:00
Kevin Sawicki & Nathan Sobo
2fb27bb2dd Store pathToOpen using new atom.set/getWindowState api
When you use `setWindowState`, your data is saved across refreshes.
You can only store state that can be serialized to JSON.
2013-01-10 18:04:22 -07:00
Kevin Sawicki & Nathan Sobo
caffda6027 Add Git.destroy() that frees native repository 2013-01-09 17:07:29 -08:00
Kevin Sawicki
ba614d5549 Throw error from GitRepository constructor 2013-01-09 11:53:13 -08:00
Kevin Sawicki
6f5e29d48e Throw exception when repository fails to open
Removes need to check if the repository is valid before
each native API call and also removes calling into the
native-side if no repository can be opened for the project
page.
2013-01-08 21:15:41 -08:00
Kevin Sawicki
c4f82c8db5 Update libgit2 to commit 11fccddcb5
Closes #122
2013-01-08 17:43:30 -08:00
Kevin Sawicki
fffba45b50 💄 2013-01-07 19:36:13 -08:00
Kevin Sawicki
146ae9d776 Refresh the Git index when the window gains focus
Closes #121
2013-01-07 17:29:48 -08:00
Kevin Sawicki
1535930521 Show existing hidden window when re-opening
Previously if Atom was opened to an already opened
path but that window was hidden then a new window
would be opened when instead the existing window
should be unhidden.
2013-01-07 16:58:27 -08:00
Corey Johnson
60e295e7f3 Merge remote-tracking branch 'origin/hide-apps' 2013-01-07 08:33:21 -08:00
Kevin Sawicki
df309c80dc Use switch statement for line types 2013-01-06 11:04:59 -08:00
Kevin Sawicki
64afd51ca4 Use constant for submodule file mode 2013-01-06 09:59:57 -08:00
Kevin Sawicki
a300146f2a Display submodule icon in tree-view 2013-01-06 09:52:53 -08:00
Kevin Sawicki
b855799d96 Return null unless exactly 1 delta exists 2013-01-04 14:59:41 -08:00
Kevin Sawicki
f1efc9ce60 Upgrade to latest libgit2 development branch 2013-01-04 14:57:14 -08:00
Nathan Sobo
cb4d2f63ad Log errno when path watcher fails to open an fd 2013-01-02 03:44:25 -07:00
Nathan Sobo
f0ee7a06f7 Log a better error upon failing to open an fd in path watcher
I've been struggling with some intermittent failures, so I'm hoping the
code returned from `open` might shed some light on the issue.
2013-01-02 03:18:50 -07:00
Kevin Sawicki
4be8805c37 Add placeholder file icon 2012-12-28 15:39:19 -08:00
Kevin Sawicki
d328db65f2 Free path after generating diff list 2012-12-27 10:54:06 -08:00
Kevin Sawicki
a561d5efab Only create diff options when necessary 2012-12-27 10:53:13 -08:00
Kevin Sawicki
d3ed0fca27 Free reference before returning result 2012-12-27 10:51:35 -08:00
Kevin Sawicki
219aaca0f5 Show diff stat in status bar
Include the number of lines added and removed for
new and modified files
2012-12-27 10:41:29 -08:00
Corey Johnson
747b2b6bad Use an offensive icon for Atom 2012-12-27 10:15:42 -08:00
Kevin Sawicki
9f6d1f987f Add initial support for replacing anchors 2012-12-21 13:22:08 -08:00
Kevin Sawicki
39f5ce6087 Activate running Atom when invoked with no path 2012-12-20 13:11:01 -08:00
Kevin Sawicki
275f6f2df5 💄 2012-12-19 17:25:20 -08:00
Kevin Sawicki
cdac5e0763 Read output for terminate handler off main thread
Follow on to commit 1bd0cc4152
2012-12-19 17:25:19 -08:00
Corey Johnson
bd3dfba1e5 Atom will work as your $EDITOR.
Set EDITOR='atom --wait'
2012-12-19 17:15:17 -08:00
Kevin Sawicki
c40ad87a1e Remove replacing spaces with %20 when encoding URL params
This appears to be handled by stringByAddingPercentEscapesUsingEncoding
and so explicitly doing it causes a space to be encoded to %2520 instead
of %20
2012-12-19 15:37:41 -08:00
Kevin Sawicki
75b9e7cbb1 Replace & with %26 when encoding URL params
This is not handled by stringByAddingPercentEscapesUsingEncoding
2012-12-19 15:37:34 -08:00
Kevin Sawicki
b83a4ef5c0 Grammar tweaks 2012-12-19 13:42:15 -08:00
Kevin Sawicki
5ce59314fc Use cleaner iterator over filenames array 2012-12-19 12:42:42 -08:00
Kevin Sawicki
491ecb145f Remove code handled in standardizePathToOpen 2012-12-19 12:10:55 -08:00
Corey Johnson & Nathan Sobo
1bd0cc4152 ChildProcess can handle commands that return large amounts of data.
When a command returned a large amount of data, it was blocking on the stderr  callback when `[fileHandle availableData]` was called. From what I can tell, this is because stderr was being called with a zero-length string.

This was fixed when `[fileHandle availableData]` was moved to run inside the NSTask thread (instead of on the main thread). It now returns a zero-length string rather than blocking forever.

An unresolved question is why stderr is being called with zero-length strings.
2012-12-19 11:47:50 -08:00
Kevin Sawicki
ea088db19d Open default path from applicationDidFinishLaunching
This is called after openFiles and so the default path
will open be opened if other explicit files were not
opened such as by dropping onto the dock icon
2012-12-19 11:25:43 -08:00
Kevin Sawicki
17976a19b5 Use simpler windows iterator 2012-12-19 11:00:43 -08:00
Kevin Sawicki
d674aa6a39 Open folders and plain text files dropped dock icon
Closes #103
2012-12-19 10:58:30 -08:00
Kevin Sawicki
35f362df1d Bring window to front when opening already opened path
Closes #104
2012-12-19 09:32:06 -08:00
Kevin Sawicki
d2d37e1d91 💄 2012-12-18 19:37:40 -08:00
Nathan Sobo
acc0503684 Merge remote-tracking branch 'origin/master' into config
Conflicts:
	src/app/keymap.coffee
	src/extensions/outline-view/src/keymap.coffee
	src/extensions/outline-view/src/tag-reader.coffee
	src/packages/fuzzy-finder/spec/fuzzy-finder-spec.coffee
	src/packages/fuzzy-finder/src/fuzzy-finder.coffee
2012-12-18 20:32:05 -07:00
Kevin Sawicki
025122d642 Add project outline view with all tags
Opened via meta-J and limited to a maximum
of 10 tags similar to fuzzy-finder.
2012-12-17 16:37:27 -08:00
Kevin Sawicki
5f400303ac Add ref counting to Git class 2012-12-13 15:23:55 -08:00
Kevin Sawicki
1686c97244 Add initial support for jump to declaration 2012-12-13 15:22:23 -08:00