use crate::Editor;
use std::ffi::OsString;
#[derive(Clone, Debug)]
pub struct EditorConfig {
pub editor_command: OsString,
pub editor_command_args: Vec<OsString>,
}
impl<'a> From<&Editor<'a>> for EditorConfig {
fn from(value: &Editor<'a>) -> Self {
Self {
editor_command: value.editor_command.into(),
editor_command_args: value.editor_command_args.iter().map(Into::into).collect(),
}
}
}