Nathan Sobo
c3e748a17c
WIP: Use rake to start compiling resources (like require.coffee)
2012-08-26 16:29:46 -05:00
Nathan Sobo
c2c8724ad0
Initial commit
2012-08-10 13:32:19 -06:00
Corey Johnson
81f83482b0
Rename File.getName and Directory.getName to .getBaseName
2012-08-02 11:37:49 -07:00
Corey Johnson & Nathan Sobo
69d059d24c
Make TreeView.moveDown work for nested/empty directories
...
If the selected entry is the last entry in a directory that *itself* is the last entry of its parent, we need to search upward through our ancestors for the first directory that has a following sibling entry. Also, if the directory is empty, the attempt to select its first element will fail, so we need to search for a next sibling as well.
2012-07-27 21:27:55 -06:00
Nathan Sobo
334ba6ba82
Ctrl-meta-1 reveals the active file in the tree view
2012-07-26 14:10:02 -06:00
Corey Johnson
9722bde747
don't assume DirectoryViews have entries when serializing
2012-07-25 16:04:08 -07:00
Corey Johnson
c91e28071a
Add deactivate to TreeView
2012-07-25 15:16:13 -07:00
Corey Johnson
70dfdc6cdd
a TreeView without a root path can be serialized
2012-07-25 15:16:13 -07:00
Nathan Sobo
830935cdb8
Kill old TreeView bindings. Ctrl-1 is king.
2012-07-20 18:59:44 -06:00
Nathan Sobo
e8a892ee3e
Start implementing "tool-panel" keymap scheme
...
Tool panels will be mapped to ctrl-# bindings. If the panel is focused, the # binding closes it. Otherwise the # binding shows it (if needed) and focuses it. The esc key unfocuses the panel, but does not necessarily close it. Meta-w always closes the panel.
This is the scheme. Right now we only have 2 panels:
Command Panel: Ctrl-0, esc still hides it
Tree View: Ctrl-1, esc just unfocuses it
2012-07-20 17:56:36 -06:00
Nathan Sobo
6d7a6f9a92
💄 Replace editor.getBuffer().getPath() w/ editor.getPath()
2012-07-04 12:40:17 -06:00
Nathan Sobo
39ce15c3fa
Merge branch 'master' of github.com:github/atom
2012-07-04 12:34:56 -06:00
Nathan Sobo
c90c2e80d6
Replace @buffer reference on Editor with @getBuffer method
2012-07-04 12:34:44 -06:00
Corey Johnson
3aaa8ad8f0
TreeView's add and move create intermediate directories as needed
2012-07-03 15:34:34 -07:00
Corey Johnson
2cb3a0ba69
Move extension keymap files into extension directory
2012-07-03 12:59:51 -07:00
Nathan Sobo
bd5c1f8694
Rename RootView.activeEditor -> getActiveEditor
2012-07-02 19:46:33 -06: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
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
Kevin Sawicki
b5d08ffcf3
Add missing 'r' in scrollToEntry method name
2012-06-14 22:15:28 -07:00
Kevin Sawicki
e6473b63cf
Correct typo in delete detailed message
2012-06-13 14:38:05 -07:00
Nathan Sobo
f000686f07
Method name 💄
2012-06-13 11:49:01 -06:00
Corey Johnson
7364ea79cc
TreeView serializes its attached state
2012-06-04 16:02:50 -07:00
Nathan Sobo
2baf374937
Newline at end of file 💄
2012-06-01 14:01:00 -06:00
Corey Johnson
399fc71b3c
Make Atom SpacePen view's default to empty object (where needed)
2012-05-16 10:35:50 -07:00
Corey Johnson & Nathan Sobo
af65bd785c
fix test failures
2012-05-11 16:06:42 -07:00
Corey Johnson & Nathan Sobo
d51b229d56
When the editor buffer changes and the path is not visible in the TreeView, It selects the closes ancestor entry of that file.
2012-05-11 15:44:18 -07:00
Corey Johnson & Nathan Sobo
2f86a3a6e5
TreeView starts with root being selected
2012-05-11 14:31:48 -07:00
Nathan Sobo
897f505e4f
Meta-/ (tree-view:toggle) attaches / detaches the TreeView
2012-05-08 15:35:03 -06:00
Nathan Sobo
79315b0ef6
Merge branch 'master' of github.com:github/atom
...
Conflicts:
static/command-panel.css
2012-05-08 15:11:27 -06:00
Nathan Sobo
d181cdedbd
Handle errors when attempting to add a file from the TreeView
2012-05-08 15:08:15 -06:00
Nathan Sobo
a59c96d3a9
Flash red and show an error message when there's an error on moving a file
2012-05-08 14:18:21 -06:00
Corey Johnson
935ae3323e
Rename class var @treeView to @instance
2012-05-08 13:17:25 -07:00
Nathan Sobo
b528196d1b
Refactor AddDialog and MoveDialog into a single Dialog class
2012-05-08 13:16:52 -06:00
Nathan Sobo
5645f76289
Merge branch 'master' of github.com:github/atom
2012-05-08 11:28:50 -06:00
Nathan Sobo
01add56985
Can move files to non-existent directories
2012-05-08 11:28:19 -06:00
Corey Johnson
8a921d2799
When the project's path changes, the TreeView's root directory updates.
2012-05-08 09:57:01 -07:00
Corey Johnson
7e32d73d73
TreeView doesn't raise exceptions when RootView's project has no path.
2012-05-08 09:02:35 -07:00
Corey Johnson
2285f764f3
Pressing left arrow on collapsed tree view root no longer raises an exception
2012-05-07 15:39:17 -07:00
Corey Johnson
f75755e90b
Backspace/delete removes a file from the file finder
2012-05-07 15:29:52 -07:00
Nathan Sobo
eeb28111f3
Double clicking a file changes focus to editor. Double clicking a directory toggles expansion. Single clicking doesn't ever change focus away from tree view.
2012-05-07 14:55:33 -06:00
Nathan Sobo
64c65ea0fc
Preserve tree view focus state on refresh
2012-05-07 13:46:18 -06:00
Corey Johnson
886e2caa52
TreeView scrolls to selected path when move-down or move-up are triggered
2012-05-07 10:39:36 -07:00
Corey Johnson
2229c4be21
Moving up in tree view doesn't skip over files inside of directories
2012-05-04 14:56:41 -07:00
Corey Johnson & Nathan Sobo
5d8c23dc82
💄
2012-05-02 16:22:59 -07:00
Corey Johnson & Nathan Sobo
bb689574d0
Project drawer state is restored upon refresh
2012-05-02 16:08:02 -07:00
Corey Johnson
a81105ee38
Change specificity of tree-view:focus (so it can be focused when there is no editor present)
2012-05-02 08:39:05 -07:00
Corey Johnson
62d6431952
💄
2012-05-02 08:36:14 -07:00
Corey Johnson
0951b86acc
Selecting file in tree view opens it in an editor and focuses is
2012-05-02 08:29:22 -07:00
Corey Johnson
f64e258c75
alt-tab toggles between active editor and tree view
2012-05-02 08:27:35 -07:00
Corey Johnson
15d69fbc41
Don't add a trailing slash when adding file to projects root dir
2012-05-01 17:25:48 -07:00