editor-command

Crates.ioeditor-command
lib.rseditor-command
version0.1.1
sourcesrc
created_at2024-08-16 23:59:51.030419
updated_at2024-09-05 10:59:32.468954
descriptionOpen files in a user's configured editor
homepage
repositoryhttps://github.com/LucasPickering/editor-command
max_upload_size
id1341130
size21,908
Lucas Pickering (LucasPickering)

documentation

README

editor-command

Test CI crates.io docs.rs

Load a user's preferred file editing command from the VISUAL or EDITOR environment variables.

use editor_command::EditorCommand;
use std::process::Command;

std::env::set_var("VISUAL", "vim");
let mut command: Command = EditorCommand::edit_file("file.txt").unwrap();
command.spawn();
Commit count: 0

cargo fmt