TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

tome text editor: progress update

3 pointsby boutellover 1 year ago

1 comment

boutellover 1 year ago
tome is a new text editor for use at the terminal prompt. tome is built on Node.js, which makes it easy to contribute, but does <i>not</i> have the overhead of an Electron app. tome is especially focused on editing JavaScript.<p>I first announced tome here recently and received a kind and encouraging response. Here&#x27;s a progress update since then:<p>* Quite a bit of JS syntax highlighting. Check out the screenshot. Template strings were fun.<p>* Indentation is much more syntax-aware, taking into account {, [ and (.<p>* Indentation is not confused by comments or strings.<p>* Support for other languages can now be contributed, following the pattern set by languages&#x2F;javascript.js.<p>I need to test it more, but it seems one thing I don&#x27;t need to worry about so much is Unicode support, because I happened to make a good choice early on. tome represents the file as a two-dimensional array of (deep breath) grapheme clusters, as the UTF-8 experts call them. This means emojis and such &quot;just work,&quot; as long as I don&#x27;t forget and call `split` on a string somewhere.<p>I&#x27;ve updated the Plan section of README.md to cover where I&#x27;ll be taking things next. I want to tackle parsing more fully, but I&#x27;m going to focus on day to day usability stuff for a while, as tome is fast becoming my daily driver.<p>I&#x27;m thinking about support for language servers. In principle it&#x27;s the right move, in practice they seem like kind of a lot.<p>Contributions are of course welcome.<p>What would you like to see in tome?