Nathan Sobo
b21eb6f934
Drop .flexbox-repaint-hack div and use pseudo selector instead
...
We don't actually need structural markup to ensure that all pane views
are absolutely positioned. We can just use the `> *` selector inside of
.pane-items.
/cc @probablycorey is there anything I'm missing here?
2014-01-11 19:13:00 -07:00
Nathan Sobo
3ab7836ab2
Upgrade to emissary 0.31.0 for implicit 'value' subscriptions on signals
...
Previously, when you always had to specify the event name of 'value'
when calling `::subscribe` with a signal. Now, if you don't specify an
event name, 'value' is assumed.
2014-01-11 11:22:31 -07:00
Nathan Sobo
e2170ea907
Remove unused requires and mixins
2014-01-11 10:45:33 -07:00
Nathan Sobo
738bfd7253
Fix layout of tabs with flexbox repaint hack
...
The .item-views div needs to be the first child of pane and contain
the absolutely positioned repaint hack div inside it, otherwise the tabs
don't get honored as flexbox items.
2014-01-10 19:02:19 -07:00
Nathan Sobo
72fe586101
Remove the concept of focus from the model
2014-01-10 17:27:28 -07:00
Nathan Sobo
47870a1214
Remove views (rather than detaching) if Pane::destroyItem is called
2014-01-10 13:35:18 -07:00
Nathan Sobo
7665cd1a6a
When a pane view is removed in anyway, make sure its model is destroyed
2014-01-10 12:35:12 -07:00
Nathan Sobo
d2146f9b2e
Emit 'pane:removed' event in container when last pane is removed
...
Doing it in the pane view is awkward because the view may have already
been detached.
2014-01-10 11:45:08 -07:00
Nathan Sobo
8647137952
Remove active status management from Pane view; rely on model instead
2014-01-09 18:00:54 -07:00
Nathan Sobo
073ea84d69
Handle consequences of item removal in the model
2014-01-09 16:05:00 -07:00
Nathan Sobo
2965d2e974
Bind Pane view's focus to focus state on the model
...
It's a bit tricky… we don't want to blur the model when focusing the
pane's active view causes a focusout event on the pane, so we use
::suppressBlur on the model to prevent it from blurring as the focus
is transferred.
2014-01-09 16:01:52 -07:00
Nathan Sobo
8efcb1abfa
Remove pane splitting/unsplitting logic from view
...
There's still some failing specs around focus management, but it's
getting closer.
2014-01-09 12:19:01 -07:00
Nathan Sobo
bb595ab08a
Start adding PaneAxisModel
2014-01-09 12:19:00 -07:00
probablycorey
d908c8b026
Use absolute divs to limit repaints on keypresses
2014-01-08 14:31:46 -08:00
probablycorey
7eba9d3a23
Use flexbox to arrange panes
2014-01-08 14:29:32 -08:00
Nathan Sobo
c281eb9596
Move serialization of focus into PaneModel
2014-01-08 11:23:06 -07:00
Nathan Sobo
ee9b78afb6
Move copyActiveItem to PaneModel
2014-01-08 11:14:02 -07:00
Nathan Sobo
a379d47230
Move methods related to item destruction and saving to PaneModel
2014-01-08 11:12:27 -07:00
Corey Johnson & Nathan Sobo
5837b7cfda
Move methods related to item movement to PaneModel
2014-01-07 18:39:39 -07:00
Corey Johnson & Nathan Sobo
1a487db29f
Move item removal events to PaneModel
2014-01-07 17:55:56 -07:00
Corey Johnson & Nathan Sobo
2938a8e650
Move item-oriented methods to PaneModel
2014-01-07 17:47:42 -07:00
Corey Johnson & Nathan Sobo
cd97de76fc
💄
2014-01-07 17:28:53 -07:00
Corey Johnson & Nathan Sobo
25c099f3a2
Serialize the items and activeItem via PaneModel
...
This necessitates setting the ::activeView based on the model's
::activeItem instead of doing it in ::showItem.
2014-01-07 17:23:29 -07:00
Corey Johnson & Nathan Sobo
14175d80ef
Move Pane::activeItem to PaneModel
2014-01-07 15:46:17 -07:00
Corey Johnson & Nathan Sobo
c99e211144
Store Pane items in PaneModel
2014-01-07 15:42:23 -07:00
Nathan Sobo
8da9e8ddc1
Rename nostalgia to serializable
...
This name was surprisingly available and better matches this module's
utilitarian nature.
2014-01-03 18:32:44 -07:00
Nathan Sobo
c6770aa83e
Merge remote-tracking branch 'origin/master' into ns-remove-telepath-from-core
...
Conflicts:
package.json
src/pane.coffee
2014-01-03 17:46:45 -07:00
Nathan Sobo
bc65137911
Remove telepath from Project, WorkspaceView, and Pane*
2014-01-03 16:23:23 -07:00
Nathan Sobo
42b203d502
🚱 Fix mini editor leak
...
Previously, we were overriding Editor::destroy, which is now provided
by telepath. Since the real destroy wasn't being called, we were failing
to remove editors associated with mini editor views.
2013-12-18 17:05:34 -07:00
Nathan Sobo
c74783ebbf
Allow telepath to manage serialization of non-telepathic pane items
...
This is the first step in converting Pane into a telepath model. We skip
interaction with the deserializer for items and allow telepath to handle
everything. There's actually a preexisting replication error in moveItem
that I'm going to leave until we drop out a Pane model.
2013-12-17 17:05:54 -07:00
Nathan Sobo
3db9e16637
Upgrade to telepath 0.75.0 for custom object support
2013-12-16 19:03:10 -07:00
Nathan Sobo
bd3cfda2bb
Merge branch 'master' into ns-telepathic-atom-global
...
Conflicts:
src/atom.coffee
2013-12-16 18:18:06 -07:00
Nathan Sobo
beb2fb08ea
Merge branch 'master' into ns-telepathic-atom-global
...
Conflicts:
package.json
2013-12-13 09:32:13 -08:00
Ben Ogle
a25812dca7
Move cmd-s and cmd-S to workspaceView
2013-12-12 17:50:15 -08:00
Ben Ogle
1f9a7599b7
cmd-w works anywhere in the editor
2013-12-12 17:50:15 -08:00
probablycorey
90f3726c5c
Fix window specs
2013-12-12 15:10:01 -08:00
Nathan Sobo
23957d7f66
WIP: Make atom global a telepath model
...
Specs seem to be green but hang on what I'm assuming to be a long GC
pause near the end. I need to investigate what's going on memory wise.
2013-12-12 14:33:50 -08:00
probablycorey
58bf19cc83
Fix syntax error
2013-12-12 14:00:21 -08:00
probablycorey
f439b04978
Update tree-view and find-and-replace packages
2013-12-12 13:37:56 -08:00
probablycorey
132194337e
Merge remote-tracking branch 'origin/master' into cj-deleted-files-not-modified
2013-12-12 11:00:17 -08:00
probablycorey
2d5b04579f
Merge branch 'master' into cj-deleted-files-not-modified
...
Conflicts:
src/pane.coffee
2013-12-12 09:57:28 -08:00
Nathan Sobo
b9b8c61c11
🚱 Properly remove items from pane's state document
...
Fixes #1299 .
This updates Pane::removeItemAtIndex to call Array::splice with the
index to be removed instead of Array::remove, which was changed to take
the *object* to be remove rather than an index. Oops.
2013-12-11 21:39:38 -08:00
Nathan Sobo
425c076221
Make Editor a telepath.Model subclass
2013-12-10 17:32:34 -08:00
Nathan Sobo
18a712a1f7
Reopen closed pane items in workspace – by uri instead of deserializing
...
Serializing and deserializing closed pane items was turning into a pain
with the new telepath changes that are phasing out this kind of on the
fly serialization. Reopening by uri saves memory and simplifies panes
enormously. If we want non-uri reopening we can revisit it later when
telepath models are better integrated.
2013-12-10 17:19:44 -08:00
probablycorey
4bfcdf4d5b
Remove unmodified editors from pane when the buffer is deleted
2013-12-10 17:08:07 -08:00
probablycorey
a3eb76d630
💄
2013-12-10 13:52:42 -08:00
probablycorey
8ffa8fed12
Always use Pane::addItem when adding items.
2013-12-10 13:50:51 -08:00
Kevin Sawicki
b1f041fa6e
Use a class instead of id for panes element
2013-12-02 08:27:32 -08:00
Kevin Sawicki
3ce6176313
Rename rootView to workspaceView
2013-11-26 11:02:53 -08:00
Kevin Sawicki
ef9ce1bf70
Consolidate Atom::confirm/confirmSync
...
Support both an array and hash of buttons to allow callbacks
optionally.
2013-11-22 15:00:32 -08:00