ability to change editor

This commit is contained in:
aaron-jack-manning
2022-08-21 17:34:44 +10:00
parent 1a136a8966
commit b91af6d847
3 changed files with 43 additions and 10 deletions

View File

@@ -4,10 +4,20 @@ use crate::colour;
use std::path;
#[derive(Debug, Default, serde::Serialize, serde::Deserialize)]
#[derive(Debug, serde::Serialize, serde::Deserialize)]
pub struct Config {
/// Paths for all vaults, ordered according to recent usage, with current at the front.
pub vaults : Vec<(String, path::PathBuf)>,
pub editor : String,
}
impl Default for Config {
fn default() -> Self {
Self {
vaults : Vec::default(),
editor : String::from("vim"),
}
}
}
impl Config {