Nathan Sobo
b110f430ee
Update 'config.themes' config key when enabled themes list is sorted
2013-04-26 15:36:13 -07:00
Nathan Sobo
7993e3ab39
WIP: don't allow duplicates to be dragged
2013-04-26 15:36:13 -07:00
Nathan Sobo
540c543984
Add a styled but non-functional themes config panel
2013-04-26 15:36:13 -07:00
Nathan Sobo
af02d9f0fd
Use config defaults to default themes to atom-dark-*
2013-04-26 15:36:13 -07:00
Nathan Sobo
36d0b2c735
No need for jQuery UI in package config panel
2013-04-26 15:36:13 -07:00
Nathan Sobo
7518864938
Set initial size of config window to 800x600
2013-04-26 15:36:13 -07:00
Nathan Sobo
2d00d3e07e
Import variables.less into config.less so it can be compiled alone
...
We try to compile all stylesheets across the board, but now many of
our stylesheets are imported into a master `atom.less` stylesheet. The
config stylesheet would compile fine when included from `atom.less`,
but alone it fails because it doesn't have the variables. We should
probably only try to pre-compile stylesheets we intend to require
directly… using a manifest maybe?
2013-04-26 15:36:13 -07:00
Nathan Sobo
0d520e9930
Add a package config panel with the list of enabled packages
2013-04-26 15:36:13 -07:00
Nathan Sobo
b70ff1b164
Don't assign window.jQuery in jasmine-jquery.js helper
...
I wrap it in a function wrapper to ensure that the assignment
`var jQuery` doesn't end up assigning a window global.
2013-04-26 15:36:13 -07:00
Nathan Sobo
ba6d3a1124
Use bootstrap to style editor config panel
2013-04-26 15:36:13 -07:00
Nathan Sobo
ac65e288df
Pull config stylesheet into atom.less
2013-04-26 15:36:12 -07:00
Nathan Sobo
c5e34c60f8
Don't explode if 'core.themes' config key is undefined
2013-04-26 15:36:12 -07:00
Nathan Sobo
5a291e8188
Use bootstrap stacked nav-pills for panels menu in config window
2013-04-26 15:36:12 -07:00
Nathan Sobo
ab5156c5e3
Clear out some styling cruft that will be replaced by bootstrap stuff
2013-04-26 15:36:12 -07:00
Nathan Sobo
360a3076a8
Fix jqueryui-browser npm version
2013-04-26 15:36:12 -07:00
Nathan Sobo
0af9564d1a
Styling 💄
2013-04-26 15:36:12 -07:00
Nathan Sobo
21f83ea938
Add 'x' icon to enabled themes list
2013-04-26 15:36:12 -07:00
Nathan Sobo
81c1769770
Allow available themes to be dragged to sortable 'enabled themes' list
...
Still not doing anything with the sort update events.
2013-04-26 15:36:12 -07:00
Nathan Sobo
0620d19f26
Require jquery-ui-sortable and -draggable in the general config panel.
...
This commit has a hack to make window.jQuery available during the
duration of the requiring of jquery-ui. Once we're done requiring
jQuery, the global is removed from window once again.
Issue #494 has an alternative idea of enhancing require to allow the
requiring script to specify the value of global variables in the script
being required.
2013-04-26 15:36:12 -07:00
Nathan Sobo
46acb6da2c
Style themes and packages lists
2013-04-26 15:36:12 -07:00
Nathan Sobo
e8a66ded01
🙊
2013-04-26 15:36:12 -07:00
Nathan Sobo
c90579956f
Un-f
2013-04-26 15:36:11 -07:00
Nathan Sobo
d857cc7d77
List available themes in general config panel
2013-04-26 15:36:11 -07:00
Nathan Sobo
495230435f
Allow packages to be enabled / disabled from general config panel
2013-04-26 15:36:11 -07:00
Nathan Sobo
707ed3c51a
Make config panels to scroll vertically if needed
2013-04-26 15:36:11 -07:00
Nathan Sobo
027bada7d5
Add editor.nonWordCharacters to editor config panel
2013-04-26 15:36:11 -07:00
Nathan Sobo
58add85f09
Add editor.showLineNumbers option
2013-04-26 15:36:11 -07:00
Nathan Sobo
7359101bac
Add core.hideGitIgnoredFiles option
2013-04-26 15:36:11 -07:00
Nathan Sobo
4e787ceb43
Fix typo
2013-04-26 15:36:11 -07:00
Nathan Sobo
ff76911e4c
Move autosave to general config panel
2013-04-26 15:36:11 -07:00
Nathan Sobo
f0cddf9f32
Serialize the state of the config window on refresh
2013-04-26 15:36:11 -07:00
Nathan Sobo
c32c894d23
Add more editor config properties
2013-04-26 15:34:48 -07:00
Nathan Sobo
422d89a7ed
Handle checkbox fields in config panel
2013-04-26 15:34:48 -07:00
Nathan Sobo
5e0dd80366
Remove overkill assertions
2013-04-26 15:34:48 -07:00
Nathan Sobo
bfbdfb46a8
Use id instead of name for config key path
2013-04-26 15:32:48 -07:00
Nathan Sobo
91e3fbd2d8
Allow native event handling for non-editor input elements
...
This allows arrow keys, tab, etc. to work properly inside input
elements.
2013-04-26 15:32:48 -07:00
Nathan Sobo
6c640133f1
Add 'native!' keymap override to let the browser handle the keystroke
...
This allows us to selectively opt out of handling key events with the
keymap for certain elements. In particular, it will be useful for
allowing the standard native behavior in input elements by overriding
global bindings for arrow keys, backspace, etc.
2013-04-26 15:32:47 -07:00
Nathan Sobo
bb287cb465
Add ConfigPanel superclass that can bind fields to config values
...
When you give a config field a `name` attribute based on a config key
path, such as 'editor.fontSize', it is automatically kept in sync with
the config value. You can also specify a `type` attribute of 'int' or
'float' to automatically convert the field value to a numeric type.
Specifying a type of 'string' is optional to signal no conversion.
2013-04-26 15:32:47 -07:00
Nathan Sobo
252159afcf
Add super basic styling to config view and 2 non-functional panels
2013-04-26 15:32:47 -07:00
Nathan Sobo
6c43fd5c9d
Set up dev tools event handler when binding default keys
2013-04-26 15:32:47 -07:00
Nathan Sobo
2f60ffcfce
Add ability to add panels to the config view
2013-04-26 15:32:47 -07:00
Nathan Sobo
8980a97895
Add atom.activatePackageConfig, which is called in config windows
...
This calls an optional `activateConfig` method on the package's main
module, which allows it to add a configuration interface to the
`configView`.
2013-04-26 15:32:47 -07:00
Nathan Sobo
160b80b47f
Open a custom config window on 'open-user-configuration' event
2013-04-26 15:32:47 -07:00
Nathan Sobo
df064ddd21
Use isDevMode method to determine whether to use bundle resource path
2013-04-26 15:32:46 -07:00
Nathan Sobo
9d2d3d5c00
Rename window methods to distinguish editor window from config window
2013-04-26 15:32:46 -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
Corey Johnson & Kevin Sawicki
0e3f9297fb
Only pass instances of EditSession to CommandInterpreter
2013-04-26 14:54:15 -07:00
Garen Torikian
7fdfd71382
💄
2013-04-26 14:45:18 -07:00