diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-19 09:58:21 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-19 10:04:49 -0500 |
commit | 122ec6efd37dc6edb94e00f61d66469a91dcd84a (patch) | |
tree | eafe1af79d8fa9a8a4748327c4e3ac35fa7b05c3 | |
parent | d0105d70d9e1bfb58f1c77b6e4be7330332c4887 (diff) |
configs should be before [sort_option]
-rw-r--r-- | config/joshuto.toml | 15 | ||||
-rw-r--r-- | src/config/config.rs | 8 |
2 files changed, 11 insertions, 12 deletions
diff --git a/config/joshuto.toml b/config/joshuto.toml index 4aefd07..ec6c8b4 100644 --- a/config/joshuto.toml +++ b/config/joshuto.toml @@ -1,9 +1,14 @@ # sort_type options: size, natural, basename, atime, ctime, mtime, type, random ## currently only supports: natural, mtime -sort_type = "natural" - tilde_in_titlebar = true +# ratios for parent view, current view and preview +column_ratio = [1, 3, 4] + +# does nothing so far +scroll_offset = 6 + +sort_type = "natural" [sort_option] show_hidden = false case_sensitive = false @@ -11,9 +16,3 @@ reverse = false directories_first = true show_preview = true - -# ratios for parent view, current view and preview -column_ratio = [1, 3, 4] - -# does nothing so far -scroll_offset = 6 diff --git a/src/config/config.rs b/src/config/config.rs index 6e9e738..f6adb04 100644 --- a/src/config/config.rs +++ b/src/config/config.rs @@ -28,11 +28,11 @@ impl JoshutoRawConfig { #[allow(dead_code)] pub fn new() -> Self { JoshutoRawConfig { - scroll_offset: Some(8), - tilde_in_titlebar: Some(true), - sort_type: Some(String::from("natural")), + scroll_offset: None, + tilde_in_titlebar: None, + sort_type: None, sort_option: None, - column_ratio: Some([1, 3, 4]), + column_ratio: None, } } } |