Commit Graph

1993 Commits

Author SHA1 Message Date
Corey Johnson
cb0e576949 Add fs.extension 2012-05-01 14:07:05 -07:00
Corey Johnson
7dbcb80339 When a file/directory is created, it is selected in the treeview 2012-05-01 13:43:59 -07:00
Corey Johnson
f563579e20 Unwatch all paths on any page load 2012-05-01 13:06:36 -07:00
Corey Johnson
c302ea5c95 Create FileView class. Instead of adding a path attar, FileView and DirectoryView have a getPath method 2012-05-01 10:47:08 -07:00
Corey Johnson
6660eea6ba Add FileView class 2012-05-01 10:08:30 -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
ee51a72721 fs.directory matches commonjs spec 2012-05-01 10:00:13 -07:00
Corey Johnson
28f39cbdab When project's constructor is given a file as its path, it sets its path to the parent directory of the given file 2012-05-01 09:18:22 -07:00
Corey Johnson
acae9d63ca fs.directory does not append a trailing '/' to directories 2012-05-01 08:41:35 -07:00
Corey Johnson
24ce2d362a Add path attr to DirView element 2012-04-30 17:43:25 -07:00
Corey Johnson & Nathan Sobo
5a836f5aaf Tree view resonds to tree-view:add events 2012-04-30 12:04:17 -07:00
Corey Johnson & Nathan Sobo
d9ef9d1204 Organize tree view extension into it's own directory 2012-04-30 10:15:21 -07:00
Corey Johnson & Nathan Sobo
d0b255e57b Focus returns to tree view when a dialog is canceled with escape 2012-04-30 09:25:45 -07:00
Corey Johnson & Nathan Sobo
daa051339c 💩 2012-04-30 08:49:27 -07:00
Nathan Sobo
abcf71af8b Focus the root view when canceling the move dialog.
This is temporary, because we really want to focus the tree view, but less annoying for now than losing focus entirely.
2012-04-27 18:08:30 -06:00
Nathan Sobo
18ccee32b8 Add a prompt to the move dialog 2012-04-27 17:27:08 -06:00
Corey Johnson & Nathan Sobo
69a76d1b47 Can move files from the tree view 2012-04-27 14:18:55 -07:00
Corey Johnson & Nathan Sobo
4ca75b02c5 Move-dialog overlays the bottom of the RootView instead of appearing next to the element 2012-04-27 10:39:55 -06:00
Corey Johnson & Nathan Sobo
d737d97a81 Merge branch 'master' of github.com:github/atom 2012-04-27 10:25:45 -06:00
Corey Johnson & Nathan Sobo
466ad3cfc1 Add #horizontal flexbox container to RootView. TreeView places itself inside it. 2012-04-27 10:24:30 -06:00
Corey Johnson
0a39ca25a9 Pressing 'm' in tree view brings up a move dialog 2012-04-26 17:12:56 -07:00
Corey Johnson
fbcd8e43a0 Add fs.makeDirectory 2012-04-26 17:12:20 -07:00
Nathan Sobo
f37017b94c Test that removing a file updates the view for its containing directory in the TreeView 2012-04-26 15:59:42 -06:00
Nathan Sobo
47c013f817 After each spec runs, make sure there are no subscriptions on directories (which would leak memory) 2012-04-26 15:54:54 -06:00
Nathan Sobo
fb6a967a18 EventEmitter.off with no args removes all subscriptions 2012-04-26 15:54:12 -06:00
Nathan Sobo
5996233d96 Un-F 2012-04-26 13:03:54 -06:00
Nathan Sobo
c4e5c282a8 Merge branch 'kq' of github.com:github/atom into kq 2012-04-26 13:01:33 -06:00
Nathan Sobo
8425fb8d84 When a directory view is collapsed, unwatch its directory and those of all descendant expanded directory views. 2012-04-26 13:00:48 -06:00
Nathan Sobo
cd7c1e970f Fix spec that wasn't actually testing anything 2012-04-26 12:38:52 -06:00
Nathan Sobo
0af5e32432 Fix TreeView errors on expansion and contraction 2012-04-26 12:35:44 -06:00
Nathan Sobo
d6f5a5631c If temporary file is present in beforeEach, wait 20ms after deleting it to ensure the add event fires 2012-04-26 12:20:18 -06:00
Corey Johnson
dbbace912d un-f 2012-04-26 11:05:48 -07:00
Corey Johnson
4221cc7a98 Forgot dealloc 2012-04-26 11:05:18 -07:00
Nathan Sobo
05bcd3e5e0 Fix EventEmitter… need to wait until after the loop to return! 2012-04-26 11:59:47 -06:00
Nathan Sobo
42a3a4664f Merge branch 'kq' of github.com:github/atom into kq 2012-04-26 11:38:38 -06:00
Nathan Sobo
3f9ab11469 Merge branch 'master' into kq 2012-04-26 11:38:22 -06:00
Nathan Sobo
64a91148cd Upgrade to SpacePen 3b85ccfb0ec43, which replace 'attach' events with 'afterAttach' hooks 2012-04-26 11:37:56 -06:00
Corey Johnson & Nathan Sobo
42c6b92cfe Unwatch all paths before reload is triggered 2012-04-26 09:46:34 -07:00
Corey Johnson & Nathan Sobo
6de031c41e Clean up after paths are unwatched. Add [PathWatcher unwatchAll] 2012-04-26 09:46:14 -07:00
Nathan Sobo
5156a37471 WIP: Tree view spec isn't there yet 2012-04-26 09:32:49 -06:00
Nathan Sobo
5c057e11b1 Make unwatchPath spec make a valid negative assertion and return the watchId from $native.watchPath 2012-04-25 20:14:35 -06:00
Corey Johnson & Nathan Sobo
3ac49e1cd5 add $native.unwatch(path, id) 2012-04-25 18:03:51 -07:00
Corey Johnson & Nathan Sobo
54d869c52e Add Directory spec 2012-04-25 17:38:33 -06:00
Corey Johnson & Nathan Sobo
b35823b912 PathWatcher no longer opens multiple file descriptors for the same path and other 💄 2012-04-25 17:38:25 -06:00
Nathan Sobo
7970b876dc Remove directory watch when directory view is removed 2012-04-25 17:37:32 -06:00
Corey Johnson & Nathan Sobo
5aed1b012a PathWatcher executes callback when path is changed 2012-04-25 13:49:53 -07:00
Corey Johnson & Nathan Sobo
3f97d98ef9 Start on directory change events 2012-04-25 11:33:44 -06:00
Corey Johnson & Nathan Sobo
ddc29f294c 💄 2012-04-25 10:40:21 -06:00
Nathan Sobo
3fe6a699cc Pressing enter in TreeView opens selected file or toggles selected directory 2012-04-24 18:19:24 -06:00
Nathan Sobo
7e7d37859f Right arrow collapses directories in TreeView 2012-04-24 18:08:29 -06:00