⚠️ sued is in early stages of development. It works, but it's still prone to errors in some cases.
A text editor that works and is an editor.
sued is a vector-oriented line editor, kind of similar to the venerable and standard ed text editor, just simpler and not nearly as powerful.
~~Yes, I know ed doesn't use vectors, shut up~~
Syntax highlighting? Code analysis? Modal editing? Cursor positioning??
Who the hell cares? Just shut up and edit.
Written in Rust, because frick you, that's why.
~
, so sued does too.All commands start with ~
. Run ~
by itself to see a list of commands.
~save [filename]
- Write the buffer contents to the provided file name.~open [filename]
- Find or create a file and open its contents up in sued.~show [start] [end]
- Display the buffer contents, complete with line numbers. You can specify the start and end point if you wish.~insert [line]
- Interactively insert text into the chosen position in the buffer.~replace [line]
- Interactively replace the chosen line's contents in the buffer.~substitute [line] [pattern]/[replacement]
- Perform a regex substitution on the chosen line number, with the pattern and replacement.~search [term]
- Searches for the given term in the buffer and prints matching lines.~swap [source] [target]
- Swap two lines with each other in the buffer.~delete [line]
- Immediately remove a line from the buffer.~run [command]
- Run the provided executable or shell builtin. Real executables will be prioritised over shell builtins.~exit
- Quit sued, discarding the buffer contents.~help
- Display some information about sued.