Commit Graph

298 Commits

Author SHA1 Message Date
Katrina Uychaco
41c8792a7d Handle EAGAIN errors on open 2016-01-06 18:27:18 -08:00
Douwe Maan
b11d0c2585 Use em-dash in window title and exclude app name on OS X 2015-11-21 14:09:00 +01:00
Max Brunsfeld
30b3cb249e Merge pull request #9636 from DouweM/unique-title
Use unique text editor title in window and tab titles
2015-11-20 16:55:38 -08:00
Nathan Sobo
3e22d9f7a2 Merge PR #9607 with a small change 2015-11-20 10:41:22 -07:00
Douwe Maan
a7809d6772 Add 'Close Empty Windows' option.' 2015-11-20 16:40:55 +01:00
Antonio Scandurra
93481c8a0d Move ::isTextEditor down into Workspace 2015-11-19 17:56:53 -08:00
Douwe Maan
4bc4c6888f Use unique text editor title in window and tab titles 2015-11-17 23:34:41 +01:00
Douwe Maan
f93565708b Close empty active window when Close command is given 2015-11-16 17:54:06 +01:00
Kevin Sawicki
64d272050d Handle ENOTDIR errors on open
Closes #7864
2015-11-10 16:35:34 -08:00
Kevin Sawicki
cfd5b7b354 Handle EMFILE errors on open
Closes #8429
2015-11-10 16:20:58 -08:00
Nathan Sobo
d2fdc414e7 Merge pull request #8919 from bencolon/workspace_vertical_splits
Add top/bottom split options when opening uri in a workspace
2015-10-22 14:13:42 -06:00
Ben Colon
1b0d72b232 Add up/down split options when opening uri in a workspace 2015-10-22 17:03:10 +02:00
Nathan Sobo
84aa8471b4 Pass AppDelegate to Workspace, Pane instead of bound functions
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 18:54:48 -06:00
Nathan Sobo
3876deddf3 Merge branch 'master' into ns-alternative-test-env 2015-10-13 17:59:46 -06:00
Martin Rodalgaard
5b37d3e1aa 📝 Better workspace scan and replace docs 2015-10-13 20:29:24 +02:00
Antonio Scandurra
3ac0656a26 Reset Workspace before Project
Otherwise some paths will be leaked.
2015-10-13 11:29:51 +02:00
Nathan Sobo
d4c88cc7fd Merge branch 'master' into ns-alternative-test-env 2015-10-12 15:55:28 -06:00
Ross Allen
41984a2317 Add onDidStopChangingActivePaneItem for async callbacks
`onDidChangeActivePaneItem` is called synchronously when the active pane
item changes, and several non-critical actions preform work on that
event. Critical UI feedback, like changing the active tab, needs to
happen synchronously, but most other functionality should be run
asynchronously.
2015-10-12 10:24:07 -07:00
Antonio Scandurra
56e13bba69 Reset Workspace in AtomEnvironment 2015-10-12 15:01:00 +02:00
Antonio Scandurra
f77f62625e Add activateItem config to Workspace::open
Now that we have deleted `Project::open(...)`, all the methods that previously
used it need to switch to `Workspace::open(...)` instead. These two methods,
however, are not idempotent because the latter performs additional operations.

Since some specs relied on not activating an item after opening it, this commit
adds a parameter to prevent such activation.

