Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Respect. This must have been a pain to implement. (I still have PTSD from writing a text editor for macOS).


Writing 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.


Hello! I keep asking this, but do you have any good resources for doing that? For example, any repos you would recommend studying?

Thanks!


I've spent a lot of time reading through these codebases and found that reading very useful.

- https://codemirror.net - https://prosemirror.net - https://xi-editor.io




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: