base: vimflavour: nvim documentlist: defaultstyle: multiline marked-icon: "" multilinestyle: rows: # 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 = ' ')}" tablestyle: separator: " " headerstyle: "underline|bold" rowstyle: "white_bg" cursorrowstyle: "black_white|bold" columns: - { header: "󰑇", content: "{'󰗠' if doc['readstatus'] == 'read' else '󰗡' if doc['readstatus'] == 'skimmed' else ' '}", width: 1, } - { 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: "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: "", software: "", presentation: "󰐨", thesis: "", _default_: "", } readstatus: { read: "󰗠", skimmed: "󰗡" } keymappings: q: quit "?": help S: toggle_style /: search_mode : scroll_down : scroll_up : page_down : page_up G: jump_to_bottom gg: jump_to_top j: scroll_down k: scroll_up o: open -r "pdf$" O: open -d r: view_reset R: reload e: edit n: papis edit -n papis_id:{doc['papis_id']} " ": mark_selected mm: mark_selected M: mark_down mu: unmark_all mv: mark_view t: cmd "tag " i: - info_toggle - "Toggle info window" I: - info_cycle - "Cycle info windows" # 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 commandline: search: keyword_aliases: { a: "author:", t: "title:", y: "year:", k: "tags:" } statusbar: left: default: " {info['mode_upper']} " normal: " {info['mode_upper']} " command: " {info['mode_upper']} " select: " {info['mode_upper']} " search: " {info['mode_upper']} " right: default: "{info['sortkeys']} {info['idx']} < {info['marked']} < {info['view']} < {info['items']} "