X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/d1b19b8ef01c8c6586b6b2b5668bc1ddc0d16691..c7f840a666f550cb0eae3a7fdd11c8b2c97bf893:/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))