From 2f0295dfd9effa536777a4750439a30d1fa24eaa Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Fri, 15 Oct 2021 20:23:17 -0400 Subject: [PATCH] Cleaning up mess --- sbagen_select.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sbagen_select.sh b/sbagen_select.sh index edbd96f..4531980 100755 --- a/sbagen_select.sh +++ b/sbagen_select.sh @@ -11,13 +11,6 @@ SBAGenDir="/home/steven/apps/sbagen-1.4.4/" OGGDir="/home/steven/apps/sbagen-1.4.4/" -#SearchTerm=$(echo ${@} | sed '/^$/!s/[^ ]* */| -e &/g' | tail -c +2) - -#SearchString=$(printf "rg %s -l -f $(rg --files-without-match \"_diff:\" %s)" "${SearchTerm}" "${JoplinSearchDir}") -#cat "$SearchString" -#eval "$SearchString" -#rg -l -w "${SearchTerm}" $(rg --files-without-match "title_diff:" ${JoplinSearchDir}) | fzf --no-hscroll -m --height 90% --border --ansi --no-bold --preview='bat {}' -#| rg --files-without-match -e "_diff:" -f - | fzf --no-hscroll -m --height 90% --border --ansi --no-bold --preview="bat {}" sbgfile=$(fdfind . ${SBAGenDir} --follow --type file --extension sbg | fzf --no-hscroll -m --height 90% --border --ansi --no-bold --header="Choose SBA file" --preview='sed -n "/^#/p" {}')