Commit Graph

2088 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
22548141d7 Editor updates lines when it is resized 2012-05-10 11:14:03 -07:00
Corey Johnson & Nathan Sobo
f6e9d99865 Editor only does not pre-build lines, it only builds them when they are visible on the screen 2012-05-10 10:40:16 -07:00
Corey Johnson & Nathan Sobo
d76cc521bd When no words are found, autocomplete does not raise an exception 2012-05-10 10:39:09 -07:00
Corey Johnson & Nathan Sobo
6eda0d345b 💄 2012-05-10 08:58:38 -07:00
Nathan Sobo
1e2d333a15 WIP: working on only rendering on-screen lines. still half-baked. 2012-05-10 09:27:04 -06:00
Corey Johnson & Nathan Sobo
5ae40a3cb8 Editor only renders lines when it is attached to the DOM 2012-05-09 19:19:54 -06:00
Nathan Sobo
b369c09fa0 Benchmark method takes an optional repeat count after the description. Refactor benchmark helper. 2012-05-09 18:11:31 -06:00
Corey Johnson & Nathan Sobo
13f89f5d96 Benchmark opening large file 2012-05-09 16:22:07 -07:00
Corey Johnson & Nathan Sobo
3fcc9b9a0c optimization: Use hash instead of _.unique when building autocomplete word list 2012-05-09 16:12:49 -07:00
Corey Johnson & Nathan Sobo
cfd8d5bf8e Add benchmarkOnce 2012-05-09 16:11:35 -07:00
Corey Johnson & Nathan Sobo
8f77211f04 Cursor.getBeginningOfCurrentWordBufferPosition only uses the previous 2 lines for its scan range.
previous: editor.9000-line-file.at-end.move-to-beginning-of-word: 4695 / 100 = 46.95ms
new:      editor.9000-line-file.at-end.move-to-beginning-of-word: 1618 / 100 = 16.18ms
2012-05-09 12:24:27 -07:00
Corey Johnson & Nathan Sobo
faa0ec2199 log benchmark reports 2012-05-09 12:24:27 -07:00
Corey Johnson & Nathan Sobo
d3127a2686 slowed cursor blink down 2012-05-09 12:24:27 -07:00
Nathan Sobo
5b7ea95a11 Meta+ and meta- change the editor font size 2012-05-09 10:57:25 -06:00
Nathan Sobo
f2f44b9ab6 Can match key patterns with the '-' character
Add a parser to parse keystroke patterns instead of splitting on '-' with a regex
2012-05-09 10:56:31 -06:00
Nathan Sobo
8b1ac28b89 Editor font sizes can be adjusted with RootView.proto.setFontSize 2012-05-09 08:34:08 -06:00
Nathan Sobo
71d80470ca Remove console.log 2012-05-09 08:33:34 -06:00
Nathan Sobo
6dda27e771 Go ahead and build a RootView in the editor spec 2012-05-08 20:20:56 -06:00
Nathan Sobo
c734e1e41b Remove @previouslyActiveElement from file finder. Always focus the root view on detach. 2012-05-08 20:14:35 -06:00
Nathan Sobo
dc4529887a File finder detaches itself when it loses focus 2012-05-08 20:07:49 -06:00
Corey Johnson & Nathan Sobo
4665321b37 Project.getFilePaths does not traverse into ignored directories 2012-05-08 17:59:38 -07:00
Corey Johnson & Nathan Sobo
289193787e Add fs.traverseTree 2012-05-08 17:45:29 -07:00
Corey Johnson
d9d78ada51 File finder calls detach (instead of remove) when a file is selected 2012-05-08 15:35:34 -07:00
Corey Johnson
d35efb6241 When FileFinder is canceled, it refocuses previously focused element 2012-05-08 15:35:01 -07:00
Corey Johnson
bc3b982514 Rename fileFinder.editor to fileFinder.miniEditor 2012-05-08 15:09:19 -07:00
Corey Johnson
4bd4b0d496 When there is a selection, tab/shift-tab indent/outdent selected text 2012-05-08 14:40:47 -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
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
Corey Johnson
545671a641 fs.isFile(path) returns false if given path does not exist 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
9215d7f083 Remove console.log from root view spec 2012-05-08 13:16:24 -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
f4c5536391 Add path-change event to Project 2012-05-08 09:45:39 -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
af2263f49b Don't activate TreeView extension in window. It was breaking specs. 2012-05-07 19:46:49 -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
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
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
dd1e617a41 remove compiled coffee file from src dir 2012-05-07 17:51:08 -07: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