From 987eb1446b5f91cbd58e34e517a8f183299bf174 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Tue, 17 Nov 2026 13:57:29 +0100 Subject: [PATCH] put: announce each uploaded file in the view The SFTP transfer only reported through the progress bar's label, which disappears once a prompt parked the widget: the upload then ran in silence. A message per file names what is flowing whether the widget is live or gone. --- src/put/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/put/mod.rs b/src/put/mod.rs index 79b4525..aa18ce6 100644 --- a/src/put/mod.rs +++ b/src/put/mod.rs @@ -278,6 +278,10 @@ fn sftp_transfer( }; let remote = format!("{incoming}/{name}"); let label = format!("Uploading {name}"); + // Named before each file, not only in the progress label: when the + // view was released for a prompt, the progress bar is gone and this + // plain line is the only narration of which file is flowing + view.message(&label); let on_progress = |uploaded: u64| view.progress(&label, uploaded as usize, size as usize); let result = ssh::upload_file(&sftp, path, &remote, host, &on_progress); if let Err(e) = result {