A simple text editor written in pure Lua.
Partially an experiment in making an editor primarily controlled by the left hand (i.e. navigated with WASD). I'm left-handed, so this makes sense.
A few keybinds operate on a "cut buffer." Every cut/copy operation appends to
this buffer, so X
and then 10
is equivalent to x
10 times.
Lowercase commands work in insert mode when accompanied by ctrl
, e.g. e
becomes Ctrl-E
.
Uppercase commands may only be used while not in insert mode.
Keys:
w
/W
move 1/5 lines ups
/S
move 1/5 lines downa
/A
move 1/5 chars rightd
/D
move 1/5 chars lefte
toggle insert modei
scroll up 5 linesk
scroll down 5 linesI
jump to line 1K
jump to last lineu
unindent by two spaceso
indent by two spacesj
jump to col 1l
jump to last colq
quit if savedQ
quit unconditionally (needs double-press)r
jump to line Nc
/C
copy 1 line/copy N linesx
/X
cut 1 line/cut N linesv
paste contents of cut buffer, and clear itV
paste contents of cut bufferm
insert blank line (equivalent to 'Return')z
remove last line of cut bufferZ
clear cut buffert
save fileT
save file (always prompt for fname)