Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganPeterson committed Jan 18, 2022
1 parent 9e772f1 commit 5be56f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Morgan Peterson's Editor

## Notice

Warning! This code base will change without warning!

This editor is made specifically for me. It isn't a general purpose editor made for the rest of the world. Including you. If you don't like something or wish there were other features added, then by all means fork the code and do your thing.

## Derivation

MPE is based on the public domain code of Anthony Howe's editor (commonly known as Anthony's Editor or AE) and Hugh Barney's Atto/Femto. Rather than representing a file as a linked list of lines, the AE Editor uses the concept of a Buffer-Gap. A Buffer-Gap editor stores the file in a single piece of contiguous memory with some extra unused space known as the buffer gap. On character insertion and deletion the gap is first moved to the current point. A character deletion then extends the gap by moving the gap pointer back by 1 OR the gap is reduced by 1 when a character is inserted. The Buffer-Gap technique is elegant and significantly reduces the amount of code required to load a file, modify it and redraw the display.
Expand All @@ -20,7 +26,7 @@ There is regex code in the editor that is derived from Marc André Tanner's Vis
C-N next line
C-P previous line
C-R search-backwards
C-S search-forwards
C-S search-forwards
C-U undo
C-V Page Down
C-W Kill Region (Cut)
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME=mpe
CC=tcc
CC=cc
FLAGS+=-O2 -std=c99 -pedantic -W -Wall -g

OS:=$(shell uname -s)
Expand Down

0 comments on commit 5be56f0

Please sign in to comment.