From c75386885a6d1d0cbd758c63005aba3fcb214241 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 7 Mar 2022 22:12:42 -0500 Subject: [PATCH] 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`. --- bin/gg | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 bin/gg diff --git a/bin/gg b/bin/gg new file mode 100755 index 0000000..467a521 --- /dev/null +++ b/bin/gg @@ -0,0 +1,4 @@ +#!/bin/sh +# 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 "$@" -- libgit2 1.1.1