diff --git a/writing/.config/papis/papistui.yaml b/writing/.config/papis/papistui.yaml
index 2570a70..0fce280 100644
--- a/writing/.config/papis/papistui.yaml
+++ b/writing/.config/papis/papistui.yaml
@@ -5,10 +5,11 @@ documentlist:
marked-icon: ""
multilinestyle:
rows:
- - "{doc.alias('type')} {doc['ref']} {doc.forfile('')}"
+ # TODO: show if already note attached; have info window display note content?
+ - "{doc.alias('type')} {doc['ref']}{' ' if doc['file'] else ''} {doc.alias('readstatus')}"
- "{doc.html_escape['title']}"
- "{doc.html_escape['author']}"
- - "{doc.foreach('tags', '({})', split = ', ', sep = ' ')}"
+ - "{doc.foreach('tags', '({})', split = ', ', sep = ' ')}"
tablestyle:
separator: " "
headerstyle: "underline|bold"
@@ -16,26 +17,48 @@ documentlist:
cursorrowstyle: "black_white|bold"
columns:
- {
- header: " #",
- content: "{doc.alias('type')} {str(len(doc.get_files()) if len(doc.get_files()) > 0 else '')}",
- width: 3,
+ header: "",
+ content: "{'' if doc['readstatus'] == 'read' else '' if doc['readstatus'] == 'skimmed' else ' '}",
+ width: 1,
}
- - { header: "Reference", content: "@{doc['ref']}", width: 15 }
+ - {
+ header: "",
+ content: "{'' if doc['notes'] else '' if doc['note'] else ' '}",
+ width: 1,
+ }
+ - {
+ header: "",
+ content: "{doc.alias('type')}",
+ width: 1,
+ }
+ - { header: "Authors", content: "{doc['author']}", width: 25 }
- { header: "Year", content: "{str(doc['year'])}", width: 4 }
- - { header: "Authors", content: "{doc['author']}", width: 20 }
- - { header: "Title", content: "{doc['title']}", width: 200 }
+ - { header: "Title", content: "{doc['title']}", width: 125 }
+ - { header: "Reference", content: "{doc['ref']}", width: 15 }
+ - {
+ header: "",
+ content: "{str(len(doc.get_files()) if len(doc.get_files()) > 0 else '')}",
+ width: 1,
+ }
+ - { header: "Tags", content: "{doc['tags'] if isinstance(doc['tags'], str) else doc.foreach('tags', '{}', sep=', ')}", width: 35 }
aliases:
type:
{
article: "",
book: "",
incollection: "",
- inbook: '',
+ inbook: "",
software: "",
presentation: "",
thesis: "",
- _default_: "",
+ _default_: "",
}
+ readstatus:
+ {
+ read: "",
+ skimmed: ""
+ }
+
keymappings:
q: quit
"?": help
@@ -81,7 +104,7 @@ infowindow:
commandline:
search:
- keyword_aliases: {a: 'author:', t: 'title:', y: 'year:', k: 'tags:'}
+ keyword_aliases: { a: "author:", t: "title:", y: "year:", k: "tags:" }
statusbar:
left:
@@ -92,4 +115,3 @@ statusbar:
search: " {info['mode_upper']} "
right:
default: "{info['sortkeys']} {info['idx']} < {info['marked']} < {info['view']} < {info['items']} "
-