X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/d1b19b8ef01c8c6586b6b2b5668bc1ddc0d16691..09f53d1c73338a29d8e1b4147c71ef7a97da383f:/bin/mn diff --git a/bin/mn b/bin/mn index e392ce3..48f98af 100755 --- a/bin/mn +++ b/bin/mn @@ -1,2 +1,5 @@ #!/usr/bin/fish -vim $(printf "$HOME/Journal/2026/%02d-$argv.md" (date +%m)) +set year (date +%Y) +set input $(string join '-' $argv) +set topic $(string replace -a ' ' '-' $input) +vim $(printf "$HOME/Journal/$year/%02d-$topic.md" (date +%m))