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
Corey Johnson & Kevin Sawicki
fa3c636494
Doc test flag
2013-05-29 14:57:33 -07:00
Corey Johnson & Kevin Sawicki
b91487c60f
Pass pid to kill to AtomApplication ctor
2013-05-29 14:52:45 -07:00
Corey Johnson & Kevin Sawicki
8ad695e89f
Make atomApplication a global
2013-05-29 14:49:43 -07:00
Corey Johnson & Kevin Sawicki
3373549e56
Resolve paths to open in main.coffee
2013-05-29 14:39:20 -07:00
Corey Johnson & Kevin Sawicki
608fcbd0a1
Use relative requires
2013-05-29 14:38:48 -07:00
Corey Johnson & Kevin Sawicki
1470ae73e7
Make --wait flag work again
2013-05-29 14:09:44 -07:00
Kevin Sawicki
ce71cf7703
Use correct indentation
2013-05-29 11:55:06 -07:00
Cheng Zhao
d4142db847
Restart renderer process instead of reloading.
...
Chromium has the bug that reloading would cause memory leaks, and V8's
GC would slow down everything, so restarting the renderer process when
the Atom is reloaded would make things much cleaner.
2013-05-29 12:20:55 +08:00
Corey Johnson & Kevin Sawicki
88a3a82a21
Resolve paths to open in constructor
2013-05-28 15:10:26 -07:00
Corey Johnson & Kevin Sawicki
bb5e18d981
Exit with 0 when process exists
2013-05-28 14:53:17 -07:00
Corey Johnson & Kevin Sawicki
7bc905d352
Reuse existing windows when opening paths from command line
2013-05-28 14:45:54 -07:00
Kevin Sawicki
13d57f56f6
Focus existing window for path
2013-05-28 12:26:54 -07:00
Kevin Sawicki
56731927ee
💄
2013-05-28 12:03:47 -07:00
Kevin Sawicki
b21db90456
💄
2013-05-28 12:02:11 -07:00
Kevin Sawicki
55e0f91bcc
Resolve paths before writing to socket
2013-05-28 11:59:26 -07:00
Kevin Sawicki
b015b8bd2b
💄
2013-05-28 11:00:13 -07:00
Cheng Zhao
54de539b8b
'pathsToOpen' passed in 'open' message is an array.
2013-05-27 21:38:46 +08:00
Cheng Zhao
e89ee8ff3c
💄
2013-05-25 15:36:47 +08:00
Cheng Zhao
50ba01e22d
If no 'executed-from' and 'pathsToOpen' is provided, open empty editor.
2013-05-25 14:56:17 +08:00
Cheng Zhao
462bd77ad5
Make atom.open work with parameters.
2013-05-25 14:38:04 +08:00
Cheng Zhao
0cdbfed7ab
Push new window to atomApplication.windows in AtomWindow.
2013-05-25 12:04:53 +08:00
Cheng Zhao
ddfae74ba4
Only allow one config window.
2013-05-25 11:58:18 +08:00
Cheng Zhao
45f96ab67f
Fix atom.getVersion.
2013-05-25 11:50:23 +08:00
probablycorey
6b08d18f4b
Move AtomWindow to it's own file
2013-05-24 14:46:25 -07:00
probablycorey
7aa6c1c08e
Change how pathsToOpen gets passed around
2013-05-24 14:45:48 -07:00
probablycorey
623a58fb47
Use the local pathsToOpen
2013-05-24 14:43:58 -07:00
probablycorey
b6c543734a
Moved AtomApplication out of main.coffee
2013-05-24 11:53:49 -07:00