Commit Graph

715 Commits

Author SHA1 Message Date
Corey Johnson
06b63c24dc Merge remote-tracking branch 'origin/dev' into md-preview-redux
Conflicts:
	src/packages/markdown-preview/stylesheets/markdown-preview.css
	static/atom.css
	static/command-panel.css
2013-03-11 17:02:36 -07:00
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
Justin Palmer
e1a9362448 wrap-guide.css -> wrap-guide.less 2013-03-11 10:02:18 -07:00
Justin Palmer
6fd0118d2c tree-view.css -> tree-view.less 2013-03-11 10:02:18 -07:00
Justin Palmer
7ad67e50a6 spell-check.css -> spell-check.less 2013-03-11 10:02:18 -07:00
Justin Palmer
758c9f116f package-generator.css -> package-generator.less 2013-03-11 10:02:18 -07:00
Justin Palmer
dcfee2d9d9 markdown preview to less. also seperate out pygments colors 2013-03-11 10:02:18 -07:00
Justin Palmer
03642a2923 editor-stats.css -> editor-stats.less 2013-03-11 10:02:18 -07:00
Justin Palmer
3821a492fc command-logger.css -> command-logger.less 2013-03-11 10:02:18 -07:00
Justin Palmer
bd0751e17e braket-matcher.css -> bracket-matcher.less 2013-03-11 10:02:18 -07:00
Justin Palmer
3d3947722f autocomplete.css -> autocomplete.less 2013-03-11 10:02:18 -07:00
Kevin Sawicki
8cf32149b7 Return absolute paths from $native.traverseTree()
Previously relative paths were generated even though
things like fs.list() and fs.listTree() would just
recombine them with the root path.

Closes #391
2013-03-08 13:44:28 -08: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
5cd3dfce8e Add .template extension to package-generator template files
Acutally Closes #359
2013-03-08 09:30:20 -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