]> apps.delaporte.us Git - dotfiles.git/commitdiff
Quick HTML opener
authorEdward <delaport@illinois.edu>
Tue, 26 May 2026 18:04:40 +0000 (13:04 -0500)
committerEdward <delaport@illinois.edu>
Tue, 26 May 2026 18:05:03 +0000 (13:05 -0500)
bin/mh
bin/mp [new file with mode: 0755]

diff --git a/bin/mh b/bin/mh
index 7dec7ae955cff3e83cac35ccf35b10575608937f..4e85828a49be019a057a8c04a035a45f77b3838f 100755 (executable)
--- 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 (executable)
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
+