Created
January 8, 2024 00:52
-
-
Save 7h3rAm/8a788c0a2eca0771f10da4812e0a8f50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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