Kevin Sawicki
edec6b9b0a
🐎 Use cached pair character information
...
Tokenized lines break out atomic tokens so trust the hasPairCharacter
value on the token instead of rechecking it.
2014-10-28 18:15:13 -07:00
Nathan Sobo
2965398062
Throw on non-release builds if translating positions on destroyed editor
...
It’s possible that bundled packages stray into this corner case, so I’d
like us to catch and fix misbehaving packages before exposing users to
any exceptions. Once we go one release with this turned on, we can
enable the exception for all builds.
2014-10-27 07:38:18 -06:00
Kevin Sawicki
06698c880f
Access value on token
2014-10-24 13:31:43 -07:00
Kevin Sawicki
05dc9aad89
💄
2014-10-24 13:31:43 -07:00
Kevin Sawicki
e5660e5e83
🐎 Only use String::substr for pair chars
2014-10-24 13:31:43 -07:00
Kevin Sawicki
e928447eab
Stored paired characters in width cache
...
Previously characters were treated individually even when multiple
characters would render as a single character on screen.
2014-10-24 13:31:43 -07:00
Ben Ogle
16ad957609
scopeDescriptor -> scopes
...
Now that we have a real ScopeDescriptor object,
these should change back!
2014-10-21 11:38:43 -07:00
Ben Ogle
ce2959c0b9
Return ScopeDescriptor objects
2014-10-20 17:49:02 -07:00
Kevin Sawicki
8c136b18c2
Set targetLeft to Infinity when past last row
2014-10-17 14:00:25 -07:00
Kevin Sawicki
f81bc4b870
Never break when past the last row
2014-10-17 14:00:25 -07:00
Adam Boesch
111b956f93
Fix cursor not being able to move within the last line of text.
2014-10-17 14:00:25 -07:00
Adam Boesch
88a95ad06b
Fix cursor so clicking the below the last line of text puts the cursor at
...
the end of the last line.
2014-10-17 14:00:25 -07:00
Ben Ogle
c0091b4601
scopes -> scopeDescriptor
...
!!!
2014-10-13 16:30:41 -07:00
Ben Ogle
8cf36af1dc
scopesForPosition -> scopeDescriptorForPosition
2014-10-13 16:18:36 -07:00
Ben Ogle
56c6c3516a
scopesForBufferPosition -> scopeDescriptorForBufferPosition
2014-10-13 16:16:44 -07:00
Ben Ogle
b0de88de74
grammarScopeDescriptor -> rootScopeDescriptor
2014-10-13 16:15:05 -07:00
Ben Ogle
8ed751f5da
Cache scoped settings in the display buffer
2014-10-13 12:22:25 -07:00
Ben Ogle
f2d480fc72
getGrammarScopeDescriptor -> getRootScopeDescriptor
2014-10-08 16:01:42 -07:00
Ben Ogle
c315631efd
Remove scopeDescriptor from getTabLength
2014-10-08 16:01:42 -07:00
Ben Ogle
f662b3d745
💄 Normalize the names of related subscription things
2014-10-08 16:01:41 -07:00
Ben Ogle
c1ff53b02c
getCurrentScopeDescriptor -> getGrammarScopeDescriptor
2014-10-08 16:01:41 -07:00
Ben Ogle
938f216cab
Scope softWrap, softWrapAtPreferredLineLength, preferredLineLength
...
`editor.*` config settings
2014-10-08 16:01:41 -07:00
Ben Ogle
339cb02269
Scope editor.tabLength
2014-10-08 16:01:40 -07:00
Ben Ogle
22fb5adda9
Remove deprecated calls for config.observe .. callNow: false in core
2014-09-29 16:09:47 -07:00
Ben Ogle
e607d45f0d
Remove instances of getPositiveInt()
2014-09-29 16:09:47 -07:00
Lee Dohm
2c3bec7468
Add ability to scroll past the end of the file
...
Fixes #3592
2014-09-25 23:04:54 -07:00
Ben Ogle
325cc95f48
Fix specs
2014-09-18 13:53:13 -07:00
Ben Ogle
068c2c359f
displayBufferMarker -> marker
2014-09-18 13:53:13 -07:00
Ben Ogle
39343b0c52
Fix reference to display-buffer-marker
2014-09-18 13:53:13 -07:00
Ben Ogle
9af2325f17
Rename DisplayBufferMarker -> Marker
...
Gnar!! 😎
2014-09-18 13:53:12 -07:00
Ben Ogle
bf44cf89db
DisplayBufferMarker::matchesAttributes -> ::matchesProperties
2014-09-18 13:53:12 -07:00
Nathan Sobo
a0edb92e16
Rename editor.softWrapped config option back to editor.softWrap
2014-09-15 14:34:35 -06:00
Ben Ogle
250c21f00a
Deprecate all events from ::on
2014-09-05 17:26:41 -07:00
Ben Ogle
e6dbea09fe
Add onDidCreateMarker and onDidUpdateMarkers
2014-09-05 17:26:14 -07:00
Ben Ogle
47ef54a072
Subscribe directly to the decoration destroy for removal
2014-09-05 16:53:35 -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
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
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
Ben Ogle
48a68d87f5
Add TextBuffer::onDidChange
2014-09-05 12:26:54 -07:00
Ben Ogle
bcc6adff4f
No longer need this as the event method passes it through
2014-09-05 12:26:06 -07:00
Nathan Sobo
6bd8702421
Deprecate DisplayBufferMarker::on
2014-09-05 11:39:34 -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
a947a357f4
Upgrade text-buffer for event subscription methods
2014-09-04 12:44:53 -06:00
Ben Ogle
c4265776b3
Rename unused method
2014-09-03 14:42:46 -07:00