Nathan Sobo
d7045c3cc8
Make TextEditor params object optional
2015-04-28 20:05:24 -06:00
Jess Lin
df070e9f1f
[Gutter] Add back includeDeprecatedAPIs gate on gutter type decorations
2015-04-22 11:10:50 -07:00
Jess Lin
09d1b977de
[Gutter] Convert ! to 'not', && to 'and'
2015-04-22 07:28:59 -07:00
Jess Lin
cc89f972dc
[Gutter][style] Add parentheses to some method calls for readability
2015-04-22 07:28:57 -07:00
Jess Lin
ee7625249f
[Gutter] Create event subscription methods for gutter changes
2015-04-22 07:28:57 -07:00
Jess Lin
b361e1719c
[Gutter] Add decorateMarker method to Gutter model
2015-04-22 07:28:57 -07:00
Jess Lin
58d6712b0e
[Gutter] Augment Decoration to discern the line-number gutter from custom gutters
2015-04-22 07:28:57 -07:00
Jess Lin
eb321a64c1
[Gutter] Create a line-numbers Gutter on each TextEditor
2015-04-22 07:28:56 -07:00
Jess Lin
20d3c07bf5
[Gutter] Add add/get Gutter methods to TextEditor
2015-04-22 07:28:56 -07:00
Jess Lin
fccc9ebee4
[Gutter] Rename current references to 'Gutter' -> 'LineNumberGutter'
2015-04-22 07:28:56 -07:00
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