Skip to content

Instantly share code, notes, and snippets.

@7h3rAm
Created January 8, 2024 00:52
Show Gist options
  • Save 7h3rAm/8a788c0a2eca0771f10da4812e0a8f50 to your computer and use it in GitHub Desktop.
Save 7h3rAm/8a788c0a2eca0771f10da4812e0a8f50 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
[[ $# -ge 1 ]] && query="$1" || query=""
cat $BOOTSTRAPDIR/papers.csv | \
bat -l csv --color=always -p | \
fzf -i \
--exact \
--cycle \
--multi \
--layout=reverse \
--info=inline \
--pointer='>' \
--marker='*' \
--header-lines=1 \
--border-label=$'📝 top4grep ' \
--border-label-pos=3 \
--prompt=' search: ' \
--preview-window='' \
--preview='' \
--query="$query" | \
bat -l csv --color=always --style=numbers
#!/usr/bin/env bash
cd $BOOTSTRAPDIR
top4grep --build-db
sqlite3 -header -csv $BOOTSTRAPDIR/papers.db "select * from paper;" >$BOOTSTRAPDIR/papers.csv
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment