From: Edward Delaporte Date: Fri, 19 Jun 2026 17:04:01 +0000 (-0500) Subject: Add minion find X-Git-Url: https://us-delaporte.pagekite.me/gitweb/minion.git/commitdiff_plain/fb4763626475e56c9e7b32992771a09e57b4862c?ds=inline Add minion find --- diff --git a/bin/mf b/bin/mf new file mode 100755 index 0000000..8f9ae61 --- /dev/null +++ b/bin/mf @@ -0,0 +1,4 @@ +#!/bin/bash +# mf - minion find +# Finds strings in files in ~/Journal/YYYY +grep -rnw "$HOME/Journal" -e "$1" diff --git a/bin/mfa b/bin/mfa new file mode 100755 index 0000000..8b45aa4 --- /dev/null +++ b/bin/mfa @@ -0,0 +1,4 @@ +#!/bin/bash +# mfa - minion find any +# Finds strings in files in ~/Journal/ (any year) +grep -rnw "$HOME/Journal" -e "$1" diff --git a/bin/mh b/bin/mh index b453205..ffbbce3 100755 --- a/bin/mh +++ b/bin/mh @@ -4,8 +4,9 @@ echo "Usage:" echo "" 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 "mo - minion open - open all files that match" +echo "ml - minion list - list all files that match in ~/Journal/YYYY" +echo "mo - minion open - open all files that match in ~/Journal/YYYY" +echo "mf - minion find - find strings within files in ~/Journal/YYYY" echo "" echo "Examples:" echo "" @@ -17,7 +18,7 @@ echo "Advanced Usage:" echo "" echo "mp - minion print - convert matching files to HTML and open in Firefox (requires https://github.com/gomarkdown/markdown)" echo "ms - minion spell - open the matching file with 'aspell'" -echo "mla, moa - minion X all - act as 'ml' and 'mo', but include all previous years of Journal entries" +echo "mla, moa, etc - minion X all - act as 'ml' and 'mo', but include all previous years of Journal entries" echo "" echo "On vi integration:" echo ""