Skip to content

erickirt/writer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.8%
  • CSS 4.5%
  • HTML 1.7%