From 168ead6c1f115df96b78550f27097f162ac597c4 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Thu, 31 Jul 2025 12:35:00 +0200 Subject: [PATCH] Add pabib alias and BibTeX template to papis configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add pabib alias for quick BibTeX export using 'papis export --format bibtex' - Add BibTeX template file to customize BibTeX output format 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- modules/papis.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/papis.nix b/modules/papis.nix index 76f94ae..1d6d2d7 100644 --- a/modules/papis.nix +++ b/modules/papis.nix @@ -46,11 +46,32 @@ --- ''; + # Papis BibTeX template + home.file."Library/Application Support/papis/templates/bibtex.template".text = '' + @{doc[type]}{doc[ref], + author = {doc[author]}, + title = {doc[title]}, + year = {doc[year]}, + journal = {doc[journal]}, + booktitle = {doc[booktitle]}, + publisher = {doc[publisher]}, + volume = {doc[volume]}, + number = {doc[number]}, + pages = {doc[pages]}, + doi = {doc[doi]}, + url = {doc[url]}, + abstract = {doc[abstract]} + } + ''; + # Shell aliases for papis workflow programs.zsh.shellAliases = { # Bibliography formatting pals = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\""; + # BibTeX export + pabib = "papis export --format bibtex"; + # File operations paurl = "papis addto -u";