Kevin Sawicki
cb4f392fa6
Set tab index on root-view to 0
...
Previously if the tree-view was open and was focused and no
editors were open and tab was pressed the document body would
become focused which would not allow events bound to root view
to be triggerable.
This ensures that the root-view always gets focus back when
another view is tabbed away from.
2013-01-27 10:49:17 -08:00
Brian Lopez & Nathan Sobo
23e917147d
Make view deserialization work with arbitrary view classes
2013-01-17 16:32:28 -08:00
Kevin Sawicki
d47e59bc11
💄
2013-01-11 16:49:04 -08:00
Kevin Sawicki
eaa164e109
Use subscribe for window focus event handler
2013-01-11 10:37:33 -08:00
Kevin Sawicki
d27080cee6
Always set pathToOpen in RootView.initialize
...
Without this an untitled buffer will be opened when
Atom is reopened after being closed with no editors
open.
2013-01-10 16:24:40 -08:00
Kevin Sawicki
6d914cdc7a
Don't attach the TreeView if RootView's path to open is a file
2013-01-10 14:11:56 -08:00
Corey Johnson
c3a2b99b69
Merge pull request #124 from github/auto-indent-config
...
Auto-indent config
2013-01-10 11:02:54 -08:00
Corey Johnson
0c0d48b8f6
Add commands to toggle auto-indent options
2013-01-10 10:40:05 -08:00
Kevin Sawicki & Nathan Sobo
06e39595ba
Make RootView listen for events before loading packages
...
This is because RootView listens to some of its own events. It needs
to be first in line to handle its own events because package event
handlers might rely on tree view's event handlers having been run.
This also brings behavior more in line with what we'll experience in
specs.
2013-01-09 19:27:19 -07:00
Kevin Sawicki & Nathan Sobo
3db7af1edf
Don't show the tree view until the project has a path
2013-01-09 19:27:19 -07:00
Nathan Sobo
46331ded03
Merge remote-tracking branch 'origin/command-extensions' into dev
...
Conflicts:
spec/app/editor-spec.coffee
spec/app/root-view-spec.coffee
src/app/editor.coffee
src/extensions/strip-trailing-whitespace.coffee
2013-01-09 14:18:10 -07:00
Kevin Sawicki
3e7f710b35
💄
2013-01-09 11:07:45 -08:00
Corey Johnson
d4b74f9858
Migrate to new RootView serialization scheme
2013-01-09 10:43:41 -08:00
Corey Johnson & Kevin Sawicki
131708ba37
Serialize grammar overrides for paths
2013-01-08 15:24:14 -08:00
Nathan Sobo
0624ebaf5d
Set config defaults for a package from its module's configDefaults
2013-01-04 17:23:24 -07:00
Nathan Sobo
8591c86733
Pass a name string to RootView.activatePackage & deactivatePackage
...
Previously we were relying on the package module itself to have a
`name` field. But now that we're using `atom.loadPackage` to load up
packages, we can infer the name of the module from the name of the
package directory.
2013-01-04 14:33:01 -07:00
Kevin Sawicki & Nathan Sobo
2ffc0cf13d
Rename 'active-editor-path-change' to 'root-view:active-path-changed'
2013-01-04 11:25:45 -07:00
Kevin Sawicki & Nathan Sobo
0589012e86
Rename 'editor-path-change' to 'editor:path-changed'
2013-01-04 11:25:45 -07:00
Nathan Sobo
bb913ef9e8
Merge branch 'config'
2012-12-31 12:43:25 -06:00
Kevin Sawicki
e1db5432dd
Support toggling dev tools from event palette
2012-12-29 10:31:38 -08:00
Nathan Sobo
f4d53a017c
Merge branch 'master' into config
2012-12-28 11:32:24 -06:00
Kevin Sawicki
575e34d5e4
Forward window focus when active element is body
...
This problem was when the focus element is detached
when navigating away from the window and when
the window is then given focus again nothing has
focus.
The solution is to use RootView's focus handler
on the window to bring focus to the editor or
other view when the document's active element
is the body meaning nothing inside the RootView
currently has focus.
2012-12-27 21:56:43 -08:00
Corey Johnson
4244e673af
Load themes from Config.load
2012-12-27 15:52:09 -08:00
Corey Johnson
0d946078c9
Atom Themes can be loaded
2012-12-27 14:31:13 -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
Kevin Sawicki
b937e0dfbd
Remove unused require
2012-12-18 22:19:22 -08: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
Nathan Sobo
e2457b90ac
Disable extensions w/ config.core.disabledExtensions
...
This replaces the `config.core.extensions` array with just an array of the extensions you don't want to load. The previous solution was attempting to allow the user to control extension load order, but we're not actually sure that's a good idea and this is simpler.
2012-12-17 21:06:36 -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
a7d1a29748
Use config.get/set methods. config.update now takes no args.
2012-12-17 18:52:20 -07:00
Corey Johnson & Nathan Sobo
bc49be6c2c
Move project.ignoredNames to config.core.ignoredNames
2012-12-17 16:54:09 -08:00
Nathan Sobo
d311dac39f
💄
2012-12-16 11:29:52 -08:00
Corey Johnson & Nathan Sobo
cc44508b58
Register extensions in core.extensions on Config.load
2012-12-14 16:38:44 -08: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
Kevin Sawicki & Nathan Sobo
49d817a9c4
Observe the config from tree view to show/hide git-ignored files
2012-12-12 18:19:21 -08:00
Nathan Sobo
3c2b84a46d
Add config.editor.fontSize
2012-12-12 15:23:36 -08:00
Nathan Sobo
8088e4d90c
Add config.editor.invisibles field for customizing invisible glyphs.
2012-12-12 14:45:58 -08:00
Nathan Sobo
db0a39679c
Remove showInvisibles constructor param on Editor
...
And remove `showInvisibles` state from the `RootView` now that it's managed via `config`.
2012-12-12 13:55:27 -08:00
Nathan Sobo
d89549c58a
Load config from config.json. Set theme with config.core.theme.
2012-12-12 12:15:08 -08:00
Nathan Sobo
9c31ab3a79
Add global config object. Config#load loads user's atom.coffee.
2012-12-12 11:40:09 -08:00
Kevin Sawicki
55f88d2d76
Make toggle-ignored-files a window event
2012-11-19 09:30:21 -08:00
Kevin Sawicki
34e5e4a65b
Merge branch 'master' into ignore_git_ignored_paths_in_file_finder
2012-11-19 09:17:09 -08:00
Corey Johnson
5bdfc49f3f
Window's title matches TextMate pattern of "#{basename} – #{project.path}"
2012-11-15 17:08:37 -08:00
Corey Johnson
7f999f4a96
Store the RootView's title as a member var instead of on document.title.
...
Now the window title is mocked to remain static when the spec suite is run.
2012-11-15 15:55:37 -08:00
Will Farrington
ee51e2ea0c
Add toggle ignored files command
2012-11-09 12:05:14 -08:00
Kevin Sawicki
ee4849fe20
Extend existing invisibles hash with parameter
2012-11-02 17:51:22 -07:00
Kevin Sawicki
910ca47a61
Allow setting of invisibles on editor
2012-11-02 17:51:22 -07:00
Kevin Sawicki
9002130ad5
Assign invisiblesMap directly from param
2012-11-02 17:51:22 -07:00
Kevin Sawicki
6d7fac2bf8
💄
2012-11-02 17:51:22 -07:00
Will Farrington
8dbeb9f3d2
first spike at customizable invisibles characters
2012-11-02 17:51:16 -07:00