dotfiles/writing/.config/papis/papistui.yaml

96 lines
2.8 KiB
YAML
Raw Normal View History

2023-08-29 20:44:55 +00:00
base:
vimflavour: nvim
documentlist:
defaultstyle: multiline
2023-08-29 20:44:55 +00:00
marked-icon: ""
multilinestyle:
rows:
2023-08-29 20:44:55 +00:00
- "<cyan>{doc.alias('type')} {doc['ref']} {doc.forfile('')}</cyan>"
- "<white><bold>{doc.html_escape['title']}</bold></white>"
- "<blue>{doc.html_escape['author']}</blue>"
- "{doc.foreach('tags', '<lightgray>(</lightgray><lightgray><dim>{}</dim></lightgray><gray>)</gray>', split = ', ', sep = ' ')}"
tablestyle:
2023-08-29 20:44:55 +00:00
separator: " "
headerstyle: "underline|bold"
rowstyle: "white_bg"
cursorrowstyle: "black_white|bold"
columns:
2023-08-29 20:44:55 +00:00
- {
header: " #",
content: "{doc.alias('type')} {str(len(doc.get_files()) if len(doc.get_files()) > 0 else '')}",
width: 3,
}
- { header: "Reference", content: "@{doc['ref']}", width: 15 }
- { header: "Year", content: "{str(doc['year'])}", width: 4 }
- { header: "Authors", content: "{doc['author']}", width: 20 }
- { header: "Title", content: "{doc['title']}", width: 200 }
aliases:
type:
{
article: "",
book: "",
incollection: "󰪧",
inbook: '',
software: "",
presentation: "󰐨",
thesis: "",
_default_: "",
}
keymappings:
2023-08-29 20:44:55 +00:00
q: quit
"?": help
S: toggle_style
/: search_mode
<key_down>: scroll_down
<key_up>: scroll_up
<ctrl-f>: page_down
<ctrl-b>: page_up
G: jump_to_bottom
gg: jump_to_top
j: scroll_down
k: scroll_up
2023-08-29 20:44:55 +00:00
o: open -r "pdf$"
O: open -d
r: view_reset
R: reload
e: edit
n: papis edit -n papis_id:{doc['papis_id']}
2023-08-29 20:44:55 +00:00
" ": mark_selected
mm: mark_selected
M: mark_down
mu: unmark_all
mv: mark_view
t: cmd "tag "
i:
- info_toggle
- "Toggle info window"
2023-08-29 20:44:55 +00:00
I:
- info_cycle
- "Cycle info windows"
2023-08-29 20:44:55 +00:00
# TODO look into https://github.com/supersambo/papis-tui vim-send mappings
infowindow:
default_on: False
views:
apa:
content: "{format_reference(doc)}"
abstract:
content: "{doc['abstract']}"
linewrap: True
height: 8
2023-08-29 20:44:55 +00:00
commandline:
search:
keyword_aliases: {a: 'author:', t: 'title:', y: 'year:', k: 'tags:'}
statusbar:
left:
2023-08-29 20:44:55 +00:00
default: "<black_green><bold> {info['mode_upper']} </black_green></bold><green_bg></green_bg>"
normal: "<black_green><bold> {info['mode_upper']} </black_green></bold><green_bg></green_bg>"
command: "<black_cyan><bold> {info['mode_upper']} </black_cyan></bold><cyan_bg></cyan_bg>"
select: "<black_red><bold> {info['mode_upper']} </black_red></bold><red_bg></red_bg>"
search: "<black_magenta><bold> {info['mode_upper']} </black_magenta></bold><magenta_bg></magenta_bg>"
right:
2023-08-29 20:44:55 +00:00
default: "<green>{info['sortkeys']} </green><cyan_bg></cyan_bg><black_cyan> {info['idx']} < {info['marked']} < {info['view']} < {info['items']} </black_cyan>"