Kevin Sawicki
68dc76def3
Move command panel stylesheet into package directory
2013-03-25 22:56:51 -04:00
Kevin Sawicki
5a4108f3c8
Consolidate tree-view stylesheets
2013-03-25 22:56:00 -04:00
Kevin Sawicki
a83cb88630
Move tabs stylesheet into package directory
2013-03-25 22:54:45 -04:00
Kevin Sawicki
a52c516c88
Move status bar stylesheet into package directory
2013-03-25 22:53:42 -04:00
Kevin Sawicki
6f8c07e917
Enforce stricter requirements for Editor.getPane()
...
Previously it would return the closest '.pane' element
which would cause an editor inside of another editor
to report having a pane such as in the autocomplete view.
2013-03-25 17:10:33 -04:00
Kevin Sawicki
67adce6a99
Perform directory check with single stat call
2013-03-25 16:54:39 -04:00
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
Kevin Sawicki
36e7351ba3
💄
2013-03-23 09:01:02 -07:00
Kevin Sawicki
e0a93ed1c2
Emit a grammar-changed event from edit session
...
This event is now listened for from the editor and
re-emitted under the editor namespace. This removes
the need to monitor the syntax's grammars-loaded event
from both places and also mirrors the behavior of the
path-changed event.
2013-03-23 09:00:44 -07:00
Nathan Sobo
adcfcb7897
Trigger 'grammars-loaded' when TextMate packages finish loading
...
This is a temporary solution so we can merge async textmate package
loading. I'd like to dispense with this event and consider each
grammar individually as they are loaded. But this makes the behavior
compatible with the old background-task-based behavior.
2013-03-22 17:35:35 -06: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
Corey Johnson & Nathan Sobo
bfd2667c51
Don't throw exceptions from Directory.getEntries for non-files
...
Just don't create entry objects for them.
2013-03-22 17:35:34 -06:00
Nathan Sobo
2416ff19a4
Add NullGrammar to obviate synchronous load of text grammar on start
...
It's also an extremely simple grammar, so we'll do less work to
initially tokenize open buffers before loading their real grammars.
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
Nathan Sobo
8e57ee2776
Import Node's fs in text-mate-package; rename existing fs to fsUtils
2013-03-22 15:29:07 -06:00
Nathan Sobo
d3ead2a0d1
Update fs.list to use readdirSync and filterExtensions helper
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
Kevin Sawicki
3d6dbf6d59
Include path instead of file in thrown error
2013-03-22 09:50:11 -07:00
Kevin Sawicki
49d1801742
Remove dead code
2013-03-22 09:33:18 -07:00
Corey Johnson & Nathan Sobo
1ad5327c99
Ensure we never load saved window in specs
2013-03-21 18:51:32 -06:00
Corey Johnson & Nathan Sobo
f4d339ccac
Unify root view state with window state
2013-03-21 18:24:21 -06:00
Corey Johnson & Nathan Sobo
84244a4c22
🙊
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
529b3ac583
💄
2013-03-20 14:56:27 -07:00
Corey Johnson & Kevin Sawicki
6c357aaca7
Make paths absolute before calling $native.watchPath
...
Also return a subscription that can be unwatched instead
of returning an id that is later passed to $native.unwatchPath
along with the watched path.
This allows specs to pass when run from a symlink'ed folder.
2013-03-20 13:27:49 -07:00
Kevin Sawicki & Nathan Sobo
2f190025a9
Use new parseFileSync method of plist npm
2013-03-20 10:59:54 -06:00
Kevin Sawicki & Nathan Sobo
46f0bfb991
Kill dead code
2013-03-20 10:55:00 -06: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
Nathan Sobo
4a203a9eb6
Use plist NPM instead of vendor/plist.js. Use new synch parsing api.
...
This also adds a `readObject` method to `fs-utils`, which loads the
file as cson if it ends with json/cson, and otherwise tries to load
it as a plist.
For now, we're using my fork which is tolerant to a node environment
with a `window` global and suppresses some logging of non-fatal
errors. If the upstream author accepts my pull requests we can switch
back.
2013-03-19 11:32:23 -06:00
Kevin Sawicki
b01a3ff9cc
Release repo when destroy is called
2013-03-17 21:46:26 -05:00
Kevin Sawicki
cdb7f14c03
Release repository when worker is done
...
Closes #414
2013-03-17 17:22:34 -05:00
Nathan Sobo
fc7eaf57fc
Add window.profile, which is like measure but also records a profile
2013-03-14 17:47:07 -06:00
Kevin Sawicki
8dbcb44d06
Rename traverseTree to traverseTreeSync
...
Also rename traverseTreeAsync to traverseTree
2013-03-13 14:40:31 -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
f7f034ad2a
Remove core:close event from window
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
Corey Johnson
44d4dc7e60
Use URI in prompt message if pane item doesn't have a title
2013-03-12 15:55:30 -07:00
Corey Johnson
9860f32d4c
Add cancel callback to promptToSaveItem
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
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07:00
Kevin Sawicki
115b960ce7
Handle reading and writing in cson.coffee
...
Moves helpers from fs.coffee to cson.coffee
2013-03-11 22:40:00 -07:00