4 ms·
Respect. This must have been a pain to implement. (I still have PTSD from writing a text editor for macOS).
by kybernetyk 4y ago
Respect. This must have been a pain to implement. (I still have PTSD from writing a text editor for macOS).
- pandatigox 4y agoHello! I keep asking this, but do you have any good resources for doing that? For example, any repos you would recommend studying? Thanks!
- jessegrosjean 4y agoI've spent a lot of time reading through these codebases and found that reading very useful. - https://codemirror.net https://codemirror.net - https://prosemirror.net https://prosemirror.net - https://xi-editor.io https://xi-editor.io
- jessegrosjean 4y agoWriting the text editor has certainly been painful and taken me a long time. This particular feature (typing affinity) isn't actually to hard and I think could be bolted on to most existing edit editors. Really you just need to take one extra bit of state... and then can calculate cursor drawing + moment based on that state and all the other state the editor normally tracks.