by geokon · 3y ago · 0 comments
If one were to write a simple text editor from scratch - is there some place with a "spec" or list of standard modern text editor UI paradigms one would need to implement to make the editor feel natural/normal ? (so it feels like Kate/GEdit/contenteditable)
I kinda get there are a lot of little subtle quirks and corner cases that need to be covered so it doesnt feel weird or janky
For instance EMACS CUA-mode is an example of a incredibly incomplete implemention
Also Apple’s old documentation about how their text layout system works. That link is annoying to find so I don’t have it on hand.
The short is answer is no, there are very few universal truths about how text editing works. You'll experience differences between combinations of operating systems, input modes (Japanese IME for example), software keyboards on Android, languages (RTL languages) and that's just for text itself.
Then when you are thinking about more complex features simple things like "what happens when I double or triple click on this" are a complete crapshoot.