twilligon/edit

Cross-platform Rust library for invoking & waiting for the system text editor

Rust

62

23 commits

updated Mar 14, 2025

See the code

README

edit

crates.io docs.rs

edit is a Rust library that lets you open and edit something in a text editor, regardless of platform. (Think git commit.)

It works on Windows, Mac, and Linux, and knows about lots of different text editors to fall back upon in case standard environment variables such as VISUAL and EDITOR aren't set.

let template = "Fill in the blank: Hello, _____!";
let edited = edit::edit(template)?;
println!("after editing: '{}'", edited);
// after editing: 'Fill in the blank: Hello, world!'
cross-platform
rust-lang
text-editing
text-editor

Contributors

twilligon

15 commits

jwodder

3 commits

Gottox

1 commits

ammkrn

1 commits

Languages

Rust

100.0%

twilligon/edit

Cross-platform Rust library for invoking & waiting for the system text editor

Rust

62

23 commits

updated Mar 14, 2025

See the code

README

edit

crates.io docs.rs

edit is a Rust library that lets you open and edit something in a text editor, regardless of platform. (Think git commit.)

It works on Windows, Mac, and Linux, and knows about lots of different text editors to fall back upon in case standard environment variables such as VISUAL and EDITOR aren't set.

let template = "Fill in the blank: Hello, _____!";
let edited = edit::edit(template)?;
println!("after editing: '{}'", edited);
// after editing: 'Fill in the blank: Hello, world!'
cross-platform
rust-lang
text-editing
text-editor

Contributors

twilligon

15 commits

jwodder

3 commits

Gottox

1 commits

ammkrn

1 commits

Languages

Rust

100.0%