sued-0.9.0 is not a library.
Visit the last successful build:
sued-0.24.2
sued
⚠️ 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.
Questions
- Why a line editor?
- I like ed. I find it extremely pleasant to use, despite its terseness. I wanted to try my hand at writing a similar text editor, just a lot less complex.
- I don't want to go insane trying to develop a Vim-like editor. Especially not when projects like Helix exist.
- If it's ed-like, why not copy ed's syntax?
- sued is actually more modelled after my earlier attempt at a line editor, Streakline.
- In Streakline, editing is straightforward. You open the editor and start
typing. It used commands prefixed with
~, so sued does too.
- What does sued stand for?
- It stands for "shut up editor". This can be read as "shut up and edit", "the shut up editor" or "Shut up, editor!"
- How do you pronounce sued?
- "soo-ed". Don't pronounce it "sood". Otherwise people are going to think a text editor's going to go to court(!)
- Now that you're working on QVSED,
will sued be forgotten about?
- Pfft. No. QVSED is a graphical editor with a completely different paradigm, and it isn't a sued replacement.
Commands
All commands start with ~. Run ~ by itself to see a list of commands.
~clear- Clear the file buffer.~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.~indent [line] [level]- Indent the specified line by a number of spaces. A negative level will outdent.~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 the list of commands with descriptions.~about- Display some information about sued.