Repository navigation
Make react the default editor - #2423
Conversation
|
I added a checkbox for getting the build green. It's hard coded to use the old editor in specs currently. |
|
Will the old editor architecture be removed? If so, should this Issue be renamed to "Make react the editor"? 😀 |
|
I think we should keep the old stuff in there for a bit after switching to the default. But eventually, yes. |
|
Thanks @benogle! I figured that was the case. |
|
I'm assuming the class names ( Actually, should |
|
Perhaps an |
Actually, an easier option would be for me to just check the CSS classes applied to the view -- the react editor has a |
|
A few bugs? Double clicking a word, then typing, does not overtype the word. Spellcheck is also enabled for my javascript code, not the case with the non-react editor. |
|
@ustun thanks for the correction. |
|
No worries, I'll create separate issue in the future :) |
I definitely agree that we shouldn't be using The |
|
What's the benefit of using the react editor instead of the current editor? |
|
@nathansobo For identifying what document type an editor is for, I think we could use either the language specifier scheme, i.e. As far as determining whether something is an editor or a settings view or some other type of view ... I like the approach taken in Avdi Grimm's Confident Ruby. It's a form of the maxim, "Tell, Don't Ask". Rather than asking something "Are you an editor?" and then doing something with it if it is, you just say "Convert yourself to an editor" and then do something with it if it doesn't return class Foo
frobTheEditor: (editor) ->
editor.toEditor()?.frob()That way if a SettingsView gets passed in, everything is just fine because nothing happens (unless you want to implement |
|
@ilanbiala: I wrote a pretty good explanation of the motivation in #1863. For users, the main benefits will hopefully be that it puts us in a better position to improve performance and add APIs to the editor. For core developers, the new editor will be easier to maintain. Edit: Of course, we want users to be comfortable sending PRs on core, too, and this will help that. |
|
@nathansobo sounds like a good plan. Ultimately, the biggest issue I have with Atom right now is that it is quite slow in comparison to other text editors and it still lacks some features that I would expect out of the box. As of now, I am using the React Editor; however, I have not noticed any real speed difference. I'd love to see Atom get better and faster, so let me know if there's anything I can do to help. |
Previously it was only moving the scrollTop, but not the cursors. Affected on the react editor. Refs #2423
When you had a 1000 line file and you fold everything into 10 lines, it would make the gutter width only large enough for the 10 lines, so line 999 wouldnt properly fit in the gutter. Refs #2423
There was a problem hiding this comment.
This needs to be removed from this PR.
|
The last remaining issue is performance related but absolutely needs to be fixed before we flip the default. It makes performance pretty bad in the presence of large quantities of nested folds. |
|
👍 💥 👍 |
|
Just fixed so many issues w00t. |
|
👍 Quite the milestone! |
|
👍 💥 |
This will make react the default editor.
All issues related to the react editor: https://github.com/atom/atom/issues?labels=react-editor-bug
Todo
These are the blockers to releasing the react editor as the default
Completed Tasks
.overlayerselector don't work #2442Fixes these issues
Fixes #2443
Fixes #1850
Fixes #1790
Fixes #1711
Fixes #2778
Fixes #2764
Fixed #2710
Fixed #2785
Fixed atom/find-and-replace#245
Fixes #2375