commit 9f2096ca5b090b5303c4721c76725617d62ff7ae parent d35e8d59db637c106ef2ba3620cbd5aa09746468 Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Tue, 16 Feb 2021 01:19:50 -0800 Remove leading `./' from note paths in the jots script Diffstat:
| M | modules/scripts/.local/bin/jots | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/scripts/.local/bin/jots b/modules/scripts/.local/bin/jots @@ -12,7 +12,10 @@ find() command find ${*:-.} -type f -list() stat -t %F -f '%Sc - %N' `find $*` +list() { + stat -t %F -f '%Sc%t%N' `find $*` | + sed -E 's/([^ ]+) \.?\/?(.*)/\1 - \2/' +} show() { for n in `find $*`