From 989430492e33350b9e5fb120f613388f2a0e2110 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Thu, 21 Aug 2025 10:31:49 +0900 Subject: [PATCH] Add papis aliases --- README.md | 6 ++++-- modules/papis.nix | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1120777..1b0a16b 100644 --- a/README.md +++ b/README.md @@ -533,12 +533,14 @@ 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 +paadd # Add a new entry with BibTeX string +pabib # Print documents in BibTeX format +pacite # Print documents as citation strings pafile filename.pdf # Add file from ~/Downloads/ paopen # Open documents interactively pafinder "query" # Open document directory in Finder patag "tag1#tag2" "query" # Add multiple tags using # separator +pareset # Reset and rebuild papis database ``` ### 🔄 File Synchronization: rsync diff --git a/modules/papis.nix b/modules/papis.nix index ae97906..67cd347 100644 --- a/modules/papis.nix +++ b/modules/papis.nix @@ -71,6 +71,9 @@ programs.zsh.shellAliases = { # Bibliography formatting pals = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\""; + + # Add new entry with bibtex + paadd = "papis add --from bibtex"; # BibTeX export pabib = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibtex.template\"";