Corey Johnson
2944b64795
Show GitHub API error message when markdown preview fails
2013-04-02 17:00:41 -07:00
Corey Johnson
55d4625091
Only display markdown preview on save if preview already exists
2013-04-02 17:00:41 -07:00
Corey Johnson
5f2c4dad95
Only show markdown preview if the edit session's grammar is GFM
2013-04-02 16:59:44 -07:00
Corey Johnson
e03f2fd738
Markdown preview listens to core:save on activate
2013-04-02 16:59:44 -07:00
Mutwin Kraus
5c93fd4574
Update markdown preview when markdown buffer is saved
2013-04-02 16:59:44 -07:00
Nathan Sobo
bb8b3782b9
Serialize package states independently of RootView
...
Previously, package specs needed to deactivate the root view to test
their package serialization. Now, specs can just deactivate and then
reactivate the package, relying on serialization infrastructure that's
independent of the lifecycle of the RootView.
2013-03-26 17:35:42 -06:00
Nathan Sobo
58ef6c6582
Use atom.activatePackage directly in specs
2013-03-26 17:35:42 -06:00
Kevin Sawicki
266c305ebb
Implement getPath() in markdown preview view
...
This allows it to be shown in the tree view when the
reveal command is triggered.
2013-03-22 09:55:21 -07:00
Kevin Sawicki & Nathan Sobo
501dc9b76c
Merge remote-tracking branch 'origin/master' into cefode
...
Conflicts:
native/v8_extensions/native.mm
spec/app/config-spec.coffee
spec/app/window-spec.coffee
spec/spec-helper.coffee
spec/stdlib/fs-utils-spec.coffee
src/app/atom-package.coffee
src/app/config.coffee
src/app/window.coffee
src/packages/fuzzy-finder/lib/load-paths-handler.coffee
src/packages/markdown-preview/lib/markdown-preview-view.coffee
src/packages/tree-view/spec/tree-view-spec.coffee
src/stdlib/require.coffee
2013-03-20 10:46:50 -06:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07:00
Nathan Sobo
66467b3571
Fix markdown preview height. Some styles crept back in during merge.
2013-03-11 20:17:24 -06:00
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
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
Kevin Sawicki
2212222c47
Use underscore node module
2013-03-11 11:22:36 -07:00
Justin Palmer
dcfee2d9d9
markdown preview to less. also seperate out pygments colors
2013-03-11 10:02:18 -07:00
Corey Johnson & Nathan Sobo
f3910ba34e
WIP: make markdown preview view serializable
2013-03-08 11:59:49 -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
Kevin Sawicki
8660670ae3
Replace RootView.getActiveEditor() with getActiveView()
2013-03-07 09:30:23 -08:00
Corey Johnson & Nathan Sobo
47aa74133f
Remove unneeded calls to rootView.deactivate
2013-02-19 18:26:51 -07:00
Corey Johnson & Nathan Sobo
9e8831f710
RootView.initialize no longer assigns window.rootView or calls open
2013-02-19 18:26:50 -07:00
Corey Johnson & Nathan Sobo
0b5ea8578f
Eliminate rootView.project references.
2013-02-19 18:26:50 -07:00
Nathan Sobo
7f2747ead0
Make project a global and refactor startup process
2013-02-19 18:26:50 -07:00
Kevin Sawicki
bcaa1a6819
Allow preview of editor if grammar is source.gfm
...
Previously only markdow file extensions were considered
but any editor whose grammar is GitHub Markdow should have
preview enabled.
Closes #277
2013-02-14 09:49:03 -08:00
Corey Johnson
958bc2bfab
Moved atom.loadPackage to a spec-only helper function
2013-02-13 16:37:59 -08:00
Kevin Sawicki
df962afe0e
Modernize markdown-preview package with package.cson
2013-02-08 17:28:06 -08:00
Justin Palmer
ac2d5c136b
match more of the look of .com's markdown style
2013-02-06 09:32:07 -08:00
Justin Palmer
c62b75804e
consolidate markdown styles into the markdown package
2013-02-06 09:21:46 -08:00
Kevin Sawicki
df83edde64
Only close preview when editor gains focus
...
Closes #193
2013-01-28 18:56:58 -08:00
Kevin Sawicki
8fb1105051
Detach markdown preview when focus is lost
2013-01-27 11:00:34 -08:00
Kevin Sawicki
a966f1d7c7
Rename attach to load
2013-01-22 18:26:48 -08:00
Kevin Sawicki
513a29d70e
Add deferred package type
...
This package defers loading until specific commands are
triggered on the root view.
2013-01-22 18:26:48 -08:00
Kevin Sawicki
ca596db310
Extend AtomPackage directly in packages index.coffee
2013-01-22 18:26:48 -08:00
Jon Rohan
20e5b303a7
refactoring all the stylesheets into /Atom - Dark/
...
Conflicts:
.atom/themes/Atom - Dark/vim-mode.css
2013-01-17 22:11:45 -08:00
Kevin Sawicki
93fc1b6c4d
Remove unneeded attachToDom() call in spec
2013-01-11 10:51:01 -08:00
Kevin Sawicki
7f0030ef4f
Move package CSS files to stylesheets directory
2013-01-02 16:55:55 -08:00
Kevin Sawicki & Nathan Sobo
bcde77dd0e
Load keymaps from cson
...
All existing .coffee keymaps are now .cson and package
keymaps are now located in a keymaps folder at the root of
the package.
2013-01-02 16:10:46 -08:00
Kevin Sawicki
f5c59d33c3
Use space pen to generate error html
2012-12-31 15:03:04 -08:00
Kevin Sawicki
488ec54a78
Place spinner inside of markdown body
2012-12-31 14:53:36 -08:00
Kevin Sawicki
183a6d8e8b
Add helper for markdown extension to fs
2012-12-31 13:49:40 -08:00
Nathan Sobo
bb913ef9e8
Merge branch 'config'
2012-12-31 12:43:25 -06:00
Kevin Sawicki
bf86f7ca7b
Use getActivePath() helper from attach()
2012-12-29 20:29:18 -08:00
Nathan Sobo
7dcb12ada2
RootView talks about packages and packageModules, not extensions
...
Now you call `rootView.activatePackage`, etc
2012-12-19 19:24:44 -07:00
Nathan Sobo
4ce8583cb2
Rename extensions to packages
...
We now look at the `core.disabledPackages` config key. Rename the `src/extensions` directory to `src/packages`. The config object now talks about loading packages instead of extensions.
2012-12-18 20:03:21 -07:00