Ben Ogle
8aa1784c4a
Add Editor::onDidChangeScreenLines
2014-09-08 16:04:43 -07:00
Ben Ogle
e6dbea09fe
Add onDidCreateMarker and onDidUpdateMarkers
2014-09-05 17:26:14 -07:00
Ben Ogle
86e9778adb
Remove the decoration changed event
2014-09-05 16:51:26 -07:00
Ben Ogle
aeffef30c6
Directly subscribe to the decorations in EditorComponent
2014-09-05 16:49:30 -07:00
Ben Ogle
e6e6028683
Deprecate decoration events
2014-09-05 15:14:27 -07:00
Ben Ogle
f3e8f11d07
Use DisplayBuffer::onDidChangeSoftWrapped in Editor
2014-09-05 13:42:11 -07:00
Ben Ogle
6e8a626de2
Add ::onDidChangeSoftWrapped to DisplayBuffer and Editor
2014-09-05 13:41:46 -07:00
Ben Ogle
21e4d8a064
Add DisplayBuffer::onDidChange
2014-09-05 13:30:59 -07:00
Ben Ogle
557562d8c8
Fix linter error
2014-09-05 12:42:33 -07:00
Ben Ogle
53fbfb8b27
Merge decoration-changed and decoration-updated
...
Only emit the decorations from the events
2014-09-05 12:35:52 -07:00
Ben Ogle
a2adbff3e9
Add TokenizedBuffer::onDidTokenize
2014-09-05 12:33:28 -07:00
Nathan Sobo
651eb78315
Add Editor::onDidAdd/RemoveSelection
...
Also update EditorComponent to use the new ::onDidAddSelection method.
2014-09-05 11:39:33 -07:00
Nathan Sobo
3e77b9b7c0
Eliminate Editor::onDidMoveCursor
...
If you want to know if a cursor moved, subscribe to the cursor.
2014-09-05 11:39:33 -07:00
Nathan Sobo
e77b4a54dd
Add Editor::onDidRemoveCursor
2014-09-05 11:39:33 -07:00
Nathan Sobo
3b6e40fbd8
Add Editor::onDidAddCursor
2014-09-05 11:39:33 -07:00
Nathan Sobo
161edfd15a
Remove ‘cursors-moved’ event
...
It event was not document only being used in EditorComponent. Due to
our batching strategy, it’s fine to respond to individual
::onDidMoveCursor events.
2014-09-05 11:39:33 -07:00
Nathan Sobo
2a81687d38
Add Editor::onDidMoveCursor
2014-09-05 11:39:33 -07:00
Nathan Sobo
05ea381c0a
Add Editor::onWill/DidInsertText
2014-09-05 11:39:33 -07:00
Nathan Sobo
63c9da02f6
Add Editor::onDidConflict
2014-09-05 11:39:33 -07:00
Nathan Sobo
5a02303b58
Add Editor::onDidStopChanging which delegates to TextBuffer
2014-09-05 11:39:33 -07:00
Nathan Sobo
1c95a55740
Add ::onDidChangeGrammar to Editor, DisplayBuffer, and TokenizedBuffer
2014-09-05 11:39:33 -07:00
Nathan Sobo
3e260eea56
Add Editor::onDidChangeSoftWrapped
2014-09-05 11:39:33 -07:00
Nathan Sobo
965afc2c37
Rename softWrap to softWrapped
...
Our new pattern for booleans is to have ::set and ::is, and that means
the property name needs to be in passive voice for ::is to make sense.
This is in preparation for adding a new change observation method.
* ::setSoftWrapped
* ::isSoftWrapped
* ::toggleSoftWrapped
2014-09-05 11:39:33 -07:00
Nathan Sobo
d15d1572ef
Add Editor::onDidChangeModified
2014-09-05 11:36:40 -07:00
Nathan Sobo
133f3f45ab
Add Editor::onDidChangePath
2014-09-05 11:36:40 -07:00
Nathan Sobo
b731f7cbdc
Add Editor::onDidChangeTitle
2014-09-05 11:36:40 -07:00
Ben Ogle
dc21e8707f
Deprecate EditorView::getFirstVisibleScreenRow
2014-09-04 15:25:55 -07:00
Ben Ogle
52c19a5dcd
Deprecate pixelPositionFor*Position
2014-09-04 15:20:20 -07:00
Ben Ogle
5ae040f688
Add Editor::scrollToTop to compliment scrollToBottom()
2014-09-04 15:17:17 -07:00
Ben Ogle
c511a71488
Deprecate EditorView::scrollToBottom
2014-09-04 15:17:01 -07:00
Ben Ogle
04b0ed9704
Deprecate EditorView::scrollTo*Position() functions
2014-09-04 15:14:38 -07:00
Nathan Sobo
a50f62dc93
Merge remote-tracking branch 'origin/master' into ns-text-buffer-event-methods
...
Conflicts:
package.json
2014-09-04 14:40:52 -06:00
Nathan Sobo
a947a357f4
Upgrade text-buffer for event subscription methods
2014-09-04 12:44:53 -06:00
Ivan Zuzak
af2f155082
Merge branch 'master' into iz-gutter-click-select-line
2014-09-04 16:22:51 +02:00
Nathan Sobo
b9e90f2fdd
Fix editor observation docs
2014-09-04 08:06:19 -06:00
Ivan Zuzak
8a6e72f21f
Respect preserveFolds attribute when creating selections from markers
2014-09-04 13:57:41 +02:00
Ben Ogle
48b693c1c1
Add columnCounts to selection methods
2014-09-03 16:20:25 -07:00
Ben Ogle
7a3893c7bb
Update doc strings
2014-09-03 16:10:33 -07:00
Ben Ogle
f82c59d865
Add columnCount to moveRight
2014-09-03 16:10:33 -07:00
Ben Ogle
99c07decf2
Add columnCount var to Editor::moveLeft and Cursor::moveLeft
2014-09-03 16:10:33 -07:00
Ben Ogle
b90670ff2d
Gracefully handle the case when there is no screenline
2014-09-03 16:00:57 -07:00
Ben Ogle
523a255e48
Add Editor::lineTextForScreenRow()
...
Closes #3055
2014-09-03 14:42:46 -07:00
Ben Ogle
5e21d1ca5b
Deprecate Editor::lineLengthForBufferRow
2014-09-03 14:42:46 -07:00
Ben Ogle
0703788209
Editor::linesForScreenRows -> ::tokenizedLinesForScreenRows
2014-09-03 14:42:46 -07:00
Ben Ogle
c0c941b8db
lineForBufferRow -> lineTextForBufferRow
2014-09-03 14:42:46 -07:00
Ben Ogle
e3a0339fe3
Editor::lineForScreenRow -> ::tokenizedLineForScreenRow
2014-09-03 14:42:46 -07:00
Ben Ogle
ae49fd50b7
DisplayBuffer::linesForRows -> ::tokenizedLinesForScreenRows
...
Clarity!
2014-09-03 14:42:46 -07:00
Ben Ogle
99f899dc4a
lineForScreenRow -> tokenizedLineForRow
...
The method was severely mislabeled
2014-09-03 14:42:45 -07:00
Ben Ogle
b516f5a74d
lineForBufferRow -> lineTextForBufferRow
2014-09-03 14:42:45 -07:00
Nathan Sobo
d753a7f38d
Merge pull request #3440 from atom/ns-exclusive-selection-intersection
...
Don’t merge adjacent non-empty selections
2014-09-03 09:24:05 -06:00