Commit Graph

129 Commits

Author SHA1 Message Date
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
Nathan Sobo
df98c3e9d7 Add "Window" menu 2012-09-25 12:03:26 -06:00
Corey Johnson
cf48665a03 Open Atom src when run via Xcode 2012-09-25 09:57:48 -07:00
Nathan Sobo
bea3c88ea1 In FocusNextWindow, require that window is visible before trying to focus it 2012-09-24 21:18:44 -06:00
Corey Johnson
23917ab675 Merge branch 'master' of https://github.com/github/atom 2012-09-24 15:55:53 -07:00
Corey Johnson
cccebda665 Stop when position equals the start position (not always 0) 2012-09-24 15:47:03 -07:00
Nathan Sobo
df0c19482c Hack in a workaround to cycle windows with meta-`
There's something wrong with CEF 3 right now where meta-` events aren't being forwarded to cocoa correctly. I just added some code to intercept meta-` and manually cycle the windows. I ignore any windows for which `excludeFromWindowsMenu` is true. That means we don't ever cycle to the hidden menu.
2012-09-24 16:32:05 -06:00
Corey Johnson
ea18840798 Remove unused methods from onig_reg_exp.js 2012-09-24 11:53:52 -07:00
Corey Johnson
831e6ba231 Window starts with no name by default 2012-09-21 16:48:36 -07:00
Corey Johnson
2665a64a78 I remove useless comments 2012-09-21 16:47:44 -07:00
Corey Johnson
efab25a1d1 Merge remote-tracking branch 'origin/master' into making-things-easy 2012-09-21 16:37:29 -07:00
Kevin Sawicki
5c78ebff42 Use platform independent extension header files 2012-09-20 16:24:20 -07:00
Kevin Sawicki
7ef3bab130 Make install script 32-bit only 2012-09-20 16:24:20 -07:00
Kevin Sawicki
8da096b7cd Use include instead of import 2012-09-20 16:24:20 -07:00
Kevin Sawicki
d4fc3f41fc Remove unneeded import 2012-09-20 16:24:20 -07:00
Kevin Sawicki
8a570ab1b5 Add 64-bit cef libraries 2012-09-20 16:24:20 -07:00
Kevin Sawicki
13a3592af7 Remove cache miss error text 2012-09-20 16:24:10 -07:00
Kevin Sawicki
3c24fb1a34 Remove commented out code 2012-09-20 16:24:10 -07:00
Kevin Sawicki
ed77dc0916 Remove unused fields 2012-09-20 16:24:10 -07:00
Kevin Sawicki
0f42668718 Use std namespac 2012-09-20 16:24:10 -07:00
Kevin Sawicki
9901901c72 Remove unneeded includes 2012-09-20 16:24:10 -07:00
Kevin Sawicki
8f3438710f Remove old onig extension 2012-09-20 16:24:10 -07:00
Kevin Sawicki
981ef3e0b6 Remove unneded curlies 2012-09-20 16:24:10 -07:00
Kevin Sawicki
405ec2fe8d Remove logging 2012-09-20 16:24:09 -07:00
Kevin Sawicki
d006262c23 Remove old native handler 2012-09-20 16:24:09 -07:00
Kevin Sawicki
4d07f406ca Use message_translation from parent folder 2012-09-20 16:24:09 -07:00
Kevin Sawicki
54acfd507f Reload when message says so 2012-09-20 16:24:09 -07:00
Kevin Sawicki
28bd2f7d06 Move pak files and images to static folder 2012-09-20 16:24:09 -07:00
Kevin Sawicki
7a27a43e53 Set window icon before showing 2012-09-20 16:24:08 -07:00
Kevin Sawicki
97756ee90b Move linux extensions to v8_extensions folder 2012-09-20 16:24:08 -07:00
Kevin Sawicki
f90f827429 Remove /atom ignore line
Executable is now created in out folder
2012-09-20 16:24:08 -07:00
Kevin Sawicki
048f114987 Use includes from parent folder 2012-09-20 16:24:08 -07:00
Kevin Sawicki
859f058e2d Update build and install for new location 2012-09-20 16:24:08 -07:00
Kevin Sawicki
09f0a162bc Remove commented code 2012-09-20 16:24:08 -07:00
Kevin Sawicki
75c383ab98 Move linux folder under native 2012-09-20 16:24:08 -07:00
Corey Johnson
5b9a305bba Log console messages to NSLog (so we can see them in Console.app) 2012-09-20 15:26:26 -07:00
Corey Johnson
d3443ad2f1 Remove non-posix (i.e. -long_argument_with_one_leading_hyphen) added by OS X from the command line 2012-09-20 15:13:45 -07:00
Corey Johnson
4b8b4ef91c A hack to get DevTools showing properly 2012-09-18 17:15:13 -07:00
Corey Johnson
a1939da395 Command line arguments with no variable don't crash the app. 2012-09-18 16:49:27 -07:00
Corey Johnson & Nathan Sobo
ff07710556 Atom cli can be called multiple times. Successive calls will open the given path in the existing Atom process. 2012-09-12 17:06:28 -07:00
Corey Johnson & Nathan Sobo
e2700395cf 💄 2012-09-12 16:50:24 -07:00
Corey Johnson & Nathan Sobo
c0f479b3a3 If multiple instances of Atom are open, abort the new Atom process and send it's path arguments to the existing Atom process via IPC. 2012-09-12 16:13:36 -07:00
Corey Johnson & Nathan Sobo
ab18eaa211 Make parseArguments a class method 2012-09-12 16:12:17 -07:00
Corey Johnson & Nathan Sobo
5ae185c4f5 Remove unused code 2012-09-12 15:29:01 -07:00
Corey Johnson & Nathan Sobo
bda3bcac4e Merge branch 'making-things-easy' of github.com:github/atom into making-things-easy 2012-09-12 10:25:11 -07:00