From 9743f124ff0474e5e659ee0c23f3979abe4960d1 Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 15 May 2026 15:30:47 -0500 Subject: [PATCH] Remove spaces as they cause issues --- bin/mn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/mn b/bin/mn index 54ae9d7..48f98af 100755 --- a/bin/mn +++ b/bin/mn @@ -1,3 +1,5 @@ #!/usr/bin/fish set year (date +%Y) -vim $(printf "$HOME/Journal/$year/%02d-$argv.md" (date +%m)) +set input $(string join '-' $argv) +set topic $(string replace -a ' ' '-' $input) +vim $(printf "$HOME/Journal/$year/%02d-$topic.md" (date +%m)) -- 2.47.3