Kevin Sawicki & Nathan Sobo
3b0748fe44
Add config.pushAtKeyPath/removeAtKeyPath
2013-05-16 10:51:23 -07:00
Kevin Sawicki & Nathan Sobo
2b49a04227
Return a cloned object from config.get()
...
This prevents mutations to the values of the default settings.
2013-05-16 10:29:08 -07:00
Kevin Sawicki
2f54cb4c22
Use season module internally
2013-05-14 11:58:34 -07:00
probablycorey
70191ea368
Don't store config values that equal their default config value
...
If 'foo' has not been set and has a default value of 1,
config.set('foo', 1) will not store the 1.
If 'foo' has been set to X and has a default value of 1,
config.set('foo', 1) will remove 'foo' from config
2013-05-02 12:05:56 -07:00
Kevin Sawicki
986e5f9c7a
Default to 80 when editor.preferredLineLength <= 0
...
Previously any non-null value would be used as the target
column in the wrap guide and autoflow packages when really
80 should have been used if the value was non-postive.
Now config.getPositiveInt() is called with a default value
of 80 if the current value isn't already positive.
2013-04-30 22:37:02 -07:00
Corey Johnson & Nathan Sobo
1b98bf706e
Setting value to null/undefined removes key from config
2013-04-26 15:36:58 -07:00
Nathan Sobo
f62e81bca8
Add config.observeUserConfig
2013-04-26 15:32:46 -07:00
Nathan Sobo
ab1b90804e
Add specs for successful calls to .loadUserConfig
2013-04-26 15:31:18 -07:00
Nathan Sobo
9fe264ded4
💄
2013-04-26 15:31:18 -07:00
Kevin Sawicki
b65e1485a7
Copy folders to ~/.atom directory asynchronously
2013-04-24 10:12:30 -07:00
Nathan Sobo
f03b6207de
Make all requires of 'fs-utils' assign to fsUtils var instead of fs
2013-04-03 12:01:37 -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
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
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07: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
Corey Johnson & Kevin Sawicki
31d8151c3e
Copy themes to ~/.atom/themes when config loads
2013-02-22 14:46:30 -08:00
Corey Johnson & Kevin Sawicki
fa81871907
Initialize ~/.atom when config is loaded
...
Closes #299
2013-02-22 14:46:30 -08:00
Kevin Sawicki
bd88a0de15
Support CSON config file
...
Use ~/.atom/config.cson as the new default when no
config file exists.
~/.atom/config.json is still the default if they both
exist.
2013-02-04 12:38:00 -08:00
Nathan Sobo
af3d3bf4cc
💩 Reset fs.write mock before test.
2013-01-04 18:08:52 -07:00
Nathan Sobo
d509093076
Don't write config defaults out to config.json
2013-01-04 17:08:25 -07:00
Nathan Sobo
fc9bf38a2a
*Must* use get and set to access config values.
...
The `config` object no longer stores config properties directly. Instead it stores them on an internal `settings` object, which makes it easier to serialize settings without getting them mixed up with non-setting state on the `config` object.
2012-12-17 20:56:37 -07:00
Nathan Sobo
b82fe25b99
When observing a key path, compare its new & old values structurally
2012-12-17 19:00:47 -07:00
Nathan Sobo
a7d1a29748
Use config.get/set methods. config.update now takes no args.
2012-12-17 18:52:20 -07:00
Corey Johnson & Nathan Sobo
8a675fd538
Use config.update w/ a key path everywhere we update the config
2012-12-14 15:21:36 -08:00
Nathan Sobo
0a1b389994
Add Config#observe, which watches a key path for changes
2012-12-12 18:19:02 -08:00