Ze editor
Find a file
2025-06-25 21:00:40 +02:00
DOC.md Add programmer documentation 2025-06-25 21:00:40 +02:00
editor.cpp IMPLEMENT TREAP PERSISTENCE 2025-06-25 00:01:49 +02:00
everything.hpp Simplify selection into a vector of strings 2025-06-25 20:58:59 +02:00
main.cpp Comment code and rename variables in treap 2025-06-25 00:16:00 +02:00
Makefile Use ze as output filename in Makefile 2025-06-25 16:40:52 +02:00
README.md Write user-documentation 2025-06-25 15:56:16 +02:00
selection.cpp Simplify selection into a vector of strings 2025-06-25 20:58:59 +02:00
treap.cpp Remove unused option not to remember node version after update 2025-06-25 16:40:27 +02:00

Ze ed

Like deez, but backwards.

Ze is a terminal vim-like text editor.

It uses a treap data structure to represent file by lines and remembers versions with added semi-persistence.

Dependencies

  • ncurses c library

Build

Described in the Makefile

Usage

ze <filename>

Modes

Ze has three modes within which you can edit a file - normal, insert and select. Those represent what the user is currently doing:

  • insert mode: Writing text
  • select mode: Operations on a selection
  • normal mode: Everything else

Default keybinds

<char> - Action

Normal mode

  • h,j,k,l - Vim-like movement
  • g - Goto a specified line
  • G - Goto the last line
  • d - Remove current line
  • x - Remove character under cursor
  • o - Insert empty line before the current
  • q - Quit
  • w - Save
  • u - Undo latest editation action
  • f - Find next appearance a specified string
  • n - Repeat last find
  • s - Find-and-replace
  • r - Repeat last find-and-replace
  • p - Paste selection
  • i - Change into insert mode
  • v - Change into select mode

Insert mode

  • <ESC> - Change into normal mode
  • Anything else is written under the cursor

Select mode

  • h,j,k,l - Vim-like movement
  • g - Goto a specified line
  • G - Goto the last line
  • v - Copy selected text
  • x - Remove selected text
  • <ESC> - Change into normal mode