Refs: 1ebcf166c7
2015-10-11 18:24:42 +02:00
Max Brunsfeld
369f3d2648 Don't use atom.{notifications,config,deserializers,confirm} in Pane
Still need to get rid of one use of showSaveDialogSync
2015-10-09 17:18:26 -07:00
Nathan Sobo
4808c9f9e8 Eliminate config and confirm global references in Pane 2015-10-07 16:32:47 -05:00
Max Brunsfeld
13301b551c 📝 Document Workspace::buildTextEditor 2015-10-07 15:25:06 -05:00
Max Brunsfeld
5aee514ef5 🔥 debuggers 2015-10-07 15:25:05 -05:00
Antonio Scandurra
464cfd4474 Don't use atom.confirm in Workspace 2015-10-07 15:25:02 -05:00
Nathan Sobo
122bf72c75 Don’t use atom.packages global in TokenizedBuffer 2015-10-07 15:25:00 -05:00
Nathan Sobo
b2359f44a6 Don’t use atom.grammars global in TokenizedBuffer 2015-10-07 15:25:00 -05:00
Nathan Sobo
dc0709ef9e Don’t use atom.assert global in DisplayBuffer 2015-10-07 15:24:59 -05:00
Nathan Sobo
b729a9bb37 Parameterize project on TextEditor 2015-10-07 15:24:59 -05:00
Nathan Sobo
8d7a08d07f Parameterize view registry on TextEditor 2015-10-07 15:24:59 -05:00
Nathan Sobo
e803801145 Parameterize clipboard on TextEditor 2015-10-07 15:24:59 -05:00
Nathan Sobo
ad57dca1f7 Remove dead registerEditor parameter 2015-10-07 15:24:58 -05:00
Nathan Sobo
979963a25c Parameterize notification manager on TextEditor 2015-10-07 15:24:58 -05:00
Nathan Sobo
51abab930d Parameterize config on editor instead of using global atom.config 2015-10-07 15:24:58 -05:00
Nathan Sobo
eb2ace37b4 Move TextEditor construction to Workspace
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:56 -05:00
Max Brunsfeld
eb68c9135e Don't use atom global in default commands
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
156cdfaf31 Move Workspace.deserialize to an instance method
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
fd7fbbfea5 Move PaneContainer.deserialize to an instance method
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
e0d426b817 Register deserializers, view providers, and commands in Atom constructor
Previously, these registrations were scattered all over the codebase and
required that `global.atom` be defined, which creating weird ordering
issues. Registering them all from the global makes the relationships
clearer and means we don’t have to assign a global to set up a fully-
functional environment.
2015-10-07 15:24:52 -05:00
Max Brunsfeld
a9531fc4dd Install atom command as 'atom-beta' when using beta version 2015-09-23 14:10:07 -07:00
Nathan Sobo
50ce1c4afc Guard against undefined state in Workspace.deserialize 2015-09-23 10:16:59 -06:00
Nathan Sobo
3d4ed37f81 Don’t use Serializable mixin in Workspace 2015-09-22 10:55:52 -06:00
Thomas Johansen
e0ff96127a 🔥 Remove deprecations from Workspace 2015-09-22 10:37:06 -06:00
Ivan Zuzak
fd9f483486 Use thin arrow where possible 2015-09-21 12:55:12 +02:00
Nathan Sobo
37f8661ec6 Use promises instead of Q in Workspace
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-09-18 21:24:59 -06:00
Nathan Sobo
f77cb3786c Terminate all directory searches if any fail
@bolinfest: I was seeing exceptions after the test terminated due to
one of the searches still running. I think since the promise rejects
with “all” semantics that we should cancel any other searches when one
fails. I wouldn’t expect them to continue if the promise is no longer
unresolved.
2015-09-18 20:48:46 -06:00
Antonio Scandurra
9a431a5c97 💚 2015-09-10 18:06:18 +02:00
Andrey Fedorov
f2a1b69a34 Add backticks around URLs for style consistency 2015-09-05 14:24:07 -04:00
Andrey Fedorov
2c7be877c6 Update note explaining the usage of the protocol 2015-09-04 13:28:19 -04:00
Andrey Fedorov
136a30f180 Add a clarification about the usage of addOpener
Documentation augmented with a note about the need of using fake protocol in
order to invoke opener on a file already opened.

See discussion at

https://discuss.atom.io/t/difficulties-using-atom-workspace-addopener/20444
2015-09-04 10:23:40 -04:00