commit c75386885a6d1d0cbd758c63005aba3fcb214241 (patch)
Author: Alex Karle <firstname.lastname@example.org>
Date: Mon, 7 Mar 2022 22:12:42 -0500
bin: Add gg script--git-grep for use in acme(1)
I've been playing around with acme(1) and it really works best to have
commands in the tag that don't have spaces in them. With `gg`, I can
select text, middle click hold on gg and then click the primary button
to pass the selected text as the argument.
This is more convenient than sweeping a tag of `git grep -n`.
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/bin/gg b/bin/gg
@@ -0,0 +1,4 @@
+# gg -- git grep with numbers. Not a git alias for use with acme(1)
+# (which works best with commands with no spaces)
+exec git grep -n "$@"