Ze editor
DOC.md | ||
editor.cpp | ||
everything.hpp | ||
main.cpp | ||
Makefile | ||
README.md | ||
selection.cpp | ||
treap.cpp |
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 movementg
- Goto a specified lineG
- Goto the last lined
- Remove current linex
- Remove character under cursoro
- Insert empty line before the currentq
- Quitw
- Saveu
- Undo latest editation actionf
- Find next appearance a specified stringn
- Repeat last finds
- Find-and-replacer
- Repeat last find-and-replacep
- Paste selectioni
- Change into insert modev
- 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 movementg
- Goto a specified lineG
- Goto the last linev
- Copy selected textx
- Remove selected text<ESC>
- Change into normal mode