From 59cd92a8fdd26a0b7a50aad3b6d1ec4e8d9e2bd6 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 29 Jul 2025 17:16:49 +0200 Subject: [PATCH] Add a few aliases to papis --- README.md | 14 ++++++++++++++ modules/papis.nix | 12 ++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6679ae8..e277f93 100644 --- a/README.md +++ b/README.md @@ -460,6 +460,20 @@ papis export --format bibtex query_term > references.bib papis list --format '{doc[author]} - {doc[title]} ({doc[year]})' ``` +**Workflow Aliases:** +```bash +# Bibliography formatting +papis-bib # List documents with formatted template +papis-bib "machine learning" # Search and format specific documents + +# File operations +papis-add-file filename.pdf [query] # Add file from ~/Downloads/ to existing entry +papis-add-url [url] [query] # Add file from URL to existing entry + +# Directory access +papis-finder [query] # Open document directory in Finder +``` + **Configuration location**: `modules/papis.nix` with embedded configuration **Main library**: `~/Documents/Library/papis` **Editor**: nvim (configured automatically) diff --git a/modules/papis.nix b/modules/papis.nix index 3fefbf5..fa7fe6c 100644 --- a/modules/papis.nix +++ b/modules/papis.nix @@ -48,8 +48,16 @@ --- ''; - # Shell alias for convenient bibliography formatting + # Shell aliases for papis workflow programs.zsh.shellAliases = { - papis-bib = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\""; + # Bibliography formatting + papis-info = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\""; + + # File operations + papis-add-file = "papis addto -f ~/Downloads/"; + papis-add-url = "papis addto -u"; + + # Finder integration + papis-finder = "open -R $(papis list)"; }; }