pacocoursey / writer

plain text editor

Home Page:https://writer.paco.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

writer

Plain text editor from scratch, made for the web. Drag and drop files to open them.

Architecture

  • Buffer is an array of array of lines
  • Text is manually measured and wrapped with canvas
  • Lines are virtualized on scroll and drawn as divs
  • Cursor and selection are also divs
  • Word boundary operations are emulated with textarea
  • Styling through CSS variables

Future

  • B-tree buffer with height map
  • History system
  • Operational transform
  • Alternate canvas renderer with FreeType and Harfbuzz

About

plain text editor

https://writer.paco.sh


Languages

Language:JavaScript 93.8%Language:CSS 4.5%Language:HTML 1.7%