#text #editor #ed

app sued

The text editor that doesn't give a damn

40 releases (14 breaking)

0.16.1 Nov 8, 2023
0.15.0 Oct 4, 2023
0.10.7 Jul 30, 2023

#35 in Text editors

Download history 26/week @ 2023-08-26 2/week @ 2023-09-09 50/week @ 2023-09-16 97/week @ 2023-09-23 293/week @ 2023-09-30 10/week @ 2023-10-07 29/week @ 2023-10-14 34/week @ 2023-10-21 55/week @ 2023-10-28 26/week @ 2023-11-04 2/week @ 2023-11-11 55/week @ 2023-11-18 163/week @ 2023-11-25 42/week @ 2023-12-02

263 downloads per month

WTFPL license

680 lines

sued - shut up editor

sued is a vector-oriented line editor, kind of similar to the venerable and standard ed text editor, just with a different command syntax and set, to provide a unique editing experience.

No, it's not "super user editor", or an editor that will sue you. It's "soo-ed", "shut up editor".

To be clear, it's a text editor that works on Rust's Vec type. To be clearer, it's a text editor that works on lines and isn't graphical, like you're probably used to.

Yes, I know ed doesn't use vectors, shut up

sued v0.13.2 - put that mouse AWAY
type ~ for commands, otherwise just start typing
sued can even run inside a readme!
jk this is just a copied-and-pasted terminal session
1│sued can even run inside a readme!
2│jk this is just a copied-and-pasted terminal session
~sub 2 jk/just kidding
1│sued can even run inside a readme!
2│just kidding this is just a copied-and-pasted terminal session
print("sued is fricking awesome " * 5)
~runhere python
running C:\Users\sonic\AppData\Local\Programs\Python\Python311\python.exe
sued is fricking awesome sued is fricking awesome sued is fricking awesome sued is fricking awesome sued is fricking awesome 
finished running python
1print("sued is fricking awesome " * 5)
2# I didn't even need to save the file to do that
~search save
line 2: # I didn't even need to save the file to do that
~save damn-thats-cool.py
saved to damn-thats-cool.py

Written in Rust, because frick you, that's why.


First of all, you need Cargo. If you don't have Cargo, install Rust. If you don't want to install Rust, frick off and use a different editor.


cargo install sued

and make sure that ~/.cargo/bin/ is in your PATH or you won't be able to run it until it is.


sued's documentation is present online in the form of a man page-like website.

You can also just read the source code yourself.


sued is written in pure, idiomatic Rust.

Its speed, as a compiled line editor, is pretty damn fast. The time between opening it up and getting some text edited is negligently small.

You can even run a compiler or an interpreter with a simple ~runhere, without even the need to save your file.

And it doesn't even take a second. As it should be.


sued is much more user-friendly than ed - it's a modeless editor, so there's no complicated mode switching to keep in your head.

It also uses a simple command syntax, with whole words, like ~save, ~show and ~open, not single letters.

Its error messages, despite being communicated concisely, are still informative and use colloquial language, so they're pretty easy to understand.


sued looks basic on the offset, but under the hood, it has support for regex replacements, file searching, pretty-looking line numbers, and some other stuff.

sued's command set consists of stuff like delete, indent, insert, open, run, runhere, save, search, show, substitute, swap, and so on.

For the rest of the commands, as well as information on what these commands do, run ~help inside sued or check out the documentation.

And sued leverages linefeed for its command line input. Meaning it supports GNU Readline commands and functionality. You can do some Emacs-style line navigation, like C-a, C-e, C-f, C-b, whatever you want, it'll work. Probably.

Remember how in the example above, I used ~runhere to run Python without even needing to specify the file name, let alone save it? The ~runhere command will have sued create a temporary file and run the chosen command with that temporary file as an argument. That's pretty damn efficient.


sued is designed to not get in your way. Error messages are useful but brief.

They're not ed levels of brief, but they're still pretty brief.

And there's no auto-save feature - your file is only saved when you enter the ~save command.


Being a CLI app, you can run sued anywhere!

In your terminal, in VS Code, in Emacs, even inside Vim! And sued doesn't care what OS it runs under. Windows, macOS, GNU/Linux, BusyBox/Linux, other kinds of Linux, BSD, ChromeOS, Android, probably Xbox if you really wanted.

If it has a terminal, it can run sued.

It's been tested on Windows, Fedora and Android, and works great under all three (except that Android doesn't support ~copy, but that's not sued's fault)


sued is free. You can get it for free, but it's also free.

It's released under the Do What The F-ck You Want Public License (WTFPL) which means you can do bloody anything with it. I don't care, and sued certainly doesn't.


~234K SLoC