Commit Graph

703 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
b01a4aa041 Allow markdown preview view to be scrolled with core:move-up/move-down 2013-03-11 17:34:59 -06:00
Corey Johnson & Nathan Sobo
140b22737e Refetch rendered markdown when triggering preview a subsequent time 2013-03-11 16:56:44 -06:00
Nathan Sobo
bf7fc39434 Rename AtomPackage.packageMain to .mainModule 2013-03-11 16:04:38 -06:00
Nathan Sobo
10d0fdf2d7 Require a deferred package early if needed when deserializing panes
The requiring of a package's main module is now decoupled from package
activation. Non-deferred packages will always be required before the
panes are deserialized. This allows the package to register any
deserializers for objects displayed in the panes.

Deferred packages can contain a 'deferredDeserializers' array in their
package.cson. If we attempt to deserialize an object with a deserializer
in the list, the package's main module will be required first so it has
a chance to register the deserializer. But the package still won't be
activated until an activation event occurs.

We may want to add an additional optional hook called 'load' which is
called at require time. We would not guarantee that the rootView
global would exist, but we could give the package a chance to register
deserializers etc. For now, registering deserializers is a side-effect
of requiring the package.
2013-03-11 15:08:19 -06:00
Nathan Sobo
a392174164 Un-f 2013-03-11 14:57:03 -06:00
Corey Johnson & Nathan Sobo
f3910ba34e WIP: make markdown preview view serializable 2013-03-08 11:59:49 -08:00
Corey Johnson & Nathan Sobo
cf6c46ba3a Tree view deselects entry when active item has no path 2013-03-08 11:10:13 -08:00
Nathan Sobo
22d1336aa0 Apply correct flexbox styling to .pane > .item-views > *
Markdown preview was overflowing because the min-height of flexbox
items is automatically set to min-content. Setting it to 0 ensures that
the item doesn't expand beyond its flex size. Moving this styling to
atom.css ensures that people don't have to work too hard to fit
their views into panes.
2013-03-08 10:56:23 -08:00
Corey Johnson & Nathan Sobo
7e33bd17e0 Make markdown preview views fit into panes and work w/ a single buffer 2013-03-07 15:49:33 -08:00
Corey Johnson & Nathan Sobo
e26d2e5637 WIP: Preview markdown in next pane, splitting current pane if needed 2013-03-07 14:53:42 -08:00
Corey Johnson & Nathan Sobo
ff50bc2e6f Add toBeInstanceOf and toHaveLength jasmine matchers 2013-03-07 14:32:10 -08:00
Corey Johnson & Nathan Sobo
cac6c854d2 💄 2013-03-07 10:25:51 -08:00
Corey Johnson & Nathan Sobo
6257bcf0f5 Rename root view serialization keys 2013-03-07 09:30:30 -08:00
Nathan Sobo
96fefe94f0 Fix broken specs after rebase 2013-03-07 09:30:29 -08:00
Nathan Sobo
685df18a3a Fix breakages due to save method moving to Pane (except saveAll specs) 2013-03-07 09:30:28 -08:00
Nathan Sobo
54fc9efdcb Eliminate fixturesProject global. Use project global instead. 2013-03-07 09:30:27 -08:00
Nathan Sobo
43b41e9ed9 Fix spell check spec 2013-03-07 09:30:27 -08:00
Nathan Sobo
298a963148 Rework Buffer's 'contents-modified' event
This event now fires whenever the content of the buffer changes (after 
a rate-limiting delay) with a single boolean indicating the modified
status of the buffer. There's now a separate event called
'modified-status-changed' to indicate events that change the boolean
value of the isModified method, so we don't need to fire
'contents-modified' when the underlying file is deleted for instance.
2013-03-07 09:30:27 -08:00
Nathan Sobo
a1dc2cfc2d Tabs indicate when their items are modified 2013-03-07 09:30:27 -08:00
Corey Johnson & Nathan Sobo
5bba4cd9f7 Kill dead tab view code 2013-03-07 09:30:27 -08:00
Corey Johnson & Nathan Sobo
3c9793d803 Fix TreeView specs 2013-03-07 09:30:26 -08:00
Nathan Sobo
7145136cd9 Fix symbols view
Makes a lot of assumptions about getActiveView being an editor. We'll
need to revisit this.
2013-03-07 09:30:26 -08:00
Nathan Sobo
2b53655934 Fix status bar spec 2013-03-07 09:30:26 -08:00
Nathan Sobo
8dc3afbcce Fix snippets spec 2013-03-07 09:30:26 -08:00
Nathan Sobo
2790e5d12b Fix package generator spec 2013-03-07 09:30:25 -08:00
Nathan Sobo
5b0f5727dc Fix GFM grammar spec 2013-03-07 09:30:25 -08:00
Nathan Sobo
a2ddd10d31 Get fuzzy-finder specs passing w/ new panes
Could still probably use some cleanup and I'm not sure everything is
working correctly with regards to focus.
2013-03-07 09:30:25 -08:00
Nathan Sobo
d69335f08d Kill dead code 2013-03-07 09:30:25 -08:00
Nathan Sobo
0238061fa2 Make tab drag & drop work with new panes system 2013-03-07 09:30:25 -08:00
Nathan Sobo
9655fa8898 Implement shouldAllowDrag in positive logic for tabs 2013-03-07 09:30:25 -08:00
Nathan Sobo
47621bd3b2 Call Pane.destroyItem when close icon is clicked on a tab 2013-03-07 09:30:24 -08:00
Nathan Sobo
1d0cd16cd1 💄 2013-03-07 09:30:24 -08:00
Nathan Sobo
465bb14659 Reflect pane item order in tab bar 2013-03-07 09:30:24 -08:00
Nathan Sobo
3456b2db3c Tabs try to use an item's longTitle if two tab titles are the same
This will replace edit-session-specific functionality that displayed
the file's parent directory when two files with the same name were
open.
2013-03-07 09:30:24 -08:00
Nathan Sobo
0c24843e52 Start converting tabs package to work with new panes / pane-items 2013-03-07 09:30:23 -08:00
Nathan Sobo
dd120663b7 Pane emits 'pane:item-added' events 2013-03-07 09:30:23 -08:00
Nathan Sobo
3382a542b3 Get CommandPalette specs to pass without getActiveEditor 2013-03-07 09:30:23 -08:00
Nathan Sobo
1902a0c553 Get CommandPanel specs passing without getActiveEditor/EditSession 2013-03-07 09:30:23 -08:00
Kevin Sawicki
8660670ae3 Replace RootView.getActiveEditor() with getActiveView() 2013-03-07 09:30:23 -08:00
Kevin Sawicki
ff899e9c1b Replace RootView.getActiveEditor() with getActiveView() 2013-03-07 09:30:23 -08:00
Nathan Sobo
beaeac4425 Rename buildEditSessionForPath to buildEditSession
Since this is the more external method, having a shorter name
is more convenient. The former `buildEditSession` method took a
Buffer, and is now called `buildEditSessionForBuffer`.
2013-03-07 09:28:51 -08:00
probablycorey
17fc679b25 Trigger resize event on editor before wrap guide specs 2013-03-05 09:43:38 -08:00
Corey Johnson & Kevin Sawicki
8c1ec19797 Always destroy misspelling markers 2013-03-05 09:24:41 -08:00
Kevin Sawicki
a1570a77e0 Add back saved event handler 2013-03-04 21:43:35 -08:00
Kevin Sawicki
e3ebda7d30 Show commits ahead/behind upstream in status bar 2013-03-04 21:43:34 -08:00
Kevin Sawicki
7838f3741f Update status finder keybinding to meta-B 2013-03-04 21:43:33 -08:00
Kevin Sawicki
4c773439d2 Bind meta-T to display modified/untracked files 2013-03-04 21:43:33 -08:00
Kevin Sawicki
77bc42bd45 Put status indicator on right side of fuzzy finder
Closes #313
2013-03-04 21:43:33 -08:00
Kevin Sawicki
3852b7212b Remove git-status-changed event from Buffer
This is now fired as a status-changed event from
the Git class when the checkout completes normally
and the status of the path changes.
2013-03-04 21:43:33 -08:00
Kevin Sawicki
77a5f4775a Show Git status indicators on directories
Closes #301
2013-03-04 21:43:33 -08:00