Commit Graph

173 Commits

Author SHA1 Message Date
Kevin Sawicki
8195206d04 Check that pointer 2012-11-02 15:33:38 -07:00
Kevin Sawicki
f5db2b63d8 Add specs for Git.isIgnored 2012-11-02 15:33:38 -07:00
Kevin Sawicki
20c69118ff Decorate ignored files/folders in tree-view 2012-11-02 15:33:38 -07:00
Kevin Sawicki
9ec1a2c406 💄 2012-11-02 15:33:37 -07:00
Kevin Sawicki
8e8ab4ff94 Add getPath helper 2012-11-02 15:33:37 -07:00
Kevin Sawicki
34bf39e364 Take char* path in constructor 2012-11-02 15:33:07 -07:00
Kevin Sawicki
a3ef53f8e6 Return repository for all paths 2012-11-02 15:33:07 -07:00
Kevin Sawicki
4c80b1e4ef 💄 2012-11-02 15:33:07 -07:00
Kevin Sawicki
e4fb12a398 Add octicon to branch label 2012-11-02 15:31:11 -07:00
Kevin Sawicki
8831c2a2dc Return SHA-1 when HEAD is detached 2012-11-02 15:31:10 -07:00
Kevin Sawicki
14302c491d Show current branch in status bar 2012-11-02 15:31:10 -07:00
Kevin Sawicki
c425b58093 Spec out more $git methods 2012-11-02 15:30:06 -07:00
Kevin Sawicki
1b42bd9662 Add $git.isRepository 2012-11-02 15:30:06 -07:00
Kevin Sawicki
17c3621853 Add native Git v8 extension 2012-11-02 15:30:06 -07:00
Nathan Sobo
980c5d6b11 Add support for native tracing w/ atom.begin/endTracing in console.
* Open the dev tools console
* Call `atom.beginTracing()`
* Do stuff
* Call `atom.endTracing()`
* Save the file somewhere
* Open `about:tracing` in chrome and load the file
* Inspect away!
2012-10-31 11:39:58 -06:00
Nathan Sobo
e649b2e6c6 Handle standard pasteboard keybindings in the dev tools
This commit adds a boolean constructor parameter to the AtomCefClient indicating whether it should handle the standard pasteboard commands for its associated browser. We pass `true` when constructing the client for the dev tools, so these commands work there.
2012-10-29 11:45:16 -06:00
Corey Johnson
70976a96a8 Don't explicitly require .coffee files 2012-10-26 15:36:15 -07:00
Kevin Sawicki
0e89c7a673 💄 2012-10-26 10:41:40 -07:00
Corey Johnson & Nathan Sobo
973c69a043 Ignore rename events for files that have already been deleted 2012-10-26 11:15:22 -06:00
Nathan Sobo
edf7f6611f Avoid crash in PathWatcher when renaming to a null path
I added some logging for the time being, because this seems weird, but at least it doesn't crash anymore.
2012-10-25 14:20:49 -06:00
Nathan Sobo
031da13316 Remove unused methods from native OnigRegExp
`OnigScanner` takes over these duties
2012-10-25 12:23:37 -06:00
Corey Johnson & Nathan Sobo
fcbbe0a29b Do not use cached results for regexes that contain \G. 2012-10-22 11:04:20 -07:00
Corey Johnson
2635631d81 Always retain _resoucePath 2012-10-19 14:24:00 -07:00
Corey Johnson
8a65017ce1 rake install creates atom-stable binary
This allows us to use Atom to edit Atom, even when changes will break Atom on reload. It does this by ensuring the editor only uses code included with the bundle, but it allows benchmarks and specs to use code located in the path specified by --resource-path.
2012-10-16 09:05:38 -07:00
Corey Johnson
a736063e7e Force CEF to reload if window.reload doesn't exist 2012-10-15 12:06:36 -07:00
Corey Johnson
de03cc82ed fs.traversePath(path) works if path is a symlink 2012-10-12 15:44:01 -07:00
Corey Johnson
c43c82fbcb 💄 2012-10-12 15:44:00 -07:00
Corey Johnson
734fa5f03e Remove unneeded method 2012-10-12 15:44:00 -07:00
Kevin Sawicki
9f6366f6c6 Store window size and position to user defaults system
Closes #66
2012-10-11 21:25:25 -07:00
Kevin Sawicki
cee38a5f42 💄 2012-10-11 17:39:06 -07:00
Kevin Sawicki
8c0f443c75 Call window.shutdown when native window is closed
The root view will now be serialized and saved to local
storage when the window is closed or the application is
terminated.
2012-10-11 13:07:13 -07:00
Kevin Sawicki
a1f9e061bc Remove native.list
Use native.traverseTree instead from fs.list
and fs.listTree
2012-10-09 17:41:33 -07:00
Kevin Sawicki
d8ea07468b Include FTS_PHYSICAL when calling fts_open 2012-10-09 17:41:33 -07:00
Kevin Sawicki
edc1c590aa Guard against null onDir function result 2012-10-09 17:41:33 -07:00
Kevin Sawicki
375d3551fa Check fts_info against FTS_NSOK for files 2012-10-09 17:41:33 -07:00
Kevin Sawicki
6b6cf85ba0 DRY up native traverseTree for file and folder cases 2012-10-09 17:41:32 -07:00
Kevin Sawicki
8b61e6a9df Split out file and directory callbacks 2012-10-09 17:41:32 -07:00
Kevin Sawicki
71c161d527 Remove unneeded regex matching for built-in ignores 2012-10-09 17:41:32 -07:00
Kevin Sawicki
f71b90578e 💄 2012-10-09 17:41:32 -07:00
Kevin Sawicki
c304788fbf 💄 2012-10-09 17:41:32 -07:00
Kevin Sawicki
98c8525bdd Use single args vector and clear before insertion 2012-10-09 17:41:32 -07:00
Kevin Sawicki
51a41a9a72 Add native traverseTree 2012-10-09 17:41:32 -07:00
Corey Johnson
b8631ac83b Add newline when outputting console.log to stdout 2012-10-09 15:25:06 -07:00
Corey Johnson
e3360de3c6 Use std::cout to output console.log messages
NSLog outputs to stderr, but we want our test error messages to output to stdout.
2012-10-09 15:10:54 -07:00
Nathan Sobo
d37a0dd916 Cache repeated regexp matches against the same string for another 5-10% boost
This is tricky… basically when the scanner is matching across the same string repeatedly, it can recycle previous results if the following conditions are true:

- The string is the same
- We're matching at a position >= the last position
- The result for the regex is a failure or starts >= the current start position
2012-09-27 15:53:02 -06:00
Nathan Sobo
840790645b Release OnigScanner's regexes in the destructor 2012-09-27 15:53:01 -06:00
Kevin Sawicki
d8011fe853 Add initial markdown preview extension
Uses the GitHub Markdown API to render the current
editor contents for .md and .markdown files.
2012-09-27 13:07:22 -07:00
Nathan Sobo
32e36700ae Add native OnigScanner, which handles matching multiple regexes on a line
This cuts the tokenization time from 250ms to 70ms by avoiding js <-> native overhead
2012-09-27 13:04:14 -06:00
Corey Johnson
871a230b03 Make $native.exists a tiny bit faster 2012-09-26 16:30:22 -07:00
Corey Johnson
a6352497b9 Merge branch 'master' of https://github.com/github/atom 2012-09-25 13:22:24 -07:00