Settings

Theme

ed(1) in Rust

github.com

5 points by beefhash 5 years ago · 1 comment

Reader

ekidd 5 years ago

This repo is just an obvious and trivial joke about ed, which notoriously uses "?" for all error messages:

    let mut x = String::new();
    loop {
        io::stdin().read_line(&mut x)
            .expect("?");
        println!("?");
    }
It would actually be fun to implement ed in Rust—it's the best of of the popular low-bandwidth "line editors", with some nice support for regex-based search and replace. It's one of the few editors that could be a used with a slow line-by-line printer as the only output device.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection