#editor #environment #default #vi

default-editor

Get the default editor for the current environment

1 unstable release

Uses old Rust 2015

0.1.0 Nov 6, 2016

#5 in #vi

Download history 10/week @ 2024-07-22 21/week @ 2024-07-29 9/week @ 2024-08-05 10/week @ 2024-08-12 5/week @ 2024-08-19 9/week @ 2024-08-26 12/week @ 2024-09-02 14/week @ 2024-09-09 13/week @ 2024-09-16 23/week @ 2024-09-23 15/week @ 2024-09-30 1/week @ 2024-10-07 10/week @ 2024-10-14 9/week @ 2024-10-21 8/week @ 2024-10-28 26/week @ 2024-11-04

53 downloads per month
Used in 2 crates

MIT license

3KB

Default editor

Get the default editor for the current environment

Usage

extern crate default_editor;

fn main () {
    match default_editor::get() {
        Ok(editor) => println!("The default editor is: {}", editor),
        Err(error) => println!("Error getting default editor: {}", error),
    }
}

No runtime deps