papis: Add styling to papis-tui
This commit is contained in:
parent
a7a8ebf8ed
commit
cf0544b0a5
1 changed files with 61 additions and 29 deletions
|
@ -1,52 +1,74 @@
|
||||||
|
base:
|
||||||
|
vimflavour: nvim
|
||||||
documentlist:
|
documentlist:
|
||||||
defaultstyle: multiline
|
defaultstyle: multiline
|
||||||
marked-icon: '*'
|
marked-icon: ""
|
||||||
multilinestyle:
|
multilinestyle:
|
||||||
rows:
|
rows:
|
||||||
- <red>{doc.html_escape["ref"]}</red>
|
- "<cyan>{doc.alias('type')} {doc['ref']} {doc.forfile('')}</cyan>"
|
||||||
- <bold>{doc.html_escape["title"]}<bold>
|
- "<white><bold>{doc.html_escape['title']}</bold></white>"
|
||||||
- <cyan>{doc.html_escape["author"]}</cyan>
|
- "<blue>{doc.html_escape['author']}</blue>"
|
||||||
|
- "{doc.foreach('tags', '<lightgray>(</lightgray><lightgray><dim>{}</dim></lightgray><gray>)</gray>', split = ', ', sep = ' ')}"
|
||||||
tablestyle:
|
tablestyle:
|
||||||
|
separator: " "
|
||||||
|
headerstyle: "underline|bold"
|
||||||
|
rowstyle: "white_bg"
|
||||||
|
cursorrowstyle: "black_white|bold"
|
||||||
columns:
|
columns:
|
||||||
- content: '{doc.html_escape["ref"]}'
|
- {
|
||||||
header: Ref
|
header: " #",
|
||||||
width: 15
|
content: "{doc.alias('type')} {str(len(doc.get_files()) if len(doc.get_files()) > 0 else '')}",
|
||||||
- content: '{doc.html_escape["author"]}'
|
width: 3,
|
||||||
header: Author
|
}
|
||||||
width: 30
|
- { header: "Reference", content: "@{doc['ref']}", width: 15 }
|
||||||
- content: '{doc.html_escape["year"]}'
|
- { header: "Year", content: "{str(doc['year'])}", width: 4 }
|
||||||
header: Year
|
- { header: "Authors", content: "{doc['author']}", width: 20 }
|
||||||
width: 4
|
- { header: "Title", content: "{doc['title']}", width: 200 }
|
||||||
- content: '{doc.html_escape["title"]}'
|
aliases:
|
||||||
header: Titel
|
type:
|
||||||
width: 400
|
{
|
||||||
cursorrowstyle: black_white
|
article: "",
|
||||||
headerstyle: underline|bold
|
book: "",
|
||||||
rowstyle: white_bg
|
incollection: "",
|
||||||
separator: " \u2502 "
|
inbook: '',
|
||||||
|
software: "",
|
||||||
|
presentation: "",
|
||||||
|
thesis: "",
|
||||||
|
_default_: "",
|
||||||
|
}
|
||||||
keymappings:
|
keymappings:
|
||||||
' ': mark_down
|
q: quit
|
||||||
|
"?": help
|
||||||
|
S: toggle_style
|
||||||
/: search_mode
|
/: search_mode
|
||||||
<key_down>: scroll_down
|
<key_down>: scroll_down
|
||||||
<key_up>: scroll_up
|
<key_up>: scroll_up
|
||||||
<ctrl-f>: page_down
|
<ctrl-f>: page_down
|
||||||
<ctrl-b>: page_up
|
<ctrl-b>: page_up
|
||||||
'?': help
|
|
||||||
G: jump_to_bottom
|
G: jump_to_bottom
|
||||||
gg: jump_to_top
|
gg: jump_to_top
|
||||||
j: scroll_down
|
j: scroll_down
|
||||||
k: scroll_up
|
k: scroll_up
|
||||||
o: open
|
o: open -r "pdf$"
|
||||||
|
O: open -d
|
||||||
|
r: view_reset
|
||||||
|
R: reload
|
||||||
e: edit
|
e: edit
|
||||||
n: papis edit -n papis_id:{doc['papis_id']}
|
n: papis edit -n papis_id:{doc['papis_id']}
|
||||||
q: quit
|
" ": mark_selected
|
||||||
t: tag
|
mm: mark_selected
|
||||||
ii:
|
M: mark_down
|
||||||
|
mu: unmark_all
|
||||||
|
mv: mark_view
|
||||||
|
t: cmd "tag "
|
||||||
|
i:
|
||||||
- info_toggle
|
- info_toggle
|
||||||
- "Toggle info window"
|
- "Toggle info window"
|
||||||
ij:
|
I:
|
||||||
- info_cycle
|
- info_cycle
|
||||||
- "Cycle info windows"
|
- "Cycle info windows"
|
||||||
|
# TODO look into https://github.com/supersambo/papis-tui vim-send mappings
|
||||||
|
|
||||||
infowindow:
|
infowindow:
|
||||||
default_on: False
|
default_on: False
|
||||||
views:
|
views:
|
||||||
|
@ -56,8 +78,18 @@ infowindow:
|
||||||
content: "{doc['abstract']}"
|
content: "{doc['abstract']}"
|
||||||
linewrap: True
|
linewrap: True
|
||||||
height: 8
|
height: 8
|
||||||
|
|
||||||
|
commandline:
|
||||||
|
search:
|
||||||
|
keyword_aliases: {a: 'author:', t: 'title:', y: 'year:', k: 'tags:'}
|
||||||
|
|
||||||
statusbar:
|
statusbar:
|
||||||
left:
|
left:
|
||||||
default: <black_white> {info["mode_upper"]} <black_white>
|
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:
|
right:
|
||||||
default: <black_white> {info["idx"]} < {info["marked"]} < {info["view"]} < {info["items"]} <black_white>
|
default: "<green>{info['sortkeys']} </green><cyan_bg></cyan_bg><black_cyan> {info['idx']} < {info['marked']} < {info['view']} < {info['items']} </black_cyan>"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue