dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit c75386885a6d1d0cbd758c63005aba3fcb214241 (patch)
parent eae049ea7beff7715cfd4ceb7df02cbb6e10801e
Author: Alex Karle <alex@alexkarle.com>
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`.

Diffstat:
Abin/gg | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/bin/gg 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 "$@"