Commit Graph

77 Commits

Author SHA1 Message Date
Kevin Sawicki
31d872fbfe Add atom.openWindow() 2013-06-28 04:39:26 -06:00
Cheng Zhao
45ce8e1d63 Ask for close confirmation in beforeunload handler. 2013-06-27 18:39:29 +08:00
probablycorey
a4217909c0 Don't check for updates in background if version is a sha
If the version is a 7 char sha, then we assume it is a local build.
2013-06-25 09:54:03 -07:00
Kevin Sawicki & Nathan Sobo
eab21e19f6 💄 2013-06-20 16:13:42 -07:00
Kevin Sawicki & Nathan Sobo
266548d75c Implement dev window opening with meta-O 2013-06-20 16:12:11 -07:00
probablycorey
d8ba422178 Replace global.homeDir with app.getHomeDir() 2013-06-19 09:33:34 -07:00
Cheng Zhao
95f43917a4 Use @resourcePath when resource path of specs doesn't exist.
People may put atom under places other than ~/github/atom and wants to
run specs.
2013-06-19 14:01:24 +08:00
Kevin Sawicki
6bcd6240ce Only override resource path if running specs from menu
Previously if the specs were being run via the --test command line
flag then the resource path specified would be overridden and
~/github/atom would be used instead which was causing CI to fail
since it specified a custom resource path at a different location.
2013-06-15 20:07:16 -07:00
Kevin Sawicki
6dc2db25da Add Zoom to Window menu 2013-06-14 11:47:12 -07:00
Kevin Sawicki
7d33e1302a Doc what unicode characters render to 2013-06-14 11:47:12 -07:00
Corey Johnson & Kevin Sawicki
2edb5b5496 Setup node path in Atom Window.
This lets windows run code from different resource paths.
2013-06-14 10:01:23 -07:00
probablycorey
3ba7d68d4a Add global.homeDir
Ick, this should be handled by an npm or hopefully a patch to Node.
2013-06-14 09:56:01 -07:00
probablycorey
da58bd5609 Always use ~/github/atom as the resource path when running specs 2013-06-14 09:27:54 -07:00
Kevin Sawicki
a98308a7a4 Add -n option to always open a new window 2013-06-11 16:15:04 -07:00
Corey Johnson & Kevin Sawicki
b3e0ea6d33 Add AtomWindow.openPath() 2013-06-11 14:39:52 -07:00
Corey Johnson & Kevin Sawicki
e82a7f57fe Move already opened path logic to Atom Window 2013-06-11 11:28:53 -07:00
Corey Johnson & Kevin Sawicki
bcc16fbefe Remove hash params from url
Load settings are now stored on the browser window.
2013-06-11 11:17:16 -07:00
Kevin Sawicki
f40a7105bc Call .openPath() when 'new-window' is triggered
Closes #577
2013-06-07 08:51:10 -07:00
Cheng Zhao
cb2bf796fa Show prompt to force closing window when window is frozen.
Fixed atom/atom-shell#17.
2013-06-07 16:26:18 +08:00
Cheng Zhao
bbde993e81 Fullscreen => FullScreen. 2013-06-07 14:33:55 +08:00
Kevin Sawicki
9fea9ea756 Catch and log errors thrown by process.kill()
These can occur if killing the process fails because it no longer exists.
2013-06-06 16:23:53 -07:00
Cheng Zhao
01b583957e Add back edit menu.
On OS X, applications rely on the menu to trigger native events for
various commands. Editor view doesn't need it before it listens to the
keyboard shortcuts itself. Since spec window and devtools view don't
listen to keyboard shortcuts, we should rely on the menu to make edit
commands work.

