From de946d2357e2cd4b64acbfc7bb45e3ead3785b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20K=C4=99pka?= Date: Sun, 6 Jun 2021 07:31:40 +0200 Subject: [PATCH] Add a TODO --- helix-view/src/document.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 0481b9af..f901e644 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -198,6 +198,7 @@ impl Document { async move { use tokio::{fs::File, io::AsyncWriteExt}; if let Some(parent) = path.parent() { + // TODO: display a prompt asking the user if the directories should be created if !parent.exists() { return Err(Error::msg( "can't save file, parent directory does not exist",