open-editor
About
open-editor allows you to open the system default editor to edit files or simply get the result as a String.
It supports calling the editor with specific line and column numbers.
Quick Start
See the examples for more details.
Writing in a file
use EditorCallBuilder;
let filename = from_str?;
new
.at_line
.at_column
.open_file?;
Getting the result as a String
use open_editor;
let content = new.open_editor?;
assert!;
Editing Strings
let template = "Hello, {name}!\nWelcome to {place}.";
let filled_template = new.edit_string?;