Fixed atom/atom-shell#18.
2013-06-06 10:24:30 +08:00
Kevin Sawicki
d58ec4d3f6 Show window from bootstrap script 2013-06-03 13:23:16 -07:00
Kevin Sawicki
879cc31261 Replace DevTools with Developer Tools in menu text 2013-06-03 13:19:05 -07:00
Kevin Sawicki
56fea45505 Replace Atom Shell with Atom in menu text 2013-06-03 13:17:40 -07:00
Kevin Sawicki
5e7656489d Add toggle full screen to View menu 2013-06-03 13:16:51 -07:00
Kevin Sawicki
a816423037 Remove non-functional menus
These can be re-added as they are wired to triggering
commands into Atom.
2013-06-03 13:10:40 -07:00
Kevin Sawicki
98310e8d7a 💄 2013-06-03 10:32:35 -07:00
Cheng Zhao
495b218c7f Make atom.update() work. 2013-06-03 22:48:52 +08:00
Cheng Zhao
d224f3c5bd Don't check for updates if it's a custom build.
Currently we check whether the version has the '.', the custom builds
would have commit hash as version, which doesn't contain '.'.
2013-06-03 22:33:04 +08:00
Cheng Zhao
be309aba69 Setup crash reporter on 'will-finish-launching' event. 2013-06-03 22:26:47 +08:00
Cheng Zhao
2b3d3d9cf5 Make auto updater work. 2013-06-03 22:21:45 +08:00
Cheng Zhao
a2efd40798 URL => Url. 2013-06-02 15:16:21 +08:00
Cheng Zhao
eefc18202f Make crash reporter work. 2013-06-01 20:15:19 +08:00
Cheng Zhao
70e414b279 Check the existence of socketPath.
See the comments for the reason.
2013-06-01 14:09:53 +08:00
Cheng Zhao
e629088ec3 Make sure Atom terminates after message is sent. 2013-06-01 13:11:07 +08:00
Kevin Sawicki
eafad9a5c4 Show skull menu when in dev mode 2013-05-30 16:31:54 -07:00
Corey Johnson & Kevin Sawicki
454656a91c Use open-file event for paths to open 2013-05-30 15:15:08 -07:00
Corey Johnson & Kevin Sawicki
a5c3ca9e8e Add open menu under File 2013-05-30 14:04:15 -07:00
Corey Johnson & Kevin Sawicki
43a2096852 Don't reuse windows when --wait flag is set 2013-05-30 12:02:56 -07:00
Corey Johnson & Kevin Sawicki
f76ab1ebe6 Add open class method to AtomApplication 2013-05-30 11:57:49 -07:00
Corey Johnson & Kevin Sawicki
04392c562e Create AtomApplication after app is finished launching 2013-05-30 11:38:08 -07:00
Corey Johnson & Kevin Sawicki
a4470f9b6d Ignore windows without paths 2013-05-30 11:05:16 -07:00
Cheng Zhao
ee046f1c25 Check whether the socket file exists before connecting.
By removing the socket file when the browser process of Atom quits and
checking it's existence before trying to connect it, we can greatly
reduce the startup time of the first instance of Atom.
2013-05-30 22:02:35 +08:00
Cheng Zhao
2135de059f Also listen to 'open-file' event in constructor.
The 'open-file' may happen before application is launched.
2013-05-30 21:37:14 +08:00
Cheng Zhao
3cad4ae118 Adopt to filename changes of atom-shell. 2013-05-30 21:36:49 +08:00
Cheng Zhao
69b8b7989a Listen to 'finish-launching' event in constructor.
Otherwise @handleEvents would never be called...
2013-05-30 21:30:46 +08:00
Cheng Zhao
3c02b28c11 Don't open any file until the application has finished launching.
When user double clicks a file in Finder, the Atom would start with no
pathToOpen, and then the 'open-file' event would be emitted for the
opened file. After 'open-file' event has been emitted for all files, the
'finish-launching' event would be finally emitted.

If no file has been opened and current process is the first instance of
Atom, Atom would open the empty editor.
2013-05-30 19:55:10 +08:00
Cheng Zhao
9e7510deea atomWindow.pathToOpen could be null. 2013-05-30 18:21:58 +08:00
Cheng Zhao
941a3d8bf8 Open file when received 'open-file' event.
This event is emitted when the OS X opens files with Atom.
2013-05-30 16:13:25 +08:00