mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
app-shells/igr: remove patch - because fixed on upstream
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
parent
e29fde7446
commit
84cb4e4f65
@ -1 +1 @@
|
||||
DIST igr 552 BLAKE2B a632836b25764e196b5fffa129a0a163e89d75e2ff84479f780d9375774b64b6e3e04bbe34de65aa0d4b12a68ef4acd1c7653423ab6fe828e2ceb48b4146db95 SHA512 4e8be976248e4ba625ce9a360ecc99c9572ce2e2c6b7a9035d9171620a5dab21ef64b9b13e904ffe8f2f886c198ed594dd2477058f7727d8749791f6670747e6
|
||||
DIST igr 339 BLAKE2B a9c091ec4cc3c80648e394d5d03e60bce52980b86cbb7f1c5036cf987dc871b9266a9a40482fffab6dacf69bda336eb8c339e62a5571d52cbac6123805d5a52f SHA512 a779e668defeeab4c81727e985ba980d88c74d8764e74352f78c844e5c21afa3d034115588a48c93836924463141f0db612214ae6d3737a6267fd7dad8611c14
|
||||
|
@ -1,35 +0,0 @@
|
||||
This patch change calling of v to $EDITOR, see https://github.com/DanielFGray/fzf-scripts/issues/26
|
||||
|
||||
And add more context to the search.
|
||||
|
||||
Also open a file on the specific line
|
||||
|
||||
diff --git a/igr b/igr
|
||||
index 73a6e8c..e23082a 100755
|
||||
--- a/igr
|
||||
+++ b/igr
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
-declare preview='bat --color=always --style=header,numbers -H {2} {1} | grep -C3 {q}'
|
||||
+declare preview='bat --color=always --style=header,numbers -H {2} {1} | grep --context 999 {q}'
|
||||
|
||||
while getopts ':l' x; do
|
||||
case "$x" in
|
||||
l) list_files=1
|
||||
- preview='bat --color=always --style=header,numbers {1} | grep -C3 {q}'
|
||||
+ preview='bat --color=always --style=header,numbers {1} | grep --context 999 {q}'
|
||||
;;
|
||||
esac
|
||||
done
|
||||
@@ -18,5 +18,7 @@ fzf -d: \
|
||||
--query="$1" \
|
||||
--phony \
|
||||
--bind="change:reload:rg -n ${list_files:+-l} --color=always {q}" \
|
||||
---bind='enter:execute:v {1}' \
|
||||
---preview="[[ -n {1} ]] && $preview"
|
||||
+--bind='enter:execute:echo "$EDITOR {1}:{2}" && $EDITOR {1}:{2}' \
|
||||
+--preview="[[ -n {1} ]] && $preview" \
|
||||
+--preview-window="/2"
|
||||
+
|
||||
+ # echo to save in shell history
|
@ -7,7 +7,10 @@ DESCRIPTION="Interactive rg (ripgrep) wrapper in fzf: Interactive GRep (search)"
|
||||
HOMEPAGE="https://github.com/DanielFGray/fzf-scripts"
|
||||
SRC_URI="https://raw.githubusercontent.com/DanielFGray/fzf-scripts/master/$PN"
|
||||
|
||||
S="$WORKDIR"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
|
||||
SLOT=0
|
||||
|
||||
RDEPEND="
|
||||
@ -16,16 +19,10 @@ RDEPEND="
|
||||
sys-apps/bat
|
||||
"
|
||||
|
||||
S="$WORKDIR"
|
||||
|
||||
src_unpack() {
|
||||
cp "$DISTDIR/$PN" "$WORKDIR/" || die
|
||||
}
|
||||
|
||||
PATCHES=(
|
||||
"$FILESDIR/vim-open-current-line.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user