writing: Add papis configuration

This commit is contained in:
Marty Oehme 2023-02-08 18:53:18 +01:00
parent 9f5bca4a62
commit c306e30219
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
4 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/env python
# papis-short-help: Manually rebuild cache for all libraries
#
# This tiny script updates all libraries by rebuilding their caches.
# Useful to invoke after manual edits in one of your library folders
# so you don't have to think about which library you changed stuff in
# and just get everything updated. Might take a little time but
# should generally be a quick process (even with 1000s of entries).
import papis.api
libs = papis.api.get_libraries()
for lib in libs:
papis.api.clear_lib_cache(lib)
papis.api.get_all_documents_in_lib()

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# papis-short-help: Display pretty human-readable document overview
#
# TODO strip {} from bibtex entries to really pretty print
papis -l "${PAPIS_LIB}" list --format "{doc[author]} ({doc[year]}). {doc[title]}." "$@"