diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-07-19 21:33:08 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-07-19 22:18:23 -0400 |
commit | 0b8747eb37d6d943d90e15ed82858d99d1800425 (patch) | |
tree | 6cb910dc37343000296c2951e0f67ff269ee3efd /src/context.rs | |
parent | 98e9665e59d7af0b2c002f0e6007578b3e90aa69 (diff) |
changed how commands are handled
- arguments no longer go through wordexp (still working on a good alternative)
other changes:
- changed update_contents to reload_contents
- opening files with mimetype entries are now moved from unix.rs
to mimetypes.rs
Diffstat (limited to 'src/context.rs')
-rw-r--r-- | src/context.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/context.rs b/src/context.rs index caf0dc1..35b9da0 100644 --- a/src/context.rs +++ b/src/context.rs @@ -3,10 +3,10 @@ use crate::config; use crate::tab::JoshutoTab; pub struct JoshutoContext { - pub threads: Vec<FileOperationThread<u64, fs_extra::TransitProcess>>, + pub exit: bool, pub curr_tab_index: usize, pub tabs: Vec<JoshutoTab>, - pub exit: bool, + pub threads: Vec<FileOperationThread<u64, fs_extra::TransitProcess>>, pub config_t: config::JoshutoConfig, } @@ -14,10 +14,11 @@ pub struct JoshutoContext { impl JoshutoContext { pub fn new(config_t: config::JoshutoConfig) -> Self { JoshutoContext { - threads: Vec::new(), + exit: false, curr_tab_index: 0, tabs: Vec::new(), - exit: false, + threads: Vec::new(), + config_t, } } |