Commit Graph

69 Commits

Author SHA1 Message Date
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
Corey Johnson
77baa7be09 Extract command panel as an extension 2012-05-08 13:49:06 -07: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
Corey Johnson
cb45675f14 Remove @path var from project 2012-05-08 13:02:14 -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
Nathan Sobo
7017aef3bb Don't add single-line class to editor in command panel and file finder… it's defunct 2012-05-07 19:34:50 -06:00
Nathan Sobo
b554318048 Clear file finder's mini-editor between togglings 2012-05-07 19:33:17 -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
Nathan Sobo
81b7105a52 Merge branch 'master' of github.com:github/atom 2012-05-07 17:31:26 -06:00
Nathan Sobo
2c8bb91d85 Autocomplete is cancelled if the mini editor loses focus before a selection is confirmed 2012-05-07 17:31:14 -06: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
e60e68b69d Focus the root view when file finder closes, not an editor. Will test this when we extract it as an extenison. 2012-05-07 15:20:13 -06: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
Corey Johnson
17fb34ec96 do not select the extension of a file path when the move dialog triggered 2012-05-01 14:26:45 -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
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
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
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
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
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
0af5e32432 Fix TreeView errors on expansion and contraction 2012-04-26 12:35:44 -06:00
Nathan Sobo
5156a37471 WIP: Tree view spec isn't there yet 2012-04-26 09:32:49 -06:00