You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
@nathansobo: As discussed on Campfire I'll try to list the missing methods/properties/elements on the ReactEditorView class. This is not exhaustive, maybe others can help filling the holes here.
On the editor view itself:
overlayer div and outlet are missing (which I use on abe33/atom-color-highlight, but I've already wrote a workaround), whereunderlayer point to .selections (and as far as I can tell the highlight-selected package by @richrace fail to append markers in it)
buildLineElementsForScreenRows and others line building methods are missing, but are probably the part of the problem behind the changes to React, so...
On the gutter:
getLineNumberElement is missing (breaks coffee-lint by @dotcypress)
As it happens, I was just starting to work on this myself in smashwilson/merge-conflicts#57. I'm hiding the differences behind an EditorAdapter, but thus far the differences are:
The overlayer bit, although I would consider it cleaner to have a method on the EditorView itself to append child views. I found appendToLinesView on the react editor, which should do nicely.
renderedLines outlet.
getFirstVisibleScreenRow and getLastVisibleScreenRow aren't there.
lineElementForScreenRow appears to be lineNodeForScreenRow.
It also appears that the minimap view will have to be completely rewritten as well, a lot of things changes between the two views.
Maybe @nathansobo have some clues as to where I should start for a new version, the idea being to reuse as most as possible of what the original editor view already handle, just changing the start and end rows to repaint on render updates.
I'm not really doing any work on the highlight-selected package until the Marker API has been finished. So I haven't really looked into the problem.
Also, my other package (highlight-linelink) uses a work around for lineElementForScreenRow. But doesn't use lineNodeForScreenRow as in the current Atom release (0.99.0) it returns undefined.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
smashwilson commentedon May 28, 2014
As it happens, I was just starting to work on this myself in smashwilson/merge-conflicts#57. I'm hiding the differences behind an
EditorAdapter, but thus far the differences are:overlayerbit, although I would consider it cleaner to have a method on theEditorViewitself to append child views. I foundappendToLinesViewon the react editor, which should do nicely.renderedLinesoutlet.getFirstVisibleScreenRowandgetLastVisibleScreenRowaren't there.lineElementForScreenRowappears to belineNodeForScreenRow.abe33 commentedon May 28, 2014
It also appears that the minimap view will have to be completely rewritten as well, a lot of things changes between the two views.
Maybe @nathansobo have some clues as to where I should start for a new version, the idea being to reuse as most as possible of what the original editor view already handle, just changing the start and end rows to repaint on render updates.
richrace commentedon May 29, 2014
I'm not really doing any work on the
highlight-selectedpackage until the Marker API has been finished. So I haven't really looked into the problem.Also, my other package (
highlight-linelink) uses a work around forlineElementForScreenRow. But doesn't uselineNodeForScreenRowas in the current Atom release (0.99.0) it returnsundefined.smashwilson commentedon May 29, 2014
merge-conflicts now works across both editors, although the styles are a little off:
smashwilson commentedon May 29, 2014
.overlay .from-topelements are behaving strangely, though:smashwilson commentedon May 29, 2014
Ah, it looks like there's some overeager CSS:
This is overriding the positioning styles from
.overlay.smashwilson commentedon May 29, 2014
☕ == tons of @smashwilson comments
Here's my workaround:
merge-conflicts now works seamlessly across both editors. Pretty slick! ✨
lock commentedon Jan 26, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!