MCPcopy Index your code
hub / github.com/boutell/tome

github.com/boutell/tome @0.13.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.13.1 ↗ · + Follow
152 symbols 350 edges 46 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tome

Tom's Editor. Maybe should be THE (Tom's Hubristic Editor)

This is:

  • A brand new command line editor
  • Written in Node.js
  • Intended to stay small and scrappy
  • A modeless editing experience
  • following ordinary UI conventions as much as that fits with the above
  • Focused on editing JS, HTML, Vue single-file components and markdown

Status

  • Alpha quality. I'm using it to write it, so I'll probably know pretty quick if it's a hot mess, but you should definitely use git and watch out for surprises.

Plan

  • Bootstrap this very quickly into something I can stand to use to edit JavaScript, just enough to work on it and see the problems. DONE
  • Fix the flicker LOL
  • Find
  • Find and Replace
  • Undo/redo
  • Why do emojis act weird?
  • File locking for the actual file
  • Make the js stuff file extension specific
  • Make the js stuff work in a script tag too
  • Add some HTML stuff
  • Respect .editorconfig

Install

npm install -g @boutell/tome

Usage

tome some-file-you-want-to-edit

It's fine to create a new file.

Commands

  • Keyboard select by holding down shift with up, down, left, right
  • Cut, copy, paste with control-X, control-C, control-V
  • Save and keep working with Control-S
  • Exit, with optional save, via Control-W

Working with multiple files

Start as many tome commands as you want in separate terminals. The clipboard is automatically shared. Just copy in one and paste in another.

Core symbols most depended-on inside this repo

moveTo
called by 26
editor.js
insert
called by 11
editor.js
erase
called by 11
editor.js
forward
called by 9
editor.js
back
called by 9
editor.js
set
called by 8
screen.js
getSelection
called by 7
editor.js
draw
called by 6
screen.js

Shape

Function 107
Method 41
Class 4

Languages

TypeScript100%

Modules by API surface

editor.js35 symbols
app.js18 symbols
screen.js11 symbols
languages/javascript.js11 symbols
handlers/find.js9 symbols
languages/default.js6 symbols
handlers/block.js4 symbols
handlers/type.js3 symbols
handlers/toggle-comment.js3 symbols
handlers/tab.js3 symbols
handlers/shift-selection-right.js3 symbols
handlers/shift-selection-left.js3 symbols

For agents

$ claude mcp add tome \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact