summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2018-07-16 15:41:43 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2018-07-16 15:41:43 -0400
commit608389f8fedfa78f59381be3c979e519895c3a9a (patch)
tree8adb8b308338e3f534275f07df71cd318eb10d16 /src/main.rs
parente25dc785b9bb42620556a3fa28278d8ad29a1506 (diff)
refactoring
- move functions to separate files - add support for HOME, END, PAGE_UP, PAGE_DOWN - add support for symlinks
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs
index 318fdc2..3459f38 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,10 +9,21 @@ use std::env;
use std::fs;
mod joshuto;
+mod joshuto_sort;
+mod joshuto_unix;
const PROGRAM_NAME : &str = "joshuto";
const CONFIG_FILE : &str = "joshuto.toml";
+/*
+pub struct joshuto_win {
+ win : ncurses::WINDOW,
+ offset : usize,
+ row_size : i32,
+ col_size : i32,
+}
+*/
+
#[derive(Debug, Deserialize)]
pub struct JoshutoConfig {
show_hidden: Option<bool>,
@@ -26,15 +37,6 @@ pub struct JoshutoKeymaps {
up : i32,
}
-/*
-pub struct joshuto_win {
- win : ncurses::WINDOW,
- offset : usize,
- row_size : i32,
- col_size : i32,
-}
-*/
-
fn generate_default_config() -> JoshutoConfig
{
JoshutoConfig {