]> git.mdlowis.com Git - projs/tide.git/commitdiff
added fedit script for quickly opening file via fuzzyfind
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 14 Mar 2022 20:37:52 +0000 (16:37 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 14 Mar 2022 20:37:52 +0000 (16:37 -0400)
bin/fedit [new file with mode: 0755]

diff --git a/bin/fedit b/bin/fedit
new file mode 100755 (executable)
index 0000000..1911716
--- /dev/null
+++ b/bin/fedit
@@ -0,0 +1,3 @@
+#!/bin/sh
+pattern="*$(printf "%s" "$1" | sed 's/./&*/g')"
+find . -type f -iname "$pattern" | pick | xargs -r edit