From 4ad8120cb5e1fcbbd9c27d9cb77c48a09c194641 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 15 May 2024 15:17:24 +0200 Subject: [PATCH] feat: remove removal of spaces in title Signed-off-by: kjuulh --- crates/hyperlog-tui/src/app/dialog/create_item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hyperlog-tui/src/app/dialog/create_item.rs b/crates/hyperlog-tui/src/app/dialog/create_item.rs index c04e032..8d778e5 100644 --- a/crates/hyperlog-tui/src/app/dialog/create_item.rs +++ b/crates/hyperlog-tui/src/app/dialog/create_item.rs @@ -80,7 +80,7 @@ impl CreateItemState { if !title.is_empty() { let mut path = self.path.clone(); - path.push(title.replace([' ', '.'], "-")); + path.push(title.replace(['.'], "-")); Some(self.state.create_item_command().command( &self.root,