2 ms·
There are lots of one year or less effort text editors. There are a couple of four decade text editors: Emacs and vim. Really smart people have invested a lot o
by brudgers 12y ago
There are lots of one year or less effort text editors. There are a couple of four decade text editors: Emacs and vim. Really smart people have invested a lot of time in each both in extending them into green fields and working around architectural limitations. Spending a year studying their source code would be a good first research step toward writing a really good editor. That's my take on writing a text editor.
The efficiency of a text editor is an XY problem. A text editor is just a tool in a workflow. The workflow is defined by inputs and outputs. If Sublime text shells out into awk or uses MySQL as a preprocessor who cares? There's little practical point in being beholden to a particular text editor if it's in the way.
BTW, googling up "efficiency of sublime regex engine" provides some indication that Sublime chokes on modest json data. Then again, json data serializes to text, but it can easily be interpreted as data by a database engine. General tools are great, but knowing the specifics about the data allows for creating useful heuristics to guide workflows.