Corey Johnson & Nathan Sobo
faea4aedcc
Show preview list when X x operation completes
2012-07-17 18:39:29 -06:00
Corey Johnson & Nathan Sobo
f998da301c
Native handler logs when completion callback for child process raises exception
2012-07-17 18:39:00 -06:00
Nathan Sobo
dcb8fd71e0
Convert a command panel spec to integration-style to prepare for command preview
2012-07-17 17:03:19 -06:00
Nathan Sobo
0bc9973d9f
Don't set the ':' prompt font in command panel because it looks bad afterward
2012-07-17 16:54:29 -06:00
Nathan Sobo
d8189a6fc4
"X x/regex/" command returns operations
...
Also, passing an EditSession is optional when calling CommandInterpreter.eval. X commands don't require it, but other commands will throw exceptions if it's missing.
2012-07-17 16:32:20 -06:00
Nathan Sobo
4b147c04e5
RootView.proto.open returns the opened edit session
2012-07-17 14:44:04 -06:00
Corey Johnson & Nathan Sobo
126bdc1138
💄
2012-07-17 14:26:20 -06:00
Corey Johnson & Nathan Sobo
34e96fb8d7
WIP: Adding find all matches in project command
2012-07-17 14:26:12 -06:00
Corey Johnson & Nathan Sobo
c3fe9aa0b3
Implement refcounting scheme on Buffer
2012-07-17 14:24:33 -06:00
Nathan Sobo
330e9cebd9
Make it possible for command compilation to be async by returning promises
2012-07-17 12:02:45 -06:00
Nathan Sobo
4584f47cf2
Pass all ranges to each command when composing commands
2012-07-17 11:17:46 -06:00
Nathan Sobo
1d21de1e83
Merge cursors after buffer changes that didn't occur via the EditSession
...
The buffer now emits a new event 'update-anchors-after-change' to signal that all the anchors have been updated, which is an appropriate time to merge cursors.
2012-07-17 10:38:01 -06:00
Nathan Sobo
512c1bfdb9
Merge branch 'master' into global-find
2012-07-16 14:56:24 -06:00
Corey Johnson
ac04a8ed66
Allow additional indentation after line has been auto-indented
2012-07-16 10:55:44 -07:00
Corey Johnson
95c3ea1b74
Rename insert tab event to indent
2012-07-16 10:34:02 -07:00
Corey Johnson
453af489d9
un-log 💩
2012-07-16 10:28:52 -07:00
Corey Johnson
5184b90365
Hitting tab on a line (containing only whitespace) will auto indent the line and set the cursor to the end
2012-07-16 10:25:28 -07:00
Corey Johnson
629525383e
Adjusting the width of rendered lines happens automatically with CSS
2012-07-16 09:17:43 -07:00
Corey Johnson
3e3bc99161
Merge branch 'master' into global-find
...
Conflicts:
spec/app/editor-spec.coffee
2012-07-16 09:16:07 -07:00
Corey Johnson
e089b74867
Editor.renderedLines' css width is set to 100% when editor.maxScreenLineLength() is less than Editor.scrollView's width
2012-07-16 09:14:33 -07:00
Nathan Sobo
1ac6581f33
EditSession.setSelectedBufferRanges recycles selection instances
...
This prevents changing the scroll position when it isn't necessary.
2012-07-15 17:32:30 -06:00
Nathan Sobo
7865799b34
Enable accelerated and threaded compositing on CEF
2012-07-14 10:22:14 -06:00
Nathan Sobo
075968e42c
Associate compiled operations with anchor ranges. All tests pass again.
...
This allows them to update their target range in the face of upstream changes.
2012-07-13 19:46:08 -06:00
Corey Johnson & Nathan Sobo
fd24b82d47
WIP: Converting to operations, but substitution operations need anchor ranges
2012-07-13 18:30:10 -06:00
Corey Johnson & Nathan Sobo
926067164d
Buffer updates anchors when it changes instead of EditSession
2012-07-13 17:42:41 -06:00
Corey Johnson & Nathan Sobo
9eae88e97b
Anchors and AnchorRanges are added to the buffer.
...
Also: Destroying an AnchorRange removes it from the EditSession / Buffer.
2012-07-13 17:18:10 -06:00
Corey Johnson & Nathan Sobo
c7b7135388
Temporary fix: When editor is resized, adjust width of rendered lines.
...
We do this to ensure that the lines aren't longer than the scroll view if they don't have to be. We really should use min-width instead because it's automatic. Also, trigger window resize when we make the editor narrower.
2012-07-13 17:17:18 -06:00
Corey Johnson & Nathan Sobo
e15f2204c7
Merge branch 'global-find' of github.com:github/atom into global-find
2012-07-13 15:12:41 -06:00
Corey Johnson & Nathan Sobo
42f322a112
CommandInterpreter uses project and edit sessions instead of editor to execute
...
We don't want to pass view objects into it!
2012-07-13 15:10:37 -06:00
Corey Johnson
b9d4270693
Merge branch 'master' into global-find
2012-07-13 09:36:21 -07:00
Corey Johnson
23b42faa1d
Added EditSession.copy()
...
Also, EditSession only needs a project to be deserialized
2012-07-13 09:35:19 -07:00
Corey Johnson
9dfa7d9439
When splitting an editor only the active edit session is copied to the new editor.
2012-07-13 09:24:14 -07:00
Corey Johnson & Nathan Sobo
d44c648d4b
Editor.renderedLines' width is set to the maximum of either Editor.scrollView's width or the maximum rendered line width
2012-07-13 09:05:38 -07:00
Corey Johnson & Nathan Sobo
c39172d625
Change fold colors for twilight theme
2012-07-13 09:04:22 -07:00
Nathan Sobo
a4db677979
Implement setSelectedBufferRange w/ setSelectedBufferRanges
...
Also add the preserveFolds option, which doesn't destroy folds containing the selected ranges – mainly for specs right now
2012-07-12 18:57:12 -06:00
Nathan Sobo
f99146b42f
EditSession.setSelectedBufferRanges destroys folds
...
It also clears all existing selections and makes new ones.
2012-07-12 18:40:34 -06:00
Corey Johnson & Nathan Sobo
f02e724606
💩
2012-07-12 18:00:18 -06:00
Corey Johnson & Nathan Sobo
8e3c3a13a9
Substitution commands don't change editor selection
2012-07-12 17:59:45 -06:00
Corey Johnson & Nathan Sobo
bee6bf0ff5
Add explicit ZeroAddress object to command language AST
2012-07-12 17:56:23 -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
e59d15868d
un-f
2012-07-12 12:18:24 -07:00
Corey Johnson & Nathan Sobo
86adf09267
Test that project scan executes callback with match data
2012-07-12 12:12:44 -07:00
Corey Johnson & Nathan Sobo
ded4ac7fa1
WaitsForPromise outputs reject callback arguments
2012-07-12 12:11:48 -07:00
Corey Johnson & Nathan Sobo
64a9c245e7
Quote regex passed to grep
2012-07-12 12:11:00 -07:00
Corey Johnson & Nathan Sobo
075b2e4304
Don't rethrow execeptions in exec callbacks.
...
Since the callbacks are executed asynchronously, no v8 code is above them on the stack to which to rethrow. It was causing crashes.
2012-07-12 12:10:37 -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
1331cfb749
When promise resolution throws an exception, waitsForPromise is halted
2012-07-12 11:45:44 -07:00
Corey Johnson & Nathan Sobo
0d50066dad
Add window.originalSetTimeout
...
Signed-off-by: Corey Johnson & Nathan Sobo <cj+nathan@github.com >
2012-07-12 11:44:07 -07:00
Corey Johnson
ba2e85a548
:lipstick
2012-07-12 10:13:14 -07:00
Corey Johnson & Nathan Sobo
d2d6efdcb5
Project.scan invokes the callback with matches
2012-07-12 11:12:31 -06:00