Add pacite alias

This commit is contained in:
Yan Lin 2025-08-03 16:44:10 +08:00
parent 38874209a8
commit bd187aacf2
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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";