spring library

This commit is contained in:
ackman678
2021-04-08 20:52:17 -07:00
parent 6e92164bc3
commit 980e493cf7
5 changed files with 95 additions and 57 deletions

6
sbib
View File

@@ -12,8 +12,11 @@ if [ "$1" == "-h" ] ; then
depends:
fzf
git grep
sed tail
bat or less
pandoc
pandoc-citeproc
echo
wl-copy
defaults:
@@ -42,7 +45,8 @@ fi
# str=$(cat $fn | fzf)
# str=$(git grep -E --line-number $sPattern $bibdFile | fzf --delimiter : --preview 'nl {1} --body-numbering=a' --preview-window=:up:70%:+{2}-5)
str=$(git grep -E --line-number $sPattern $bibdFile | fzf --delimiter : --preview 'less {1}' --preview-window=:up:70%:+{2}-5)
# str=$(git grep -E --line-number $sPattern $bibdFile | fzf --delimiter : --preview 'less {1}' --preview-window=:up:70%:+{2}-5)
str=$(git grep -E --line-number $sPattern $bibdFile | fzf --delimiter : --preview 'bat --color=always --style=numbers --line-range=:500 {1}' --preview-window=:up:70%:+{2}-5)
# extract citation key from the fzf string