diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-06-21 19:44:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 19:44:17 -0400 |
commit | 34538845ba899a6892c6bbc10d294f209b78fdd7 (patch) | |
tree | 167474092e146951da856a995088aaf730a85c7d /src/util/input.rs | |
parent | cf660136ea43e0a463fd270bfdaf8bb3ee606d9d (diff) |
fix file sizes not appearing when filename too long (#78)
* fix file sizes not appearing when filename too long
* refactor previewing code
- event.rs is moved out of utils as its an integral part of the codebase
- load_child.rs has been replaced with preview module
- moved previewing logic inside run.rs instead of spreading it across multiple
commands
* revert tui_dirlist_detailed to use MIN_LEFT_LABEL_WIDTH
- add previewing loading trigger to mouse input as well
* fix: right label disappears (#79)
Co-authored-by: DLFW <daniel@llin.info>
Diffstat (limited to 'src/util/input.rs')
-rw-r--r-- | src/util/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/input.rs b/src/util/input.rs index 7a6d9ad..24aff5e 100644 --- a/src/util/input.rs +++ b/src/util/input.rs @@ -4,10 +4,10 @@ use tui::layout::{Constraint, Direction, Layout}; use crate::commands::{cursor_move, parent_cursor_move, AppExecute, KeyCommand}; use crate::context::AppContext; +use crate::event::AppEvent; use crate::history::DirectoryHistory; use crate::io::{FileOp, IoWorkerProgress}; use crate::ui; -use crate::util::event::AppEvent; use crate::util::format; pub fn process_mouse(event: MouseEvent, context: &mut AppContext, backend: &mut ui::TuiBackend) { |