summaryrefslogtreecommitdiffstats
path: root/src/joshuto/structs.rs
AgeCommit message (Collapse)Author
2019-01-13major refactoringJiayi Zhao
- completely remove preview_list and all references - instead use preview.rs to grab struct from hashmap at runtime - this allows for file previews to be implemented easier and more seamlessly - add JoshutoPageState struct for scrolling - previously cursor would stick at position 6 and won't move until reaching the top or bottom of dirlisting - now they stick to the current page and only move when they hit the threshold provided in settings
2019-01-12add support for custom color themesJiayi Zhao
2019-01-07clean up codeJiayi Zhao
2019-01-06now keeps track of metadataJiayi Zhao
- creation of JoshutoDirEntry is more encapsulated now, rather than manually created by sort.rs
2019-01-04keep track of filename as string so we don't need to convert every timeJiayi Zhao
2019-01-04remove all dependencies on fs::DirEntryJiayi Zhao
- this was causing an issue where mounted filesystems cannot be unmounted due it being 'busy' from being held by joshuto - now, JoshutoDirEntry will hold all relevant data regarding the file and fs::DirEntry can be deallocated freeing up open directories
2019-01-04add selection backJiayi Zhao
2019-01-03fix crash when toggling hidden filesJiayi Zhao
2019-01-01refactor logic for finding correct index when contents are reloadedJiayi Zhao
2018-12-31change Option<Vec> to VecJiayi Zhao
2018-12-28add support for cutting/copying/pasting/deleting filesJiayi Zhao
- currently unstable and will cause index out of bounds
2018-12-27add preliminary support for marking filesJiayi Zhao
2018-12-25add path to structsJiayi Zhao
2018-12-25add support for escape button and implement Display for JoshutoCommandJiayi Zhao
2018-12-24add panel support and change JoshutoWindow to JoshutoPanelJiayi Zhao
2018-12-24move window structs into window.rsJiayi Zhao
2018-12-24fix redrawing windowsJiayi Zhao
2018-12-24fix status bars not updating properlyJiayi Zhao
2018-12-23move mimetype config out of joshuto.toml into mimetype.tomlJiayi Zhao
2018-12-22clean up JoshutoView::new() and fix column ratiosJiayi Zhao
2018-12-20add support back for reading config filesJiayi Zhao
- clean up code for reading config files - add support for sorting files by mtime
2018-12-18remove unused functionJiayi Zhao
2018-12-18change index to i32Jiayi Zhao
- change how hidden files work
2018-12-18lots of changesJiayi Zhao
- make sort easier to use - SortType, SortStruct - make History a struct
2018-08-12add changed JoshutoDirEntry to JoshutoColumnJiayi Zhao
2018-07-31move display_contents to ui.rsJiayi Zhao
- make use of mvwchga() to highlight entire line - remove eprintln!()
2018-07-31fix tree_magic::from_filepath()Jiayi Zhao
- tree_magic::from_filepath() crashes on non-regular files such as fifo, char, block files - fixed by first checking if it is a regular device - add initial support for aspect ratios of columns - changed variable types
2018-07-30fix attempt to subtract with overflowJiayi Zhao
2018-07-29fix issue with first file not being a directoryJiayi Zhao
- fix links coming before directories
2018-07-29change path to print file and pathJiayi Zhao
move functions from structs to ui change code to be more idiomatic change certain messages fix delete function not printing
2018-07-28fix directories becoming unviewableJiayi Zhao
- this fix adds support for traversing back up the fs tree and mark where the indices for traversing backwards without overriding certain directory listings
2018-07-28add support for deleting filesJiayi Zhao
2018-07-27rename field namesJiayi Zhao
2018-07-27add code for supporting updating direntriesJiayi Zhao
2018-07-24major refactoringJiayi Zhao
- move all print methods out of mod.rs into ui.rs - completely change the way directory listing works - use a hashmap to keep track of state of directory so we can start where we left off instead of always at index 1 - history.rs: deals with retrieving data off hashmap if existent
2018-07-21add support for showing hostname and usernameJiayi Zhao
- optimize window redrawing by using wnoutrefresh() and doupdate() :
2018-07-20cleanupJiayi Zhao
2018-07-20rename filesJiayi Zhao
add preliminary support for opening files add preliminary support for file opening configs remove intermediate structs