Ash Wilson
896ebfd97d
Skip spec windows when finding an existing window to open paths
2019-04-28 17:22:14 -04:00
Rafael Oleza
4fe8dbfe08
Merge pull request #18705 from UziTech/autoFocus-element
...
Enable autoFocus option to accept an element to focus on pane creation
2019-04-27 22:05:32 +02:00
Rafael Oleza
41d934fc02
Merge pull request #19192 from vinkla/reset-font-size
...
Fix reset-font-size
2019-04-26 23:47:56 +02:00
Rafael Oleza
165a297d31
Merge branch 'master' into autoFocus-element
2019-04-26 20:23:09 +02:00
Rafael Oleza
28e8099953
Merge pull request #18659 from oggy/reversed-docs
...
Document the reversed option to Selection.setBufferRange
2019-04-26 17:01:56 +02:00
Rafael Oleza
1a767bcc60
Merge pull request #19206 from atom/focus-on-activate
...
Set the panel flag as focused when activate() is called
2019-04-25 18:03:27 +02:00
Ash Wilson
c8beb6ffab
Open loaded window options *first*
2019-04-24 15:22:32 -04:00
Ash Wilson
2988226370
Set {newWindow: true} for options recovered from application.json
2019-04-24 15:22:03 -04:00
Ash Wilson
a53addbf78
Update AtomWindow::projectRoots synchronously on openLocations()
2019-04-24 15:04:59 -04:00
Ash Wilson
f1e0843473
Don't report missing project folder errors twice
2019-04-24 11:34:36 -04:00
Ash Wilson
2b1aaa7a13
Save application state with a version-tagged schema
...
Load application state from the current or previous application.json
schema. Filter out file paths when loading old state.
2019-04-24 10:18:47 -04:00
Rafael Oleza
3f917210e1
Set the panel flag as focused when activate() is called
2019-04-24 13:19:25 +02:00
Ash Wilson
a0e9bb785f
Merge pull request #19203 from atom/aw/reopen-projects
...
"Reopen projects" in a new window
2019-04-23 17:35:13 -04:00
Jason Rudolph
9747f747c6
Update src/main-process/atom-application.js
...
Co-Authored-By: smashwilson <smashwilson@github.com >
2019-04-23 16:37:03 -04:00
Ash Wilson
68af9d1565
Use open-chosen-xyz commands instead of open-command with a parameter
2019-04-23 11:53:49 -04:00
Ash Wilson
8a933d879c
Document why 'open-file' is there
2019-04-23 11:53:25 -04:00
Ash Wilson
405304d449
🎨 formatting tweak
2019-04-23 11:19:01 -04:00
Ash Wilson
213f3b28b3
Rework and test IPC events that create windows
2019-04-23 11:18:53 -04:00
Ash Wilson
758fd9d75c
Merge pull request #19169 from atom/aw/launch-it
...
Improve launch behavior
2019-04-22 20:39:28 -04:00
Vincent Klaiber
f9df38bc5b
Fix reset-font-size
...
If the user config is yet to be loaded oldValue equals the default font-size 14px. Fetching the font-size from the config object seems to fix the issue.
2019-04-21 22:34:59 +02:00
Ash Wilson
c719dc8aa2
Test empty command-line cases
2019-04-19 17:37:23 -04:00
Ash Wilson
96e6403573
Remove unused forceAddToWindow
2019-04-19 17:36:33 -04:00
Nathan Sobo
bca3e5bcfd
Merge pull request #18499 from Aerijo/content-regex
...
Support contentRegex for TextMate grammar
2019-04-19 14:58:58 -06:00
Ash Wilson
8126a136cd
Read hasOpenFiles to determine whether or not the initial editor should open
2019-04-19 15:50:24 -04:00
Ash Wilson
cc1ddf1011
Use hasOpenFiles to flag a window that will receive openLocations()
2019-04-19 15:50:03 -04:00
Ash Wilson
28116828a1
Consistently operate on result.pathToOpen
2019-04-19 14:37:26 -04:00
Ash Wilson
d3bb28f1a4
File under "how did this ever work"
2019-04-19 14:33:22 -04:00
Ash Wilson
a303e31c1b
Consistently return an AtomWindow from openPackageUriHandler
2019-04-19 12:02:36 -04:00
Ash Wilson
a1e3598648
Default devMode, safeMode, and window to predictable false values
2019-04-19 12:02:11 -04:00
Ash Wilson
9d8ae2aa82
Return a Promise that resolves once the server has started listening
2019-04-19 12:01:51 -04:00
Ash Wilson
8b1827bea7
Return an all-Promise for windows opened by urlsToOpen
2019-04-19 12:01:22 -04:00
Ash Wilson
ca2f8db022
Inject an application creation function to AtomApplication::open
...
This lets me call open() and create properly stubbed-out AtomApplication
instances.
2019-04-19 12:01:03 -04:00
Ash Wilson
ab1bc2e173
Save window options when opening a window
2019-04-18 22:56:57 -04:00
Ash Wilson
40c2f5b073
'did-change-paths' is never broadcast
...
This event is handled by AtomWindow::setProjectRoots() now.
2019-04-18 22:56:46 -04:00
Ash Wilson
b903dc2506
Save .projectRoots, not .initialProjectRoots which is undefined
2019-04-18 22:56:12 -04:00
Ash Wilson
b1d6e42aa9
Add preserveFocus flag to keep main process tests from stealing focus
2019-04-18 21:10:41 -04:00
Ash Wilson
c6652e1b29
Don't restore state when --new-window is passed and other paths
2019-04-18 17:09:55 -04:00
Ash Wilson
2914b1c58e
Don't append launch options to the deserialized ones??
2019-04-18 17:06:20 -04:00
Ash Wilson
80f8d92565
Don't require urlsToOpen
2019-04-18 17:05:56 -04:00
Ash Wilson
9eb259ce20
Guarantee the window opening order
2019-04-18 17:03:43 -04:00
Ash Wilson
2abbabdafe
Respect "headless" on non-spec windows
2019-04-18 16:18:49 -04:00
Ash Wilson
0b0d3485ae
Injectable BrowserWindow constructor in AtomWindow
2019-04-18 16:18:32 -04:00
Ash Wilson
45770f1fe6
Use isDirectory instead of mustBeDirectory
2019-04-18 16:18:09 -04:00
Ash Wilson
631743f5f4
Rename setRepresentedDirectoryPaths() to setProjectRoots()
...
Let's keep the naming consistent the whole way up the call chain.
2019-04-18 16:17:53 -04:00
Ash Wilson
495f493c44
Rename hasProjectPath to hasProjectPaths
...
Likely a relic of the days when there was only one project.
2019-04-18 16:17:07 -04:00
Ash Wilson
a0be3e735f
Use containsLocations() for AtomApplication window location
2019-04-18 16:16:17 -04:00
Ash Wilson
2a2ef17d85
Use containsLocation() for URL handler processing
2019-04-18 16:15:45 -04:00
Ash Wilson
952c42c0de
Rename initialPaths and representedDirectoryPaths
...
They're now called initialProjectRoots and projectRoots, which is closer
to what they actually are.
2019-04-18 16:15:07 -04:00
Ash Wilson
b095482071
Replace containsPath(s) with containsLocation(s)
...
This lets us use existing stat data.
2019-04-18 16:12:51 -04:00
Ash Wilson
efeb2cdb0a
stat locations in parsePathToOpen()
2019-04-18 16:11:02 -04:00