Commit Graph

178 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
713b5a9620 Better $native.exec errors 2012-07-20 14:19:19 -07:00
Nathan Sobo
f5e46e57fc Use bundled ack instead of grep
Our ack is slightly modified to use `'\0'` characters instead of `':'` in the --nogroup listing. This makes it easier to handle both `':'` characters and newlines in filenames, but we aren't really doing that yet.
2012-07-19 09:17:44 -06:00
Corey Johnson & Nathan Sobo
47a9d1284a Reject exec promise with hash instead of string 2012-07-12 12:18:53 -07:00
Corey Johnson & Nathan Sobo
0d35d5613a Non-zero exit codes reject promise with a detailed message 2012-07-12 12:07:32 -07:00
Corey Johnson & Nathan Sobo
2fe56ba077 Remove logging 2012-07-12 11:11:45 -06:00
Nathan Sobo
3854f73c84 WIP: Start on Project.prototype.scan
Right now it calls out to grep and parses the output, but doesn't do anything with it just yet.
2012-07-11 18:50:38 -06:00
Nathan Sobo
db6692b2f6 Fix the $native.exec callback in ChildProcess.exec
It's stderr, not stdin. Also we have to look at exitStatus, not error to see if the process failed. None of this is tested, which is bad.
2012-07-11 18:48:49 -06:00
Nathan Sobo
8f5746c8fe Add bufferLines option to ChildProcess.exec
It ensures that stdout and stderr callbacks are triggered with whole lines
2012-07-11 16:30:50 -06:00
Corey Johnson
2afec5cf53 Add ChildProcess.exec(cmd, [options])
Uses promises for failure and success states. Takes optional stderr and stdout callbacks for incremental reading.
2012-07-10 15:07:28 -07:00
Nathan Sobo
764265e97f Kill console.log 2012-07-04 21:27:13 -06:00
Corey Johnson
2423a7413d Storing cached coffeeScript in /tmp because it overwhelms localstorage 2012-07-03 15:58:12 -07:00
Corey Johnson
4cf4456635 Add fs.makeTree 2012-07-03 14:46:45 -07:00
Corey Johnson
fc660c2790 Add fs.split 2012-07-03 14:44:41 -07:00
Corey Johnson
08b0a686ed fs.directory returns empty string if path has no parent directory 2012-07-03 14:43:56 -07:00
Nathan Sobo
f92faffb5b Use html5 storage to cache coffee script compilation by file md5 2012-07-02 19:21:46 -06:00
Corey Johnson & Nathan Sobo
6ebe75c0bd Add fs.md5ForPath 2012-07-02 18:19:16 -06:00
Nathan Sobo
8c740b09e6 Add fs.lastModified 2012-07-02 17:44:12 -06:00
Corey Johnson
91c361e478 Fix benchmark suit 2012-06-29 15:51:11 -07:00
Nathan Sobo
79d9faba58 Make fs.isFile return false for null/undefined paths 2012-06-27 07:57:05 -06:00
Nathan Sobo
2cb993760b Make fs.exists return false for null/undefined paths 2012-06-27 07:56:02 -06:00
Nathan Sobo
9c02e05051 Preserve the value of this when applying before advice 2012-06-20 17:55:29 -06:00
Nathan Sobo
583af86f68 Add _.adviseBefore for adding before advice to methods 2012-06-20 17:34:21 -06:00
Corey Johnson
321e7b6129 Add $native.reload 2012-06-12 10:52:11 -07:00
Corey Johnson
b5e3977ef2 Use Native class to call saveDialog 2012-06-12 10:52:11 -07:00
Nathan Sobo
2baf374937 Newline at end of file 💄 2012-06-01 14:01:00 -06: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
289193787e Add fs.traverseTree 2012-05-08 17:45:29 -07: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
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
545671a641 fs.isFile(path) returns false if given path does not exist 2012-05-08 13:02:14 -07: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
eef2c54ae8 Native file for $native functions that don't fit anywhere else.
Mostly created so we can make mocks (the pure native methods can't be mocked)
2012-05-07 15:29:52 -07:00
Corey Johnson
0227b11bf3 Fix syntax error in fs.base 2012-05-01 14:26:32 -07:00
Corey Johnson
cb0e576949 Add fs.extension 2012-05-01 14:07:05 -07:00
Corey Johnson
ee51a72721 fs.directory matches commonjs spec 2012-05-01 10:00:13 -07:00
Corey Johnson
acae9d63ca fs.directory does not append a trailing '/' to directories 2012-05-01 08:41:35 -07:00
Corey Johnson & Nathan Sobo
69a76d1b47 Can move files from the tree view 2012-04-27 14:18:55 -07:00
Corey Johnson
fbcd8e43a0 Add fs.makeDirectory 2012-04-26 17:12:20 -07: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
634a15cfb1 Move extensions into src/extensions directory 2012-04-23 10:54:56 -06:00
Nathan Sobo
0024cf89de Auto-complete matches can be fuzzy-filtered. Typing non-word characters confirms the match automatically.
Extract fuzzyFilter function into a file that is shared between file finder and autocompleter. Fix jQuery.fn.preempt to pass its arguments to the event handler.
2012-04-19 18:17:08 -06:00
Corey Johnson & Nathan Sobo
6037d83f2b $.fn.preempt takes namespaced event names 2012-04-18 15:53:42 -07:00
Corey Johnson & Nathan Sobo
6a260a8359 Add $.fn.preempt, which runs the given event handler before any others. 2012-04-18 12:13:05 -07:00
Corey Johnson
1efb712fd3 Rename App.coffee to Atom.coffee. This also required moving src/atom,spec/atom to src/app,spec/app 2012-04-03 10:33:24 -07:00
Nathan Sobo
285c04ea62 WIP: Split panes can be closed with meta-w
Still some issues… view gets screwed up after closing panes in certain layout arrangements.
2012-03-20 12:29:47 -06:00
Nathan Sobo
81e5a10ddd Perform vim-style editor pane splitting
Using percentage dimensions to absolutely position the panes on screen where they need to be located. Flexbox would have been nice, but unfortunately I could not work around what seem to be bugs (or at least major inconveniences) in its current implementation.
2012-03-19 16:48:13 -06:00
Nathan Sobo
60056e57fb Use an editor in the file finder instead of an input element. 2012-03-15 13:41:37 -06:00
Nathan Sobo
4c79b43c52 Add _.remove, which removes an element from an array in place 2012-03-13 18:17:27 -06:00
Corey Johnson & Nathan Sobo
18c8c7e14f Add benchmark suite, which runs with ctrl-alt-meta-b 2012-03-07 18:21:17 -07:00
Nathan Sobo
fc7a13ce05 Rename Buffer.getLine to lineForRow 2012-03-05 16:06:27 -07:00