Commit Graph

470 Commits

Author SHA1 Message Date
Antonio Scandurra
3b46d7f50b Merge branch 'master' into ns-switch-to-display-layers
# Conflicts:
#	src/text-editor.coffee
2016-05-04 18:56:45 +02:00
Antonio Scandurra
36bcb542a8 Don't move down a line if it's the last buffer row 2016-05-03 12:58:59 +02:00
joshaber
9adc822822 Mark text editors as being registered. 2016-05-02 11:32:29 -04:00
Antonio Scandurra
1c694df03b Don't show indent guides for mini editors 2016-05-01 11:42:28 +02:00
Antonio Scandurra
02d9245c05 Merge branch 'master' into ns-switch-to-display-layers 2016-04-30 11:10:17 +02:00
joshaber
2f1268dc7c Move copyPathToClipboard to the default commands. 2016-04-28 11:36:17 -04:00
joshaber
76d8421963 Inline the no-op assert. 2016-04-28 09:50:01 -04:00
joshaber
23023a7a3d Merge branch 'master' into dont-require-assert 2016-04-28 09:48:52 -04:00
Antonio Scandurra
ce4b2fa810 Merge branch 'master' into ns-switch-to-display-layers
# Conflicts:
#	src/display-buffer.coffee
#	src/text-editor.coffee
#	src/tokenized-buffer.coffee
2016-04-27 18:16:03 +02:00
joshaber
46c97ee2b2 Provide a default assert implementation if one isn't passed in. 2016-04-26 16:14:25 -04:00
joshaber
e038ff3260 Remove applicationDelegate from TextEditor 2016-04-26 16:04:41 -04:00
joshaber
a7606710c0 Don't need Directory anymore. 2016-04-26 14:55:43 -04:00
joshaber
f70b93d9c2 Merge branch 'remove-packagemanager-dependency' into remove-project-dependency 2016-04-26 11:01:28 -04:00
joshaber
5d7c2fc8ba Just observe the grammar. 2016-04-26 10:32:41 -04:00
Antonio Scandurra
f85c72978e Fix wrong implementation in TextEditor.prototype.screenRowForBufferRow 2016-04-26 12:06:41 +02:00
Antonio Scandurra
00ebe6bbbc Merge branch 'master' into ns-switch-to-display-layers
# Conflicts:
#	src/text-editor.coffee
2016-04-26 10:19:39 +02:00
joshaber
7ed4d60967 Don't need to pass Project around anymore. 2016-04-25 17:03:26 -04:00
joshaber
9fa669b293 Set the initial path after saving in Project. 2016-04-25 17:02:51 -04:00
joshaber
5cf532ebe8 Move checkoutHeadRevision to Workspace. 2016-04-25 17:02:36 -04:00
joshaber
8d7f1b8fba Don't need to pass view registry through anymore. 2016-04-25 16:26:28 -04:00
joshaber
3a63f90ab2 We just say getElement now. 2016-04-25 16:24:27 -04:00
joshaber
2266f1e3b6 Revert "Just use the already existing change grammar event."
This reverts commit 9014634b3a.
2016-04-25 15:15:31 -04:00
joshaber
9014634b3a Just use the already existing change grammar event. 2016-04-25 15:09:03 -04:00
joshaber
e8a4f38c69 Don't need to pass the package manager through anymore. 2016-04-25 14:50:14 -04:00
joshaber
6b309be6da Propagate a did-use-grammar event out of the tokenized buffer. 2016-04-25 14:49:43 -04:00
joshaber
8bf34d45d7 Don't require notification manager in TextEditor
Instead expose getCursorScope and let users outside the text editor
show the notification.
2016-04-25 14:12:07 -04:00
Antonio Scandurra
7f77c67761 🔥 preserveFolds from marker's properties 2016-04-15 15:40:22 +02:00
Antonio Scandurra
bbef0b4551 💚 2016-04-14 11:19:45 +02:00
Antonio Scandurra
6b2bfd5656 Merge branch 'master' into ns-switch-to-display-layers 2016-04-11 13:15:00 +02:00
Cole R Lawrence
7decbf0d06 📝 Fix linking the decorateMarker
Error happens at this place in the docs
https://atom.io/docs/api/v1.6.2/TextEditor#instance-decorateMarkerLayer
2016-04-09 14:07:37 -05:00
Antonio Scandurra
ab0d69ce90 Make selectionsMarkerLayer also persistent 2016-04-09 09:50:12 +02:00
Nathan Sobo
effe882a8d Make atomic leading whitespace optional (defaults to enabled)
Closes #3174
2016-04-08 15:31:01 -06:00
Nathan Sobo
5e5cea9600 Drop “experimental” warnings from marker layer APIs 2016-04-08 10:25:25 -06:00
Nathan Sobo
37bfbe8538 Document return value correctly 2016-04-08 10:23:01 -06:00
Nathan Sobo
e587a67f3b Document persistent option in TextEditor::addMarkerLayer 2016-04-08 10:22:50 -06:00
Antonio Scandurra
c23ef9a168 Stop using tokenizedLineForScreenRow in random-editor-spec.coffee 2016-04-07 13:54:29 +02:00
Antonio Scandurra
e236b8c3be Avoid storing properties in selection markers
Previously we were storing a {type: ‘selection’} property, probably
leftover from the “pre-marker-layer” world. We were also storing
`Selection`’s `goalScreenRange` on the marker, which is now just an 
instance variable.
2016-04-06 20:00:08 +02:00
Antonio Scandurra
c2396396a5 📝 Update documentation for mark*Position 2016-04-06 19:20:05 +02:00
Antonio Scandurra
4f28f9f3f8 🔥 Remove defensive assertion
We're not throwing this exception anywhere else, so we might as well delete it 
from here.

