dotfiles

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

commit 55aba39cc70d22a00f88a5584170bee0a8069bcb (patch)
parent 753262d9054342d7c72412959ab9dc026b766c02
Author: Alex Karle <alex@alexkarle.com>
Date:   Fri, 25 Feb 2022 23:25:51 -0500

bin: Remove gge(1) in favor of new plumb+tmux combo

The fact that tmux can keep the state of the search is way
more powerful than the fuzzy finding fzf brings.

Diffstat:
Mbin/fned | 2+-
Dbin/gge | 24------------------------
2 files changed, 1 insertion(+), 25 deletions(-)

diff --git a/bin/fned b/bin/fned @@ -8,7 +8,7 @@ # # fned "$(git grep -n 'pattern' | fzf)" # -# see also: gge(1) +# see also: plumb(1) # die() { echo "$*" 1>&2 diff --git a/bin/gge b/bin/gge @@ -1,24 +0,0 @@ -#!/bin/sh -# gge -- git grep -> editor -# -# small ease-of-use tool that combines git-grep and fned -die() { - echo "$*" 1>&2 - exit 1 -} - -# Reuse last pattern -if [ -z "$1" ]; then - if [ ! -e /tmp/gge ]; then - die "No previous search, run with 'gge PATTERN'" - fi -else - git grep -n "$@" > /tmp/gge -fi - -[ ! -s /tmp/gge ] && die "no matches, exiting" - -choice=$(fzf < /tmp/gge) -[ -z "$choice" ] && exit 1 - -fned "$choice"