From: Edward Date: Tue, 26 May 2026 18:04:40 +0000 (-0500) Subject: Quick HTML opener X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/1b9c02d796909633687d4b337f5104057c33a063?ds=inline Quick HTML opener --- diff --git a/bin/mh b/bin/mh index 7dec7ae..4e85828 100755 --- a/bin/mh +++ b/bin/mh @@ -2,6 +2,7 @@ echo "mn - minion new - edit a new file with the year and month in the name" echo "mh - minion help - print this help" echo "ml - minion list - list all files that match" +echo "mp - minion print - convert matching files to HTML and open in Firefox (requires https://github.com/gomarkdown/markdown)" echo "mo - minion open - open all files that match" echo "" echo "mn meeting topic - open a file Journal/2026/04-meeting topic.md" diff --git a/bin/mp b/bin/mp new file mode 100755 index 0000000..f15073e --- /dev/null +++ b/bin/mp @@ -0,0 +1,9 @@ +#!/usr/bin/fish +set year (date +%Y) +set files $(find $HOME/Journal/$year -type f -iname "*$argv*") + +for file in $files + mdtohtml $file > $file.html + firefox $file.html +end +