From bd187aacf2a5b46c826918199aba91b74af3703c Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 3 Aug 2025 16:44:10 +0800 Subject: [PATCH] Add pacite alias --- README.md | 2 ++ modules/papis.nix | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 2958432..101205f 100644 --- a/README.md +++ b/README.md @@ -486,6 +486,8 @@ papis export --format bibtex query_term > references.bib #### Workflow Aliases: ```bash pals # List documents with formatted template +pabib # Export documents in BibTeX format +pacite # Format documents as citation strings pafile filename.pdf # Add file from ~/Downloads/ paopen # Open documents interactively pafinder "query" # Open document directory in Finder diff --git a/modules/papis.nix b/modules/papis.nix index d9f5865..ae97906 100644 --- a/modules/papis.nix +++ b/modules/papis.nix @@ -62,6 +62,11 @@ }} ''; + # Papis citation template + home.file."Library/Application Support/papis/templates/citation.template".text = '' + {doc[author]}. "{doc[title]}." {doc[journal]}{doc[booktitle]} ({doc[year]}). + ''; + # Shell aliases for papis workflow programs.zsh.shellAliases = { # Bibliography formatting @@ -70,6 +75,9 @@ # BibTeX export pabib = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibtex.template\""; + # Citation formatting + pacite = "papis list --template \"$HOME/Library/Application Support/papis/templates/citation.template\""; + # File operations paurl = "papis addto -u";