aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Kępka2021-06-06 05:31:40 +0000
committerIvan Tham2021-06-06 09:28:09 +0000
commitde946d2357e2cd4b64acbfc7bb45e3ead3785b83 (patch)
tree299cfb47bb8ede9302aa3049b4bb023e3f7809ff
parent14f511da930afda1e9a2201f628daff9f96a0948 (diff)
Add a TODO
-rw-r--r--helix-view/src/document.rs1
1 files changed, 1 insertions, 0 deletions
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",