Corey Johnson & Nathan Sobo
9303aaa8fd
Rename root-view: event prefix to window:
2012-10-19 12:51:36 -06:00
Corey Johnson & Nathan Sobo
93cbe2bb22
Create root-view:toggle-invisibles event
2012-10-18 14:44:21 -07:00
Nathan Sobo
eae7fcdd97
Fix breaking due to "root-view:" prefixed events
2012-10-05 10:07:37 -10:00
Kevin Sawicki
6412cde7a8
Support guide column callback function
...
This allows a config function to be registered
in the atom.coffee file to support different wrap
guide columns depending on the type of file being
viewed.
2012-09-29 11:44:05 -07:00
Nathan Sobo
1d9cc53e7f
RootView focuses the *first* focusable child.
...
This prevents an issue where the fuzzy finder's mini-editor would get focused again when the fuzzy finder was being hidden.
2012-09-25 17:38:48 -06:00
Corey Johnson & Nathan Sobo
685cbc3575
When focused, RootView retains focus itself if it has no focusable children
2012-09-25 15:11:07 -06:00
Corey Johnson
d13796074b
RootView passes focus to a child element with a tabindex of -1 (if one exists)
2012-09-25 13:22:06 -07:00
Kevin Sawicki
8393af2cd6
Serialize root view font size
2012-09-20 09:31:04 -07:00
Kevin Sawicki
54180462f6
Match describe to method name
2012-09-19 17:08:17 -07:00
Kevin Sawicki
f7670dc1a0
Add support for save all via meta-S
2012-09-19 17:03:50 -07:00
Corey Johnson & Nathan Sobo
44db540528
All specs pass
2012-08-30 17:12:52 -06:00
Corey Johnson & Nathan Sobo
12b06ddf0c
Get spec suite running (lots of failures)
2012-08-27 17:36:36 -05:00
Nathan Sobo
c2c8724ad0
Initial commit
2012-08-10 13:32:19 -06:00
Nathan Sobo
252a1a4d5f
💄
2012-07-26 10:29:42 -06:00
Corey Johnson
470e8a6191
Add rootView.deactivateExtension
2012-07-25 15:45:21 -07:00
Corey Johnson & Nathan Sobo
d36873f702
Rename Project.open to Project.buildEditSessionForPath
2012-07-18 11:20:13 -07:00
Nathan Sobo
4b147c04e5
RootView.proto.open returns the opened edit session
2012-07-17 14:44:04 -06:00
Corey Johnson & Nathan Sobo
c3fe9aa0b3
Implement refcounting scheme on Buffer
2012-07-17 14:24:33 -06:00
Nathan Sobo
b254fa39d9
💄 Replace editor.getBuffer().getText() w/ editor.getText()
2012-07-04 12:41:51 -06:00
Nathan Sobo
6d7a6f9a92
💄 Replace editor.getBuffer().getPath() w/ editor.getPath()
2012-07-04 12:40:17 -06:00
Nathan Sobo
c90c2e80d6
Replace @buffer reference on Editor with @getBuffer method
2012-07-04 12:34:44 -06:00
Nathan Sobo
9cae4d3d8f
Rename RootView.editors -> getEditors
2012-07-02 19:47:38 -06:00
Nathan Sobo
bd5c1f8694
Rename RootView.activeEditor -> getActiveEditor
2012-07-02 19:46:33 -06:00
Nathan Sobo
a38042f89f
Rename Editor.removeActiveEditSession -> destroyActiveEditSession
2012-07-02 19:44:24 -06:00
Corey Johnson
801a91ec9b
Specs cleanup buffers
2012-06-29 15:38:12 -07:00
Corey Johnson
c3d7d3566f
Buffer listens for changes to file and triggers 'contents-change' event
2012-06-29 15:09:31 -07:00
Nathan Sobo
6c60993f5c
Fuzzy buffer finder switches to the editor that has the selected buffer if it isn't open on the current active editor
2012-06-29 09:59:37 -06:00
Nathan Sobo
22515e7ba0
RootView.open takes an 'allowActiveEditorChange' option
...
When the 'allowActiveEditorChange' option is true, RootView will try to activate an existing edit session for the given path on *any* editor, and switch focus there. This will be used by the fuzzy-finder for the meta-b option, which should open the chosen buffer on the editor that contains it, even if it isn't currently active.
2012-06-29 09:48:16 -06:00
Corey Johnson & Nathan Sobo
4e78b29e81
Replace Editor.setBuffer with Editor.edit
2012-06-20 09:28:23 -07:00
Nathan Sobo
c21766c328
Add RootView.proto.focusNextPane
2012-06-18 20:27:39 -06:00
Corey Johnson & Nathan Sobo
c02e5bbdbf
Do not allow root view to set a font-size less than 1
2012-06-15 17:30:10 -07:00
Corey Johnson & Nathan Sobo
940b7b0e7a
RootView.proto.activateExtension requires extensions to have names
2012-06-14 11:20:36 -06:00
Corey Johnson & Nathan Sobo
810b9849ee
RootView serialize absorbs exceptions when serializing extensions
2012-06-14 11:20:16 -06:00
Corey Johnson
893564945e
Add rootView.activeKeybindings().
...
This will return all active keybindings available for the focused element.
2012-05-29 15:46:38 -07:00
Corey Johnson
399fc71b3c
Make Atom SpacePen view's default to empty object (where needed)
2012-05-16 10:35:50 -07:00
Nathan Sobo
5b7ea95a11
Meta+ and meta- change the editor font size
2012-05-09 10:57:25 -06:00
Corey Johnson
cb45675f14
Remove @path var from project
2012-05-08 13:02:14 -07:00
Nathan Sobo
9215d7f083
Remove console.log from root view spec
2012-05-08 13:16:24 -06:00
Nathan Sobo
648649d472
Merge branch 'master' of github.com:github/atom
...
Conflicts:
spec/app/root-view-spec.coffee
src/app/root-view.coffee
2012-05-07 19:38:01 -06:00
Nathan Sobo
31163f1d8c
Convert FileFinder to a proper extension and remove references from RootView code
2012-05-07 19:30:07 -06:00
Corey Johnson
e4125448ec
Make RootView.initialize unaware of deserialization.
...
When RootView is created without a pathToOpen, no editor is created.
2012-05-07 17:51:08 -07:00
Corey Johnson
670717ca3b
RootView deactivates extensions when it is deactivated
2012-05-03 17:31:37 -07:00
Corey Johnson & Nathan Sobo
f3c89240a3
Rename RootView.registerExtension() to RootView.activateExtension()
2012-05-03 17:13:09 -07:00
Corey Johnson & Nathan Sobo
5864fa5145
Add RootView.registerExtension()
2012-05-02 15:25:57 -07:00
Corey Johnson
d04be05e95
Root view sets project's path using project.setPath(path)
2012-05-01 10:00:53 -07:00
Corey Johnson
acae9d63ca
fs.directory does not append a trailing '/' to directories
2012-05-01 08:41:35 -07:00
Nathan Sobo
590352b079
RootView emits an 'active-editor-path-change' event whenever the path of the active editor changes for any reason (buffer path change, new buffer opened, focus changes)
2012-04-24 12:50:00 -06:00
Nathan Sobo
3d382955cc
When focus changes to a different editor, highlight its open file in the TreeView
...
Trigger 'active-editor-path-change' event whenever active editor changes or the path of the active editor changes. Rename 'buffer-path-change' to 'editor-path-change' to emphasize that it's the path open in an *editor* that's changing.
2012-04-24 08:51:11 -06:00
Corey Johnson & Nathan Sobo
5e1d7c774c
Serialized Editor state no longer contains Buffer objects
2012-04-18 15:57:58 -07:00
Nathan Sobo
331984148f
Project.proto.open emits a 'new-buffer' event if a new buffer is created
...
RootView.proto.open always uses Project's open method now. RootView creates a project with no path when editing a new buffer, so there's always a project.
2012-04-17 17:15:19 -06:00