Files
termscp/src/ui/activities/filetransfer/actions/mark.rs
veeso 85bb586e8f feat(file-select): Queueing transfers
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
2025-03-22 16:17:59 +01:00

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();
}
}