mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
the logic of selecting files has been extended! From now on selecting file will put the files into a transfer queue, which is shown on the bottom panel. When a file is selected the file is added to the queue with a destination path, which is the **current other explorer path at the moment of selection. It is possible to navigate to the transfer queue by using `P` and pressing `ENTER` on a file will remove it from the transfer queue.Other commands will work as well on the transfer queue, like `COPY`, `MOVE`, `DELETE`, `RENAME`. closes #132
20 lines
486 B
Rust
20 lines
486 B
Rust
//! ## FileTransferActivity
|
|
//!
|
|
//! `filetransfer_activiy` is the module which implements the Filetransfer activity, which is the main activity afterall
|
|
|
|
use super::FileTransferActivity;
|
|
|
|
impl FileTransferActivity {
|
|
pub(crate) fn action_mark_file(&mut self, index: usize) {
|
|
self.enqueue_file(index);
|
|
}
|
|
|
|
pub(crate) fn action_mark_all(&mut self) {
|
|
self.enqueue_all();
|
|
}
|
|
|
|
pub(crate) fn action_mark_clear(&mut self) {
|
|
self.clear_queue();
|
|
}
|
|
}
|