Kevin Sawicki
513ed3b4b1
Show symlink file icon in tree view
2013-03-25 16:51:39 -04:00
Corey Johnson
ec4bb162c3
Add editor.showLineNumbers config option
...
Also adds toggle-line-numbers command. Closes #377
2013-03-25 10:38:06 -07:00
Kevin Sawicki
0080e09065
Only check for back references in end patterns
...
Back references can occur in match values but should not
be treated differently when present there since they refer
to groups inside the match.
Close #370
2013-03-24 23:25:00 -04:00
Nathan Sobo
a05405370c
Serialize the syntax object's grammar overrides with window state
2013-03-22 17:35:35 -06:00
Corey Johnson & Nathan Sobo
db4420e068
Move grammar overrides to syntax (no serialization yet)
2013-03-22 17:35:35 -06:00
Corey Johnson & Nathan Sobo
dacb00ed67
Simplify grammar selection and its specs
2013-03-22 17:35:34 -06:00
Nathan Sobo
a2f72882d7
Rename grammarForFilePath to selectGrammar
...
The old name was misleading because it the decision is based on the
file contents in some circumstances.
2013-03-22 17:35:27 -06:00
Nathan Sobo
ab934cfbfb
Replace LoadTextMatePackagesTask with async grammar loading
2013-03-22 15:29:07 -06:00
Kevin Sawicki & Nathan Sobo
e23edd02fd
Use flexbox to position editor's gutter and scroll view
...
This removes the need to compute the width of the gutter based
on the line count in the editor and also removes the need to
set the scroll view's left position manually.
2013-03-22 12:47:56 -07:00
Corey Johnson & Nathan Sobo
84fe0a384d
Pop grammar rules that result in infinite loops
2013-03-22 11:42:47 -07:00
Corey Johnson & Nathan Sobo
f4d339ccac
Unify root view state with window state
2013-03-21 18:24:21 -06:00
Kevin Sawicki
f8ffe1c408
Only delete to end row when greater than start row
...
Closes #442
2013-03-21 17:07:36 -07:00
Corey Johnson & Nathan Sobo
2f3b4b9e5f
Move scoped properties out of the grammar file and into a directory
...
Closes #435
2013-03-21 14:07:32 -07:00
Corey Johnson & Nathan Sobo
0b719bfecf
Atom packages can load cson grammars and TextMate packages can't
2013-03-21 13:26:56 -07:00
Kevin Sawicki
661ef175d5
Remove $native.getPlatform()
...
process.platform should now be used instead.
2013-03-20 17:51:51 -07:00
Kevin Sawicki
61cc592605
Use absolute paths in Editor.reloadGrammar() specs
2013-03-20 15:04:20 -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
Corey Johnson & Nathan Sobo
10f405f61f
Create preview list Dom elements only when needed
2013-03-19 11:30:48 -07:00
Corey Johnson
c236325c1a
Log errors (instead of crashing) when the config file cannot be parsed
...
Also, config won't overwrite changes to config.cson when the file can not be parsed. Closes #401
2013-03-12 16:47:26 -07:00
Corey Johnson
4755233f92
💄
2013-03-12 15:55:30 -07:00
Corey Johnson
d916962a80
Defer window close events until all modified pane items are handled
...
If the user presses cancel, the close event is canceled
2013-03-12 15:55:30 -07:00
Kevin Sawicki & Nathan Sobo
051decc08c
Use fs.resolveOnLoadPath() instead of require.resolve()
2013-03-12 14:42:24 -07:00
Kevin Sawicki & Nathan Sobo
d8a3848c1a
Round top position before comparing to height
2013-03-12 14:40:39 -07:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07: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
Nathan Sobo
bf7fc39434
Rename AtomPackage.packageMain to .mainModule
2013-03-11 16:04:38 -06:00
Nathan Sobo
50b61f3a00
Test requiring of package main module via deferred deserializer
2013-03-11 15:20:51 -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
Kevin Sawicki
03b32ec29c
Use coffee-script node module
...
This required upgrading underscore which to fix issues
with _.isEqual working across objects created from different
documents.
The upgrade required adding a custom _.isEqual extension that
added back support for object's having an isEqual method that
was removed in underscore 1.4.0.
2013-03-11 13:39:17 -07:00
Kevin Sawicki
2212222c47
Use underscore node module
2013-03-11 11:22:36 -07:00
Corey Johnson & Nathan Sobo
478a376c97
Less files work in atom themes
2013-03-11 10:02:19 -07:00
probablycorey
9acd401b9e
Use fixture files to requireStylesheet
2013-03-11 10:02:19 -07:00
Justin Palmer
a448a79ae6
atom.css -> atom.less
2013-03-11 10:02:19 -07:00
Justin Palmer
b502c811cb
move less parsing to requireStylesheet
2013-03-11 10:02:18 -07:00
Corey Johnson & Nathan Sobo
06c9a3ac86
Remove empty panes when PaneContainer deserializes
2013-03-08 11:45:20 -08:00
Kevin Sawicki
acf5f4ce5e
Remove fs/$native.getAllFilePathsAsync()
...
This was previously only used by project.getFilePath()
which should have been using fs.traverseTree() instead.
2013-03-07 17:48:36 -08:00
Kevin Sawicki
c22d14c5b0
Use child_process.spawn from Project.scan
2013-03-07 17:36:21 -08:00
Corey Johnson & Nathan Sobo
d84614866a
Add Pane.getNextPane
2013-03-07 14:32:10 -08:00
Corey Johnson & Nathan Sobo
98c9012bdb
💩
2013-03-07 14:31:04 -08:00
Corey Johnson & Nathan Sobo
17f4d6f064
EditSession reloads its grammar on the 'grammars-loaded' event
2013-03-07 14:25:14 -08:00
Corey Johnson & Nathan Sobo
39fabaa344
Update RootView.deserialize specs so they break on a version mismatch
2013-03-07 11:09:39 -08:00
Corey Johnson & Nathan Sobo
8333f14ef8
Throw away serialized state if its version doesn't match deserializer
2013-03-07 09:30:30 -08:00
Corey Johnson & Nathan Sobo
4f0bf9020b
Fix pane focus and active item serialization
...
Also: Un-x root view serialization specs
2013-03-07 09:30:29 -08:00
Corey Johnson & Nathan Sobo
d4fc718e8e
Update window title when a pane item's title changes
2013-03-07 09:30:29 -08:00
Corey Johnson & Nathan Sobo
c1d19c4c5c
Rename restoreItem to reopenItem on pane container
2013-03-07 09:30:29 -08:00
Corey Johnson & Nathan Sobo
5ad53bb32c
Add restoreItem to Pane container
2013-03-07 09:30:29 -08:00
Nathan Sobo
96fefe94f0
Fix broken specs after rebase
2013-03-07 09:30:29 -08:00
Nathan Sobo
f2e5fcc902
Move autosave from editor into panes
2013-03-07 09:30:29 -08:00
Nathan Sobo
d97e91bdcb
Make meta-# bindings work with new panes
2013-03-07 09:30:29 -08:00
Nathan Sobo
f23d9091f2
Add pane:close-other-items
2013-03-07 09:30:29 -08:00