Skip to content

fbundle/microscope

Repository files navigation

microscope

an extremely fast text editor

screenshot

NOTE

  • refer to github.com/fbundle/wbt for WBT

  • the current implementation of weight-balanced tree doesn't support efficient merging

FEATURE SET

  • basic text editor

    • navigate with Left, Right, Up, Down, PgUp, PgDn, Home, End
    • undo redo with Ctrl+U, Ctrl+R
  • instant start-up, instant edit

  • able to handle very large files, potentially even larger than system memory.

  • able to recover from crash

  • able to edit while still loading the file and exit without losing any progress

  • vim-like command mode, search, goto line, etc.

RELEASE MODEL

  • initial release comes with no suffix, e.g. 0.1.7

  • bug fix releases come with suffix, e.g. 0.1.7a, 0.1.7b

  • the latest stable release should be one lower than latest releast with highest suffix. for example, if 0.1.7b is the latest release, then 0.1.6z is the stable release

INTERACTION WITH FILE SYSTEM

  1. use microscope -h for help

  2. when user opens a file using microscope inputfile, the program will create a log file (journal file) stored at <tmp>/microscope_log/<path> where <tmp> is system default temporary folder

  3. when user edit the file, every action will be written to log file.

  4. when exit the program the log file is preserved to export

  5. user can use command :w outputfile to write the current file into a new file, if outputfile is empty, it will overwrite the current file and exit

  6. user use microscope -r inputfile to replay the log to make a new file. the program will write the output to stdout

NOTES

update go.mod directly from github GOPROXY=direct go mod tidy

About

an extremely fast text editor

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors