Commit Graph

2120 Commits

Author SHA1 Message Date
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
Nathan Sobo
48069dc898 Right arrow expands the selected directory in TreeView 2012-04-24 17:31:46 -06:00
Nathan Sobo
9a1d3e00b2 Implement moving-up in tree view 2012-04-24 16:43:51 -06:00
Nathan Sobo
35b68514ed Down-arrow selects the next entry in the file browser, correctly traversing the file hierarchy 2012-04-24 13:58:37 -06:00
Nathan Sobo
fd900d5760 TreeView entry selection background is green when TreeView is focused 2012-04-24 13:23:37 -06:00
Nathan Sobo
2e49f12119 Don't change the selection when expanding directories 2012-04-24 13:13:22 -06:00
Nathan Sobo
dd736ddf67 TreeView directories can be selected by clicking them. Start on keyboard nav. 2012-04-24 12:51:01 -06:00
Nathan Sobo
34a4bcf224 Clone serialized view state in editor before modifying it in place 2012-04-24 12:50:32 -06: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
Nathan Sobo
a8e476b505 When the directory containing the current active editor's file is expanded, select the file 2012-04-23 17:28:30 -06:00
Nathan Sobo
dc8a9f090a When a file is clicked in the tree view, it is opened in the active editor 2012-04-23 17:13:05 -06:00
Nathan Sobo
ea6930af54 Expanded/collapsed state of directories is preserved when an ancestor is collapsed 2012-04-23 16:23:57 -06:00
Nathan Sobo
607dfb4987 Expand/collapse directories when their disclosure arrow is clicked 2012-04-23 15:29:16 -06:00
Nathan Sobo
b23785f28f Display directories first in the tree view. Style file names at same indent as directory names (beyond disclosure arrow) 2012-04-23 15:00:11 -06:00
Nathan Sobo
55c78e9550 Start on TreeView. It renders the entries in the current project's root directory. 2012-04-23 14:20:17 -06:00
Nathan Sobo
d204c6f5a8 Don't load user configuration in window specs (who knows what's in there?!) 2012-04-23 14:19:50 -06:00
Nathan Sobo
634a15cfb1 Move extensions into src/extensions directory 2012-04-23 10:54:56 -06:00
Nathan Sobo
89ed9f39f1 Strip only trailing whitespace, not newlines. Also, strip *all* trailing whitespace, not just the first. 2012-04-23 10:33:28 -06:00
Nathan Sobo
802a4259e9 Move-to-first-character-of-line no longer explodes on empty lines 2012-04-20 18:11:01 -06:00
Corey Johnson & Nathan Sobo
a6afc319c6 Mini-editors ignore the 'close' event 2012-04-20 17:59:40 -06:00
Corey Johnson & Nathan Sobo
f652b4e357 Position autocomplete menu above cursor if there isn't room below 2012-04-20 17:18:07 -06:00
Corey Johnson & Nathan Sobo
11c465b7fd Canceling autocomplete restores text and selection, even if selection has changed before cancel 2012-04-20 17:17:50 -06:00
Corey Johnson & Nathan Sobo
9d2b005174 When an autocomplete match is clicked, the match is selected and confirmed 2012-04-20 15:41:31 -06:00
Corey Johnson & Nathan Sobo
f0c36ada89 Don't activate autocomplete on its own mini editor 2012-04-20 15:15:55 -06:00
Corey Johnson & Nathan Sobo
41a5f217a5 Scroll to selected match when moving up/down in autocomplete menu 2012-04-20 14:55:54 -06:00
Corey Johnson & Nathan Sobo
1a398ffcb9 Use class instead of id for autocomplete 2012-04-20 14:29:00 -06:00
Corey Johnson & Nathan Sobo
bca7ced632 Editor prevents bubbling on all events it handles 2012-04-20 11:49:24 -07:00