tiny text editor
8a7f718a — japanoise 2 years ago
Use prefix for mandir
239b1194 — japanoise 2 years ago
Make e handle SIGWINCH
b7bfea02 — japanoise 2 years ago
Use magic variables to make makefile behave better


browse  log 



You can also use your local clone with git send-email.

`e' version 0.994
`e' is minimalistic text editor
- inspired by Norton Editor for DOS
- insert/replace mode, block operations with highlighting, find and replace,
  goto line
- writed on C with ncurses, should compile anywhere
- tested with
   - FreeBSD 2.2.8-9.3
   - RedHat 6.2
   - SunOS 2.6-10
- file loaded entirely in memory, you limited only to what realloc(3) return

How minimal?
Very minimal. It's smaller than Ed, uemacs, and Nano. I've included vim and
my own editor, Gomacs - which is a statically compiled Go program - for scale:

-rwxr-xr-x 1 root     root      19K Aug  3 14:25 /usr/local/bin/e
-rwxr-xr-x 1 root     root      51K Apr 26  2014 /bin/ed
-rwxr-xr-x 1 root     root     204K Feb 15  2017 /bin/nano
-rwxr-xr-x 1 root     root     525K Aug  3 14:31 /usr/bin/em
-rwxr-xr-x 1 root     root     2.4M Nov 24  2016 /usr/bin/vim.basic
-rwxr-xr-x 1 KonaKona KonaKona 4.9M Jun 23 19:04 /home/KonaKona/bin/gomacs

charasters, Enter, Up, Down, Left, Right, Home, End, PgUp, PgDn, Del, Backspace
	standart behavior
ins	toggle insert mode
^X	exit
^S	save file as
^T	goto top of text
^O	goto bottom of text
^Y	delete current line
^Q	quote next charaster (put in text nonprintable symbol)
^A	go to line by number (or beginnig of selection if number not specified)
^F	find string (not regexp, usual string, exact case)
^R	replace one string by another
^N	repeat last operation of find or replace
^B	mark begin of block (you'll see if beginning mark before ending)
^E	mark end of block
^C	copy marked block to current position
^V	move marked block to current position
^D	delete marked block
^P	put (write) block in file
^G	get (load) block from file
^J	same as PgUp
^K	same as PgDn

- you can edit binary files because `e' don't format anything
- to reset block selection put ending mark before or at beginning mark (^B^E)
- you can convert Dos files (crlf) to Unix (lf) easily: while pressing
Ctrl print trqmmmnnnnnnnnn... :)
- and back to Dos: trqjmqmqjmnnn...
- by analogy be careful to Ctrl while printing something like 'tboed'
- there is no autosave or some kind of that, so backup your data in time 

- many operations on every getch: erase() and COLS*LINES addch(),
but i don't think its so bad (scrolling is optimised, so on telnet session
to 386 i feel the same speed like vi).
- bad documentation, which counts only this file in terrible english
without man page, i would be very thankful if someone can write it

- as is, no warranties at all
- you can do with this sources whatever you want, except if you use
latest version of this program and found a bug, you must inform me about it

Mtv Europe <mtve1927@gmail.com>
	initial release