Add a few aliases to papis
This commit is contained in:
parent
a45117a755
commit
59cd92a8fd
2 changed files with 24 additions and 2 deletions
14
README.md
14
README.md
|
|
@ -460,6 +460,20 @@ papis export --format bibtex query_term > references.bib
|
||||||
papis list --format '{doc[author]} - {doc[title]} ({doc[year]})'
|
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
|
**Configuration location**: `modules/papis.nix` with embedded configuration
|
||||||
**Main library**: `~/Documents/Library/papis`
|
**Main library**: `~/Documents/Library/papis`
|
||||||
**Editor**: nvim (configured automatically)
|
**Editor**: nvim (configured automatically)
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,16 @@
|
||||||
---
|
---
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Shell alias for convenient bibliography formatting
|
# Shell aliases for papis workflow
|
||||||
programs.zsh.shellAliases = {
|
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)";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue