diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-02-10 22:09:58 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-02-11 09:33:06 -0500 |
commit | daf9d7b9afec8c598c0974c5d92263c3af5facf0 (patch) | |
tree | 5273968eb2b2ffc412ebe1894a96d13c9ae57d09 /src/commands/file_ops | |
parent | b09ecb650aa5805c7021ab76672dddc0a7b0bb52 (diff) |
progress on switching to tui-rs for ui
Diffstat (limited to 'src/commands/file_ops')
-rw-r--r-- | src/commands/file_ops/copy.rs | 4 | ||||
-rw-r--r-- | src/commands/file_ops/cut.rs | 4 | ||||
-rw-r--r-- | src/commands/file_ops/paste.rs | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/file_ops/copy.rs b/src/commands/file_ops/copy.rs index a1a562e..2551321 100644 --- a/src/commands/file_ops/copy.rs +++ b/src/commands/file_ops/copy.rs @@ -1,7 +1,7 @@ use crate::commands::{JoshutoCommand, JoshutoRunnable}; use crate::context::JoshutoContext; use crate::error::JoshutoResult; -use crate::window::JoshutoView; +use crate::ui::TuiBackend; use super::local_state::{FileOp, LocalState}; @@ -26,7 +26,7 @@ impl std::fmt::Display for CopyFiles { } impl JoshutoRunnable for CopyFiles { - fn execute(&self, context: &mut JoshutoContext, _: &JoshutoView) -> JoshutoResult<()> { + fn execute(&self, context: &mut JoshutoContext, _: &mut TuiBackend) -> JoshutoResult<()> { let curr_tab = context.curr_tab_ref(); LocalState::repopulated_selected_files(&curr_tab.curr_list)?; LocalState::set_file_op(FileOp::Copy); diff --git a/src/commands/file_ops/cut.rs b/src/commands/file_ops/cut.rs index f466ca7..d77f157 100644 --- a/src/commands/file_ops/cut.rs +++ b/src/commands/file_ops/cut.rs @@ -1,7 +1,7 @@ use crate::commands::{JoshutoCommand, JoshutoRunnable}; use crate::context::JoshutoContext; use crate::error::JoshutoResult; -use crate::window::JoshutoView; +use crate::ui::TuiBackend; use super::local_state::{FileOp, LocalState}; @@ -26,7 +26,7 @@ impl std::fmt::Display for CutFiles { } impl JoshutoRunnable for CutFiles { - fn execute(&self, context: &mut JoshutoContext, _: &JoshutoView) -> JoshutoResult<()> { + fn execute(&self, context: &mut JoshutoContext, _: &mut TuiBackend) -> JoshutoResult<()> { let curr_tab = context.curr_tab_ref(); LocalState::repopulated_selected_files(&curr_tab.curr_list)?; LocalState::set_file_op(FileOp::Cut); diff --git a/src/commands/file_ops/paste.rs b/src/commands/file_ops/paste.rs index ba5dc43..74136c6 100644 --- a/src/commands/file_ops/paste.rs +++ b/src/commands/file_ops/paste.rs @@ -2,7 +2,7 @@ use crate::commands::{JoshutoCommand, JoshutoRunnable}; use crate::context::JoshutoContext; use crate::error::JoshutoResult; use crate::io::Options; -use crate::window::JoshutoView; +use crate::ui::TuiBackend; use super::local_state::{FileOp, LocalState}; use super::paste_copy::paste_copy; @@ -33,7 +33,7 @@ impl std::fmt::Debug for PasteFiles { } impl JoshutoRunnable for PasteFiles { - fn execute(&self, context: &mut JoshutoContext, _: &JoshutoView) -> JoshutoResult<()> { + fn execute(&self, context: &mut JoshutoContext, _: &mut TuiBackend) -> JoshutoResult<()> { let file_operation = LocalState::get_file_operation(); let thread = match file_operation { FileOp::Copy => paste_copy(context, self.options.clone()), |