BAD Red ("By Austin Dumm Rust Editor") is a command line text editor I wrote in Rust with the aim to develop experience and skills in:
Text processing
Text buffer techniques
Embedded Scripting
Self-documentation
Rust procedural macros
The editor currently supports:
Gap Buffer storage
Lua Scripting for self-extension
Self-documentation and a "help" mode
Multiple panes
Regex text styling and coloring
Vim-style interaction (subset of full Vim motions and actions)
The editor itself is not intended for serious development use, yet is stable enough for editing decently-large files. Most basic Vim input works including ":q" and ":wq" for "quit" and "save and quit".
The ":" command mode also supports Lua scripts. Access help via: `:red.doc.help([table or function])`. For example, `:red.doc.help(red)` displays the help screen for the top level "red" module in Lua.
Files can be opened on command line after the editor name: `bad_red [file-name]` or can be opened through the Lua command line: `:red.buffer:link_file(red.file:open("[file-path-relative-to-working-directory]")`.