/cc: @nathansobo
2016-04-06 15:48:44 +02:00
Antonio Scandurra
ffd3b1829d Provide deprecation warnings for clipScreenPosition parameters
Based on a cursory search, there’s only one package using that API. Even though 
we could submit a PR, we’re introducing deprecations to ensure we're not missing 
any other package.
2016-04-06 15:42:53 +02:00
Antonio Scandurra
25b71b804d Un-document passing clip options to setCursorBufferPosition
…the marker’s screen position will be clipped automatically when
translating coordinates.
2016-04-06 14:44:26 +02:00
Antonio Scandurra
00f03fd614 📝 Document {clipDirection: 'closest'} 2016-04-06 14:21:06 +02:00
Nathan Sobo
af28fa0752 When copying, create selections marker layer on the *new* display layer
Previously, we were copying the selections marker layer into the current
editor’s display layer. This would work fine until the spatial mapping
drifted in the copied editor, and would then have counterintuitive
results.
2016-04-05 18:47:11 -06:00
Nathan Sobo
b922262871 Avoid internal deprecation warning on getHeight 2016-04-05 17:18:24 -06:00
Nathan Sobo
a790ae2158 Avoid deprecation warnings for methods that are now on TextEditor 2016-04-05 12:12:14 -06:00
Nathan Sobo
117a3fb1b5 Provide deprecated TextEditor.prototype.displayBuffer shim
Even though it was a private field, we used it in some of our packages
and it is widespread enough to warrant some effort to smooth the
transition.

Also, we added a couple methods that were formerly implemented on
DisplayBuffer to TextEditor itself because they were used in packages.
2016-04-05 12:11:55 -06:00
Antonio Scandurra
ebd9e71b0b Make serialization format backwards/forwards compatible
Also, introduce a serialization version so we can drop the compatibility
fallbacks in the future.
2016-04-05 11:27:15 -06:00
Antonio Scandurra
bef7539e34 Refactor DisplayBuffer to DecorationManager
This commit moves all the remaining concerns not related to decorations
out of `DisplayBuffer` and into `TextEditor`. This means the
`DisplayBuffer` is now free to be renamed to `DecorationManager`.
2016-04-05 18:43:08 +02:00
Nathan Sobo
bbef4c67c3 Get the TextEditorComponent specs green 2016-04-04 11:21:41 -06:00
Antonio Scandurra
fd960e9a37 Merge branch 'master' into ns-use-display-layers 2016-04-04 15:25:50 +02:00