Commit Graph

131 Commits

Author SHA1 Message Date
vvakame
d02a67f5bb 📝 improves document consistency 2015-04-19 11:39:19 +09:00
Kevin Sawicki
4160a8c239 Merge pull request #6230 from mnquintana/coffeelint-plus
Lint for more styleguide errors
2015-04-08 12:07:23 -07:00
Kevin Sawicki
4b764f4a59 Move emissary require to deprecation block 2015-04-07 14:50:36 -07:00
Antonio Scandurra
cbf499243e Use screen ranges consistently 2015-04-07 18:08:51 +02:00
Antonio Scandurra
5e5acb7432 🎨 Rename to TextEditor#mergeSelectionsOnSameRows
* 🔥 Delete `Selection#intersectsByRowWith`
2015-04-07 12:25:15 +02:00
Antonio Scandurra
59a5dc42a8 Merge branch 'master' into as-fix-delete-line 2015-04-07 12:12:36 +02:00
Machiste Quintana
5d2392ea67 👕 Fix new coffeelint errors 2015-04-06 23:59:54 -04:00
Kevin Sawicki
f36f8ba5eb Use new Model superclass in TextEditor 2015-04-06 13:32:22 -07:00
Kevin Sawicki
72678df7fc Use new Model superclass in DisplayBuffer 2015-04-06 13:25:55 -07:00
Kevin Sawicki
265bc94eb3 Bind TextEditor behaviors to deprecated API flag 2015-04-06 13:10:37 -07:00
Lee Dohm
af80bc5419 📝 Make TextEditor::getBuffer public 2015-04-06 09:34:42 -07:00
Kevin Sawicki
f5aab35476 Check Grim.includeDeprecatedAPIs before emitting 2015-04-03 11:29:17 -07:00
Kevin Sawicki
7d592c8b78 includeDeprecations -> includeDeprecatedAPIs 2015-04-03 11:29:16 -07:00
Kevin Sawicki
b0b9172154 Conditionally include deprecations in TextEditor 2015-04-03 11:29:13 -07:00
Antonio Scandurra
1cf5822d20 Merge intersecting selections by row before deleting lines 2015-04-03 18:06:28 +02:00
Antonio Scandurra
b3bdad084f Always mutate selections in order 2015-04-02 16:35:26 +02:00
Antonio Scandurra
44d88e082c 🐛 Always copy selections in order 2015-04-02 16:28:22 +02:00
Nathan Sobo
ae4f7f6170 Explicitly autoscroll when needed
Rather than when the selection’s marker changes. This is simpler than
suppressing autoscroll via state when we don’t want it. It also captures
the intent to autoscroll when attempting to move the cursor at the
beginning or end of the document.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 16:48:24 -06:00
Nathan Sobo
99c437ccec Allow autoscroll override option in cursor/selection methods
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 16:48:21 -06:00
Nathan Sobo
10458a5b45 Always autoscroll when the range of the last selection changes
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 15:30:53 -06:00
Max Brunsfeld
2f5d975338 Remove autoscroll-related legacy editor view support
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-03-26 11:12:37 -07:00
Kevin Sawicki
576e00fb93 Keep returning array from TextEditor::mutateSelectedText 2015-03-19 11:57:16 -07:00
Kevin Sawicki
d9a5aff919 Add explicit return after for loop 2015-03-19 11:48:40 -07:00
Kevin Sawicki
792a124668 Add onDidChangeIcon event subscription 2015-03-16 16:44:53 -07:00
Kevin Sawicki
55a7ef352d Deprecate all TextEditor::on calls 2015-03-16 16:44:52 -07:00
Nathan Sobo
010154f802 Merge pull request #5959 from atom/as-fix-select-above-below
Use screen ranges to select above and below
2015-03-16 11:26:54 -06:00
Antonio Scandurra
f4b791d33b Use screenPosition to select above and below 2015-03-13 10:57:45 +01:00
Antonio Scandurra
73ee326bb3 📝 Document destroyFoldsContainingBufferRange
...and correct docs for `destroyFoldsIntersectingBufferRange`.
2015-03-11 16:17:40 +01:00
Antonio Scandurra
2b98192276 Destroy only containing folds on selection 2015-03-11 16:16:45 +01:00
Antonio Scandurra
2aa3e5fd8c 🐎 Speed up destroyFoldsIntersectingBufferRange 2015-03-05 09:01:28 +01:00
Antonio Scandurra
af65849880 Move batching management down into presentation layer 2015-02-27 12:17:34 +01:00
Antonio Scandurra
c638c23e3f 🐎 One mergeIntersectingSelections per text mutation
* Return fn value from `mergeIntersectingSelections` if supplied
2015-02-26 18:27:08 +01:00
Antonio Scandurra
c8fb791343 Merge branch 'master' into batch-updates 2015-02-26 11:27:08 +01:00
Antonio Scandurra
50f2aded3a Better batching 2015-02-26 11:26:48 +01:00
Antonio Scandurra
0ce3c49688 Batch returns the function value
* Emit only one event for nested batches
2015-02-26 10:50:43 +01:00
Antonio Scandurra
fdcbb9c8ff Don't change mergeIntersectingSelections behavior for now 2015-02-25 18:44:43 +01:00
Antonio Scandurra
cbfbf84990 🐎 Introduce batching, and update UI accordingly 2015-02-25 17:40:39 +01:00
Antonio Scandurra
ce8a5a210c Detect batch cursor move 2015-02-25 17:06:35 +01:00
Antonio Scandurra
b2bed7cea8 Detect batch selections 2015-02-25 17:06:34 +01:00
Antonio Scandurra
4555c77e5a Use hashes instead, and avoid sorting 👊 2015-02-25 11:20:15 +01:00
Antonio Scandurra
6670cc8aa0 🐎 Speed up mergeCursors 2015-02-25 10:42:39 +01:00
Max Brunsfeld
33af0f028b 🎨 Use prettier emptiness check 2015-02-24 15:31:51 -08:00
Max Brunsfeld
88c2cef91f Make :checkout-head-revision command work w/ multiple repos 2015-02-24 15:30:04 -08:00
Antonio Scandurra
7fe3135526 🎨 Give code a better structure 2015-02-22 15:04:37 +01:00
Antonio Scandurra
37b4183542 🐎 Improve mergeIntersectingSelections performance
Order selections first and intersect only with the last one.
This brings the cost of mergeIntersectingSelections down to O(n log n).
2015-02-22 14:04:03 +01:00
Nathan Sobo
62c8244bf2 Merge branch 'master' into ns-editor-presenters 2015-02-09 13:37:27 -07:00
Nathan Sobo
c8c13b8b40 Use cached .foldable values on TokenizedBuffer instead of recomputing 2015-02-06 18:54:34 -07:00
Kevin Sawicki
83c8d904cf 🎨 Add space before arrow 2015-02-04 17:44:33 -08:00
Kevin Sawicki
fd1d872840 Prompt split editors to save on close
Previously an editor that was split into multiple panes would not
prompt to save correctly when the window was unloading.

This adds a new `windowCloseRequested` option passed through from the
beforeunload handler to the editor so that it can specially handle this
case.

Closes #5257
2015-02-04 17:14:46 -08:00
Nathan Sobo
20838accc1 Key line numbers by buffer row and soft-wrap count
…instead of an array. This will make things simpler to diff in the
view.
2015-02-03 15:05:24 -07:00