aliquote

< a quantity that can be divided into another a whole number of time />

January 17, 2021

What you need on Sunday evening when you’re looking for a specific file in your “Papers” directory:

alias bibfind="bibtex-ls ~/org/references.bib \
  | fzf --multi --ansi \
  | rg -o --color never '[a-z0-9\-]+$' \
  | xargs -I % sh -c 'fdfind % ~/Documents/papers' \
  | xargs -I % sh -c 'xdg-open %'"

Note that this requires fzf-bibtex, rg and fd, but the later two can easily be replaced with the standard ̀grep and find tools.