Commit Graph

1388 Commits

Author SHA1 Message Date
Corey Johnson
f00632a96e Paste uses Editor.insertText 2012-03-06 15:53:54 -08:00
Corey Johnson
a1a5d9ac75 Add additional auto-indent test 2012-03-06 15:34:39 -08:00
Corey Johnson
e5f15758af 💄 2012-03-06 15:34:17 -08:00
Corey Johnson
a4011ef6d5 Moved default bindings from Global keymap constructor to a separate method. 2012-03-06 15:07:59 -08:00
Corey Johnson
8129183486 Merge pull request #4 from github/fix-xcode-4.3-build
Fix compiler error in Xcode 4.3
2012-03-06 13:42:09 -08:00
Adam Roben
5665fcb48c Fix compiler error in Xcode 4.3
Presumably this also indicated infinite recursion, but I don't believe Atom is
ever actually deallocated.
2012-03-06 13:27:47 -08:00
Corey Johnson
668022fb3b Outdent works with Ace's Mode classes 2012-03-06 11:14:50 -08:00
Corey Johnson
79edb3fcdf Store tabText in atom.
This is a combination of tabsOrSpaces and tabSize. I imagine things like these will be stored in a settings object on `atom` at some point.
2012-03-06 11:08:20 -08:00
Corey Johnson & Nathan Sobo
53fc625534 Inserting a newline indents the cursor (based on information from previous line) 2012-03-05 15:51:56 -08:00
Corey Johnson & Nathan Sobo
3ff8a1e92c Remove insertNewline method 2012-03-05 15:41:03 -08:00
Corey Johnson & Nathan Sobo
aff3d308ad Store mode object in Buffer 2012-03-05 15:05:49 -08:00
Nathan Sobo
98defa865c Cursor screen position is updated when lines are rewrapped. 2012-03-01 18:00:41 -07:00
Corey Johnson
77f448accc minor tweaks to xcode project file 2012-03-01 16:54:37 -08:00
Nathan Sobo
697ad6570f Don't make assumptions about the character width in specs 2012-03-01 17:31:53 -07:00
Corey Johnson & Nathan Sobo
ebca007ca4 Merge branch 'chrome' 2012-03-01 16:24:01 -08:00
Corey Johnson & Nathan Sobo
f894f11e5f remove references to native 2012-03-01 16:22:05 -08:00
Corey Johnson & Nathan Sobo
d334a26ddc All of the methods from Native are now implemented in native_handler 2012-03-01 16:10:47 -08:00
Corey Johnson
8f5ffe2e65 jscocoa is no longer a thing 2012-03-01 16:09:37 -08:00
Nathan Sobo
cf44dc7f16 Make fold placeholder exactly 3 characters wide. 2012-03-01 16:50:15 -07:00
Corey Johnson
404ca89767 Uncomment the custom event handling code 2012-03-01 15:45:49 -08:00
Corey Johnson
e874512284 Move atom.native to $native 2012-03-01 15:44:36 -08:00
Nathan Sobo
c218a10b6b Don't split a fold placeholder when line wrapping. 2012-03-01 16:38:38 -07:00
Corey Johnson
e51f49f6f5 Deal with key-equivalents before we send events to Cef 2012-03-01 15:37:58 -08:00
Corey Johnson
5f64dba5bf Clean Xcode project 2012-03-01 15:37:17 -08:00
Corey Johnson
7fc98e0ae3 Use NSURL.path to get the filename from openDialog 2012-03-01 15:36:05 -08:00
Corey Johnson
a7c835ec6e 💩 2012-03-01 15:35:23 -08:00
Corey Johnson
cbb4bc06c2 remove webkit frameworks 2012-03-01 15:34:24 -08:00
Corey Johnson
15acd071ca Add keycap (and bound meta-o) to App 2012-03-01 12:11:45 -08:00
Corey Johnson
1e6a34db81 Added native.openDialog 2012-03-01 12:11:17 -08:00
Corey Johnson
bd17d890a1 If no windows are open, keydown events are sent to the shared context. 2012-03-01 12:11:04 -08:00
Nathan Sobo
c2b16ffbf9 Don't raise an exception when folding an empty range 2012-03-01 13:04:32 -07:00
Nathan Sobo
eeae6c4ee2 Corretly select word and line w/ mouse with wraps and folds 2012-03-01 12:44:26 -07:00
Nathan Sobo
eaf76798ae Eliminate weird behavior with wrapping + folding 2012-03-01 11:52:37 -07:00
Nathan Sobo
eb0df2f21d Fix bug in LineMap.spliceByDelta with multi-fragment screen lines
If the row following a row being replaced had multiple fragments, some
of these fragments would be accidentally deleted.
2012-03-01 11:52:27 -07:00
Nathan Sobo
32a6a2cd7f Refer to "buffer" and "screen" coordinate spaces as "input" and "output"
Since we compose the line wrapper and the line folder together, the
line map is not always translating between screen and buffer coordinate
spaces. It's translating one step in the chain, with output closer to
the screen and input closer to the buffer.
2012-02-29 18:39:45 -07:00
Corey Johnson
569bed9ee1 Refactor ad hoc delegate methods into BrowserDelegate protocol. 2012-02-29 17:30:50 -08:00
Corey Johnson
670b9dc52d meta-r reloads a controller 2012-02-29 17:26:50 -08:00
Nathan Sobo
6c8a48b928 💄 2012-02-29 18:10:55 -07:00
Nathan Sobo
368f1b8fbd LineMap.clipScreenPosition relies entirely on translatePosition 2012-02-29 17:55:47 -07:00
Nathan Sobo
c091b71c13 Line count methods use traverseByDelta 2012-02-29 17:51:32 -07:00
Nathan Sobo
03dcce575c LineMap.linesByDelta and translatePosition use common traverseByDelta 2012-02-29 17:46:22 -07:00
Nathan Sobo
f394716508 Implement clipScreenPosition in terms of translatePosition 2012-02-29 16:47:56 -07:00
Corey Johnson
f32e5ac716 Fat arrow needed for keydown events 2012-02-29 15:32:53 -08:00
Corey Johnson & Nathan Sobo
03bc1f38a1 💩 2012-02-29 15:26:55 -08:00
Corey Johnson & Nathan Sobo
7e6132f5b7 Redo Xcode project FROM SCRATCH 2012-02-29 15:23:17 -08:00
Corey Johnson & Nathan Sobo
ffeaf7ed17 Remove menu code and tests 2012-02-29 13:47:48 -08:00
Corey Johnson & Nathan Sobo
bce834aea0 Chrome has a different default charWidth 2012-02-29 13:27:12 -08:00
Nathan Sobo
84bc108fc8 Base LineMap.linesForScreenRows/BufferRows on linesByDelta 2012-02-29 14:06:03 -07:00
Nathan Sobo
78c2ff7801 Express LineMap insertion in terms of spliceByDelta 2012-02-29 13:57:57 -07:00
Corey Johnson & Nathan Sobo
632a2cb64a Stop listening or trigger events from App
It causes DOM errors when you reload.
2012-02-29 12:04:41 -08:00