Update papis default template
This commit is contained in:
parent
e7cb1502e3
commit
a45117a755
2 changed files with 28 additions and 13 deletions
25
README.md
25
README.md
|
|
@ -434,29 +434,30 @@ papis add --from url https://example.com/paper.pdf
|
||||||
|
|
||||||
**Searching and browsing:**
|
**Searching and browsing:**
|
||||||
```bash
|
```bash
|
||||||
# Search documents (uses fzf picker)
|
# List/search documents
|
||||||
papis open
|
|
||||||
papis search "machine learning"
|
|
||||||
papis search author:smith year:2023
|
|
||||||
|
|
||||||
# List all documents
|
|
||||||
papis list
|
papis list
|
||||||
|
papis list "machine learning"
|
||||||
|
papis list author:smith year:2023
|
||||||
|
|
||||||
# Open specific document
|
# Open documents (uses fzf picker)
|
||||||
papis open smith2023
|
papis open
|
||||||
|
papis open bohm
|
||||||
|
|
||||||
|
# Open document folder
|
||||||
|
papis open -d einstein
|
||||||
```
|
```
|
||||||
|
|
||||||
**Document management:**
|
**Document management:**
|
||||||
```bash
|
```bash
|
||||||
# Edit document metadata
|
# Edit document metadata
|
||||||
papis edit
|
papis edit bohm
|
||||||
|
|
||||||
# Export to BibTeX
|
# Export to BibTeX
|
||||||
papis export --all --format bibtex > references.bib
|
papis export --all --format bibtex > references.bib
|
||||||
papis export search_term --format bibtex
|
papis export --format bibtex query_term > references.bib
|
||||||
|
|
||||||
# Show document information
|
# List documents with custom format
|
||||||
papis show document_key
|
papis list --format '{doc[author]} - {doc[title]} ({doc[year]})'
|
||||||
```
|
```
|
||||||
|
|
||||||
**Configuration location**: `modules/papis.nix` with embedded configuration
|
**Configuration location**: `modules/papis.nix` with embedded configuration
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
# Papis configuration
|
# Papis configuration
|
||||||
home.file.".config/papis/config".text = ''
|
home.file."Library/Application Support/papis/config".text = ''
|
||||||
[settings]
|
[settings]
|
||||||
default-library = main
|
default-library = main
|
||||||
editor = nvim
|
editor = nvim
|
||||||
|
|
@ -38,4 +38,18 @@
|
||||||
home.activation.createPapisDir = ''
|
home.activation.createPapisDir = ''
|
||||||
mkdir -p ~/Documents/Library/papis
|
mkdir -p ~/Documents/Library/papis
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Papis bibliography template
|
||||||
|
home.file."Library/Application Support/papis/templates/bibitem.template".text = ''
|
||||||
|
{doc[title]} ({doc[year]}). {doc[author]}.
|
||||||
|
Venue: {doc[journal]} {doc[booktitle]} {doc[eprinttype]} {doc[eprint]} {doc[eventtitle]}
|
||||||
|
Tags: {doc[tags]}
|
||||||
|
URL: {doc[url]}
|
||||||
|
---
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Shell alias for convenient bibliography formatting
|
||||||
|
programs.zsh.shellAliases = {
|
||||||
|
papis-bib = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\"";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue